Update VIP-specific descriptor checks #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a sibling PR to virtual-imaging-platform/VIP-portal#577, which harmonizes the VIP-specific checks done on top of
bosh validate
, when importing a descriptor in either VIP-portal web UI or withvipapps.py
command-line.The lack of a check on the
author
field invipapps.py
caused theCoil_Characterization-3.3.json
descriptor to be imported without such a field during the migration last week, which would have been rejected if UI import had been used : this has been fixed in virtual-imaging-platform/vip-apps-boutiques-descriptors@2a590fe, this descriptor should be re-imported for consistency.A remaining difference between these two implementations is that VIP-portal does some checks on the
vip:dot
custom property, whilevipapps.py
doesn't. These checks are rather incomplete anyway compared to the custom properties that are actually implemented, so some upcoming decision remains on :vipapps.py
: in theory this could be done by either having VIP-portal expose a descriptor validation API thatvipapps.py
would call (single Java implementation in VIP-portal), or by having a command-line descriptor check implemented in VIP-python-client that VIP-portal would call in addition tobosh validate
(single Python implementation in VIP-python-client, packaging TBD)