Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Story Points:2
-
Sprint:TSSW Sprint - Jan 30 - Feb 13
-
Team:Telescope and Site
-
Urgent?:No
Description
The original idea was to reject new messages with invalid obs_id (if is_new true; else reject when the butler finds no matching exposures). That code got reviewed and approved (thanks for a very helpful review Tim Jenness). Then we decided it would be much safer to require that any exposures exist in the registry; it is quite difficult to prevent invalid entries any other way.
So for now I changed the code to deprecate and ignore the is_new flag to add_message, and always treat it as false. This simplifies the code (but required some work in test_add_messages.py – the other unit tests continue to add messages with invalid obs_id and instrument, since the messages are added directly rather than via the REST API and that is acceptable for unit tests).
The long-term plan is to switch from using the butler to reading a new exposure database, once that is available (possibly later this spring), at which point it will once again be possible to annotate the current exposure(s) being taken.
Other fixes:
DM-37855so we'll hold off on that for now).Pull requests: