Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_middleware
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:TSSW Sprint - Mar 14 - Mar 28
-
Team:Telescope and Site
-
Urgent?:No
Description
In ts_salobj 7.0.0.rc.2 (and .rc.1) mishandles applying configuration overrides for sub-dicts. It calls dict.update to apply all overrides, and that does not operate hiearchically. Thus for example _init.yaml has:
foo:
|
key1: value1
|
key2: value2
|
...
|
and the override file has:
foo:
|
key1: override value1
|
the result will be to lose key2 and all other properties of foo.
It is necessary to write a custom override function that operates hierarchically and probably recursively, so if an override item has a value that is a dict, the overrides are applied key by key. I am not aware of any built-in function that does this.
Additional fixes:
Pull request: https://github.com/lsst-ts/ts_salobj/pull/new/tickets/DM-34038