Skip to content

Improve handling of settings #92

@rwb27

Description

@rwb27

Currently, settings are managed by a dictionary that's injected into a Thing when it attaches to a server. I think there are some improvements we could make.

  1. Introduce a setting descriptor. This would make it simple to have a Property that's persisted in the settings file.
  2. Allow settings to be specified in LabThings config files. This could either be as a default (i.e. set the setting in the file if it's not already set), an overwrite, or an instruction to lock the setting so it becomes read-only. I think there are a few use cases when that would be really helpful.
  3. Construct a settings model for more reliable serialisation/deserialisation to/from JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    roadmapPlans for the future

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions