Support versioned schemas without invalidating historical records #292

Open
opened 2026-10-14 14:14:39 +00:00 by venkateshhs · 1 comment
Owner

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.

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.
Owner

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).

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).
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/dump-things-service#292
No description provided.