[#255] Model variables as entities #256

Merged
blacklight merged 14 commits from 255-model-variables-as-entities into master 2023-04-29 18:24:25 +02:00
Owner

Closes: #255

Closes: #255
Added Alembic environment and `run_db_migrations` logic to the entities
engine so database schema changes can be processed as soon as the
application is started.
These plugins (only including `variable` for now) are a core part of the
application and should always be explicitly enabled.
Plugins can now access the database and Redis APIs directly without
having to run their own `get_plugin` validation logic.
`entities.transform_entities` will pass back an empty list instead of an
empty dict if no entities were found, and the function should be able to
handle it.
It can be used by other plugins to easily access the `entities` plugin,
along the lines of `db` and `redis`.
When the system information is still loading it may happen that the
device associated to the disk hasn't been loaded yet.
Sign in to join this conversation.
No description provided.