Closed DowntonCrabby closed 1 year ago
New structure with multiple databases now: 3 databases:
collection name changes:
Report components
Updates to schema module_groups and modules collections in report_components database:
module_groups removed "active_qc_required" field. It held redundant information as the "review_type" field
modules removed "module_filters" field- it was redundant with module_groups.report_modules.module_filters
Updated several field names in the controlled language tags collection
attempt_data_recollection_default -> attempt_data_recollection default_actions -> follow-up_actions default_qc_outcome -> datastream_qc_outcome
new template:
Updated the schema and some naming of the metrics collection in the report components database
renamed fields: data_type_group -> general_type metric_data_type -> sub_type default_actions -> follow-up_actions
Schema update removed threshold_info_new object nested general_type and sub_type within data_type nested source, dataset, metric_key within data_location nested thresholds_active within threshold_info
the template in report_components.component_templates has been updated to reflect this:
refactoring of the "table" object within the modules collection documents.
the styling should be defined elsewhere and instead we should create an "enum" for the cell type. This could live in the mongodb or not- either way.
the updated table should then look something like:
Closing this ticket- will provide updated schemas to Sean
Issue to track updates to the mongodb DEV space for refactoring