Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…r_config into dev
  • Loading branch information
lakikowolfe committed Jun 7, 2024
2 parents 240f9db + 2ae919d commit 6b3dec2
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dcc/BTC/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn51407795",
"data_model_url": "https://raw.githubusercontent.com/Sage-Bionetworks/btc-data-models/main/btc.model.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/BTC/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/prod/BTC/dca-template-config.json",
"logo_location": "",
"logo_link": "",
"dcc_help_link": "",
Expand Down
2 changes: 1 addition & 1 deletion dcc/EL/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn51753858",
"data_model_url": "https://raw.githubusercontent.com/Sage-Bionetworks/ELITE-data-models/main/example.model.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/EL/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/prod/EL/dca-template-config.json",
"logo_location": "",
"logo_link": "",
"dcc_help_link": "",
Expand Down
2 changes: 1 addition & 1 deletion dcc/GF/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn28142805",
"data_model_url": "https://raw.githubusercontent.com/gf-dcc/data-model/v1.1.0-rc/GF.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/GF/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/prod/GF/dca-template-config.json",
"logo_location": "",
"logo_link": "",
"dcc_help_link": "",
Expand Down
2 changes: 1 addition & 1 deletion dcc/MC2/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn27210848",
"data_model_url": "https://raw.githubusercontent.com/mc2-center/data-models/main/mc2.model.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/MC2/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/mc2-center/data-models/v5.1.2/dca_config/dca-template-config.json",
"logo_location": "dcc/MC2/cckp_logo.png",
"logo_link": "https://cancercomplexity.synapse.org",
"dcc_help_link": "",
Expand Down
2 changes: 1 addition & 1 deletion dcc/VEOIBD/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn51397378",
"data_model_url": "https://raw.githubusercontent.com/VEOIBD/data_models/main/veoibd.data.model.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/VEOIBD/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/prod/VEOIBD/dca-template-config.json",
"logo_location": "dcc/VEOIBD/VEOIBD Logo.png",
"logo_link": "https://veoibd.org",
"dcc_help_link": "",
Expand Down
2 changes: 1 addition & 1 deletion dcc/demo_upsert/dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"synapse_asset_view": "syn51489635",
"data_model_url": "https://raw.githubusercontent.com/Sage-Bionetworks/schematic/develop/tests/data/example.model.jsonld",
"data_model_info": "",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/main/demo/dca-template-config.json",
"template_menu_config_file": "https://raw.githubusercontent.com/Sage-Bionetworks/data_curator_config/prod/demo/dca-template-config.json",
"logo_location": "",
"logo_link": "",
"dcc_help_link": "",
Expand Down
74 changes: 64 additions & 10 deletions schemas/dca_config.schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
"title": "Configuration for individual DCCs in mtDCA",
"description": "Configuration options for a specific DCC in mtDCA",
"type": "object",
"required": [ "dcc", "dca", "schematic" ],
"additionalProperties": false,
"properties": {
"dcc": {
"description": "DCC parameters",
"type": "object",
"required": [ "name", "synapse_asset_view", "data_model_url", "template_menu_config_file" ],
"required": [
"name",
"synapse_asset_view",
"data_model_url",
"data_model_info",
"template_menu_config_file",
"logo_location",
"logo_link",
"dcc_help_link",
"portal_help_link"
],
"properties": {
"name": {
"description": "Name of the DCC",
Expand Down Expand Up @@ -55,6 +64,12 @@
"dca": {
"description": "DCA configuration options",
"type": "object",
"required": [
"use_compliance_dashboard",
"primary_col",
"secondary_col",
"sidebar_col"
],
"properties": {
"use_compliance_dashboard": {
"description": "Display the compliance dashboard. Unavaible at the moment",
Expand All @@ -80,9 +95,26 @@
"schematic": {
"description": "Schematic configuration options",
"type": "object",
"required": [ "manifest_generate", "model_validate", "model_submit" ],
"required": [
"global",
"manifest_generate",
"model_validate",
"model_submit"
],
"additionalProperties": false,
"properties": {
"global": {
"description": "Parameters common to many schematic commands",
"type": "object",
"required": [ "data_model_labels" ],
"properties": {
"data_model_labels": {
"description": "Source for labels of the data model",
"type": "string",
"enum": [ "class_label", "display_label" ]
}
}
},
"manifest_generate": {
"description": "Parameters to pass to Schematic manifest generate",
"type": "object",
Expand All @@ -103,25 +135,44 @@
"model_validate": {
"description": "Parameteres to pass to Schematic model validate",
"type": "object",
"required": [ "restrict_rules" ],
"required": [
"restrict_rules",
"enable_cross_manifest_validation"
],
"additionalProperties": false,
"properties": {
"restrict_rules": {
"description": "Schematic model validate option",
"type": "boolean"
},
"enable_cross_manifest_validation": {
"description": "Use cross manifest validation",
"type": "boolean"
}
}
},
"model_submit": {
"description": "Parameters to pass Schematic model submit",
"type": "object",
"required": [ "use_schema_labels", "table_manipulation",
"manifest_record_type", "hide_blanks" ],
"required": [
"table_manipulation",
"manifest_record_type",
"hide_blanks",
"annotation_keys",
"table_column_names",
"file_annotations_upload"
],
"additionalProperties": false,
"properties": {
"use_schema_labels": {
"annotation_keys": {
"description": "Schematic model submit option",
"type": "boolean"
"type": "string",
"enum": [ "class_label", "display_label" ]
},
"table_column_names": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "class_label", "display_label", "display_name" ]
},
"table_manipulation": {
"description": "Schematic model submit option",
Expand All @@ -136,11 +187,14 @@
"hide_blanks": {
"description": "Schematic model submit option",
"type": "boolean"
},
"file_annotations_upload": {
"description": "Choose to add annotations to files during upload",
"type": "boolean"
}
}
}
}
}
}
}
}

2 changes: 1 addition & 1 deletion test/smoke_test_dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"table_manipulation": "replace",
"manifest_record_type": "table_and_file",
"hide_blanks": false,
"upload_file_annotations":true
"file_annotations_upload":true
}
}
}
3 changes: 2 additions & 1 deletion test/test_cross_manifest_validation_type_dca_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"use_annotations": false
},
"model_validate": {
"restrict_rules": false
"restrict_rules": false,
"enable_cross_manifest_validation": true
},
"model_submit": {
"use_schema_labels": true,
Expand Down

0 comments on commit 6b3dec2

Please sign in to comment.