-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Schema Rendering: Functions that render ddSchema as json-schema or mongo-schema are needed. This should be implemented with reuse in mind as it is likely to support a new schema management tool.
Implement new schema management tool that leverages the load specifications features, and the render ddSchema as mongo_schema function to process mongo configurations. Revisit versioning logic and config file structure. Enforce migrations on major only, drop/add indexes, drop/add schema validation per version, upsert Versions, upsert Enumerators. LOAD=True will load test data. Safety breaker will only load test data into empty collections.
Add a RELOAD=True to the schema management tool that causes all data to be deleted and test data to be loaded. Implement safety breaker that prevents reload processing if a key collection has more than a specific number of documents.