Commit graph

6 commits

Author SHA1 Message Date
Richard Bowman
e611840aca Save microscope id as a string
UUIDs don't serialise to JSON, so I'm now saving it as a plain
string and reconstructing a UUID object when it's returned.

Returning a UUID seems clearer than returning a string.
2024-01-11 19:53:08 +00:00
Richard Bowman
074b9c67f8 Serialise microscope ID to string
UUID objects don't serialise with `json.dumps` and thus cause
errors when we try to embed `thing_state` into images.
2024-01-11 15:58:42 +00:00
Richard Bowman
f51d6ced71 Add hostname and microscope ID to metadata
It's often helpful to tell if images came from the same
microscope - this metadata should answer that question.
2024-01-11 14:48:08 +00:00
Richard Bowman
d0eb9fa2c1 Format/comment improvements 2023-12-13 16:35:13 +00:00
Richard Bowman
94e1619056 Use safer metadata dependency
Retrieving metadata pre-action risks stale metadata being
returned if DirectThingClients are used. I've switched to
the safer callable dependency, which is guaranteed to be fresh.
2023-12-12 23:40:12 +00:00
Richard Bowman
e5e5be7369 Added settings manager to store arbitrary metadata 2023-11-29 23:38:28 +00:00