Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:TSSW Sprint - Nov 25 - Dec 6
-
Team:Telescope and Site
Description
Once DM-22293 is implemented topic metadata becomes available in salobj: in particular:
- sal_version
- xml_version
- description and units for each field
Also I hope we will eventually a description for each topic, but it's not in the IDL yet. See DM-22294.
Write this metadata to the Avro schema. Where practical match the old EFD schema. See https://sqr-029.lsst.io/#id17
At the top level add:
- sal_version. This existed in the original EFD
- xml_version. This is new.
For each field add:
- description: the description (formerly called "doc")
- units: one guess (formerly called "sal_units")
Angelo Fausti requests that the fields be an empty string if the data is unknown. This requires translation because salobj uses None.
Attachments
Issue Links
- is triggered by
-
DM-22293 Make units and description available in salobj topics.
- Done
Pull request: https://github.com/lsst-ts/ts_salkafka/pull/6
The new schema fields will only be present if the metadata is available. In particular the following are absent when using ts_sal 4.0 and present when using 4.1 pre-release to build the IDL files:
I also took the opportunity to modernize the unit tests to use asynctest.
If you are willing, please check that the new schemas meet your needs.