Feature #17944

add vocabulary validation to controller

Added by Ward Vandewege about 2 months ago. Updated 6 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
3.0

Description

Cf. https://doc.arvados.org/admin/workbench2-vocabulary.html

  • vocabulary is currently available in wb2 for collections, projects.
  • add config parameter to API/VocabularyPath, expected to be local to the machine the controller runs on.
  • the vocabulary file will be cached by controller; file timestamp will be checked on any request. If the vocabulary file can't be read (e.g. permissions, invalid json, etc), the existing cached version will be used and a health warning/prometheus alert should be raised.
  • if the file can't be read on startup, that's an error. config-check should also check this, and will need to take into account that this is only an error if the context is the controller.
  • apply validation before save/update requests. Admin users do not get special treatment.
  • the validation code should handle existing data gracefully: if tags are not being changed but are invalid, updates to other fields in the collection should still be permitted.
  • change wb2 to get the file from controller (it will need to export the cache copy as a valid json url)

Related issues

Blocks Arvados Epics - Story #17454: Vocabulary/schema checking of properties by API server/controllerNew10/01/202111/30/2021

History

#1 Updated by Ward Vandewege about 2 months ago

  • Blocks Story #17454: Vocabulary/schema checking of properties by API server/controller added

#2 Updated by Ward Vandewege about 2 months ago

  • Description updated (diff)

#3 Updated by Ward Vandewege about 2 months ago

  • Description updated (diff)

#4 Updated by Ward Vandewege about 2 months ago

  • Description updated (diff)

#5 Updated by Ward Vandewege about 2 months ago

  • Description updated (diff)

#6 Updated by Ward Vandewege about 2 months ago

  • Story points set to 3.0

#7 Updated by Ward Vandewege about 2 months ago

  • Target version set to 2021-08-18 sprint

#8 Updated by Peter Amstutz about 2 months ago

  • Target version deleted (2021-08-18 sprint)

#9 Updated by Peter Amstutz about 2 months ago

  • Target version set to 2021-09-01 sprint
  • Project changed from Arvados Epics to Arvados

#10 Updated by Peter Amstutz about 1 month ago

  • Target version changed from 2021-09-01 sprint to 2021-09-15 sprint

#11 Updated by Peter Amstutz 20 days ago

  • Target version changed from 2021-09-15 sprint to 2021-09-29 sprint

#12 Updated by Peter Amstutz 6 days ago

  • Target version changed from 2021-09-29 sprint to 2021-10-13 sprint

#13 Updated by Peter Amstutz 6 days ago

  • Target version changed from 2021-10-13 sprint to 2021-10-27 sprint

Also available in: Atom PDF