-
Notifications
You must be signed in to change notification settings - Fork 5
Draft schema (db) change process #309
Copy link
Copy link
Open
Labels
BackendThis issue requires touching flask and/or database modelThis issue requires touching flask and/or database modelDatabase SchemaThis issue changes the database schemaThis issue changes the database schemaHigh priorityThis issue is high priorityThis issue is high priority
Milestone
Metadata
Metadata
Assignees
Labels
BackendThis issue requires touching flask and/or database modelThis issue requires touching flask and/or database modelDatabase SchemaThis issue changes the database schemaThis issue changes the database schemaHigh priorityThis issue is high priorityThis issue is high priority
Type
Fields
Give feedbackNo fields configured for issues without a type.
Need for Optimization
As we move forward, the following json schema related requests might arise:
Describe Desired Optimization
Define and implement a database migration process which makes sure all the existing documents (in db) are consistent with respect to the new schema.
For the existent documents that do not match the updated schema, figure out what's the best way to migrate them. Note that the migration process and the document update decision is likely dependent on the type of schema update.
Describe Alternatives
There are no alternative solutions, we need to have this process in place to take care of future feature requests, bug fixes, and optimizations.
Additional Context
Some notes from
NCI R01 Technology Implementation Meetingon April 18 2022:BIG OR) to validate if document (json) matches just oneOf all the existing schemas