happi repair should also check and align an item's name with their _id.
The rationale behind this should also be documented once we agree on it, since we keep questioning why we hold this convention. a quick trawl through issues / pr's shows the reason to be...?
_id is the unique key in the json database, and should match name to make searching in either direction
Expected Behavior
happi repair
should also check and align an item'sname
with their_id
.The rationale behind this should also be documented once we agree on it, since we keep questioning why we hold this convention. a quick trawl through issues / pr's shows the reason to be...?
_id
is the unique key in the json database, and should matchname
to make searching in either directionSome quick bits of conversation:
There are probably other checks to add, maybe they get lumped in with this?
Current Behavior
happi repair
only checks that all mandatory information have values.Possible Solution
Additional code block in the
happi repair
commandContext
brought up in #300
Your Environment
pcds-5.6.0