Closed juzen2003 closed 2 years ago
Progress of cleaning up the code related to mult table
mult_target_name_template.json
MULT_TABLES_WITH_TARGET_GROUPING
mult_options
in .json filesgrouping_target_name
tableZZGroupingTargetName
in search/models.py
GroupingTargetName
in metadata/models.py
{
'col_val': value for the mult option,
'disp_name': display name on the UI,
'disp_order': display order of this option within the same group, could be None
'grouping': group name associated with this value, could be None
'group_disp_order': display order of this group, could be None
}
obs_general.py
field_obs_general_target_name
field_obs_general_target_class
obs_instrument_ebrocc.py
:
field_obs_general_target_name
field_obs_profile_quality_score
field_obs_profile_source
field_obs_profile_host
NOTE:
TARGET_NAME_GROUP_MAPPING
in config_targets.py
to specify the order and display name of different groups for non-preprogrammed mult. Previously we store the info in the db. Do we want to keep this info in db (then it will be like the old grouping_target_name
table existing for display order only)? Or should we keep all the customized grouping info in another file? _create_mult
Updated based on above comments
Updated based on the latest comments.
Description of changes: