AllenInstitute / brain_observatory_qc

Other
2 stars 0 forks source link

Mongodb Refactor on DEV #241

Closed DowntonCrabby closed 1 year ago

DowntonCrabby commented 1 year ago

Issue to track updates to the mongodb DEV space for refactoring

DowntonCrabby commented 1 year ago

New structure with multiple databases now: 3 databases:

image

collection name changes:

Report components

DowntonCrabby commented 1 year ago

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

DowntonCrabby commented 1 year ago

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: image

DowntonCrabby commented 1 year ago

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: image

DowntonCrabby commented 1 year ago

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:

image (13)

DowntonCrabby commented 1 year ago

Closing this ticket- will provide updated schemas to Sean