Skip to content

Conversation

ngeorges-cnrs
Copy link
Contributor

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 with vipapps.py command-line.

The lack of a check on the author field in vipapps.py caused the Coil_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, while vipapps.py doesn't. These checks are rather incomplete anyway compared to the custom properties that are actually implemented, so some upcoming decision remains on :

  • whether or not we want to check custom properties at import-time
  • whether or not the induced implementations should be factorized between VIP-portal and vipapps.py : in theory this could be done by either having VIP-portal expose a descriptor validation API that vipapps.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 to bosh validate (single Python implementation in VIP-python-client, packaging TBD)

- Add author field
- Add missing '@' character in appname
- Cross-reference comment to similar rules in VIP-portal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant