Support versioned schemas without invalidating historical records #292
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/dump-things-service#292
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Collections need a defined mechanism for changing their schemas while preserving the interpretation and validity of records submitted under earlier schema versions.
Relevance to case-e
Published case-e studies can be modified through explicit new versions. Previously collected participant data must remain interpretable according to the version of the study under which it was entered. Updating a collection to a newly generated study schema must not make historical records invalid or ambiguous.
If the new schema is backward compatible, the system will happily work with the existing records.
If no classes are deleted in the updated schema, all existing records can be retrieved as JSON-objects. If classes were deleted in the updated schema and a backend without a Schema-Type Layer is used, even records of no-longer existing classes can be retrieved as JSON-records.
Changing the schema is currently possible by updating the collection configuration during runtime (currently this can be done by deleting and re-adding the collection with a new schema; this operation requires an admin token).