Skip to content

Streamline definition of LabelMeta aliases #3

@LandingEllipse

Description

@LandingEllipse

Some label attributes have multiple monikers associated to provide convenience aliases. For instance, in the PanCam meta map, both sub_instrument and camera point to .//psa:Sub-Instrument/psa:identifier. Currently, this results multiple KV pairs, which is a bit messy, and which anecdotally increases the threshold for defining aliases.

We could alternatively allow keys to be string tuples.
Pros:

  • Only one entry per label attribute; less room for mistakes
  • Cleaner communication of the availability of aliases; potentially easier to integrate with documentation

Cons:

  • Unclear what order the aliases should be in (though attribute name first seems sensible)
  • Loss of static key collision warnings (although this could be covered by a test)
  • Need to unpack the source meta map dict at runtime anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions