This PR introduces the functionality of adding/updating facility metadata to the lpms-server database storage.
When the manager uses lpms-cli to upload the facility metadata (still monolithic) this file is decoded on the server and parsed then this metadata saves to the database according to the model described in the ./docs/storage.md
The following keys will be created in the database:
faclities: list of ids
sublevel f_<facilityId>:
metadata: the facility metadata
spaces: list of ids
otherItems: list of ids
sublevel spaces_<spaceId>:
metadata_generic: generic space item metadata
metadata: extended space metadata
sublevel otherItems_<itemId>:
metadata_generic: generic item metadata
FacilitiesService provides:
methods for getting ids of facilities and sublevel items such as spaces and otherItems
This PR introduces the functionality of adding/updating facility metadata to the
lpms-server
database storage.When the manager uses
lpms-cli
to upload the facility metadata (still monolithic) this file is decoded on the server and parsed then this metadata saves to the database according to the model described in the ./docs/storage.mdThe following keys will be created in the database:
faclities
: list of idsf_<facilityId>
:metadata
: the facility metadataspaces
: list of idsotherItems
: list of idsspaces_<spaceId>
:metadata_generic
: generic space item metadatametadata
: extended space metadataotherItems_<itemId>
:metadata_generic
: generic item metadataFacilitiesService provides:
spaces
andotherItems
TODO
stubs
,rules
,modifiers