Skip to content

ORC-1215: Implement new interface and internal schemas

Mark Ashdown requested to merge orc-1215-new-schemas into master

Implement new interface and internal schemas for the SDP configuration database. The changes follow from:

  • ADR-9 which updated the naming conventions for Tango devices,
  • ADR-33 which introduced the concept of an execution block as distinct from a scheduling block instance (see also ADR-41), and
  • ADR-35 which introduced best practices for the Tango interface JSON schemas, after which the SDP interface schemas were updated.

The rationale for updating the internal schemas is outlined in SDP internal changes for schema updates.

Changes in detail:

  • Transaction methods for a "scheduling block" are renamed to refer to "execution block" instead.
  • Path for execution blocks in the database is changed to /eb.
  • Transaction methods for the "master" LMC device state are renamed to refer to "controller" instead.
  • Paths for LMC device states are prefixed with /lmc to group them together, and path for controller state is changed to /lmc/controller.
  • "id" and "type" are no longer used as keywords to avoid clashes with Python built-ins:
    • Most instances of "id" are replaced with prefixed versions ("pb_id", "eb_id", "dpl_id", "scan_type_id"),
    • Processing block workflow "id" is replaced with "name",
    • Instances of "type" are replaced with "kind".
Edited by Mark Ashdown

Merge request reports