|
1 | 1 | # Project configurations for the [Data Curator App](github.com/sage-Bionetworks/data_curator)
|
2 | 2 |
|
3 |
| -The file [tenants.json](tenants.json) controls which DCCs appear in DCA. It contains a json object `tenants` which holds one json object per DCC. Each DCC object requires:\ |
| 3 | +The file [tenants.json](tenants.json) controls which DCCs appear in DCA. It contains a json object `tenants` which holds one json object per DCC. Each DCC object requires: |
4 | 4 |
|
5 |
| -- `name`: The name of the DCC to appear in the DCA selection menu\ |
6 |
| -- `synapse_asset_view`: The synapse ID of the DCCs fileview for DCA. Must include "syn"\ |
7 |
| -- `config_location`: Filepath to the DCC's DCA config file. More details below.\ |
| 5 | +- `name`: The name of the DCC to appear in the DCA selection menu |
| 6 | +- `synapse_asset_view`: The synapse ID of the DCCs fileview for DCA. Must include "syn" |
| 7 | +- `config_location`: Filepath to the DCC's DCA config file. More details below. |
8 | 8 |
|
9 |
| -Each DCC will have its own directory to store configuration files. At minimum it will have [dca_config.json](demo/dca_config.json). This file can be validated against [schemas/dca_config.schema.json](schemas/dca_config.schema.json). At the top level it contains three json objects, `dcc`, `dca`, and `schematic`.\ |
| 9 | +Each DCC will have its own directory to store configuration files. At minimum it will have [dca_config.json](demo/dca_config.json). This file can be validated against [schemas/dca_config.schema.json](schemas/dca_config.schema.json). At the top level it contains three json objects, `dcc`, `dca`, and `schematic`. |
10 | 10 |
|
11 |
| -`dcc` contains various configurations about your DCC and data model:\ |
| 11 | +`dcc` contains various configurations about your DCC and data model: |
12 | 12 |
|
13 |
| -- `name` - name of DCC in dropdown menu |
14 |
| -- `synapse_asset_view` - synapse ID of asset view. |
15 |
| -- `data_model_url` - data model URL (**RAW** github file). |
16 |
| -- `data_model_info` - URL to a description of the data model, such as release notes. |
17 |
| -- `template_menu_config_file` - URL to DCA template dropdown file. |
18 |
| -- `logo_location` - URL to logo file. |
19 |
| -- `logo_link` - link to DCC website. |
20 |
| -- `dcc_help_link` - link for users to find help about DCA. |
21 |
| -- `portal_help_link` - link for users to find help about their portal. |
| 13 | +- `name`: name of DCC in dropdown menu |
| 14 | +- `synapse_asset_view`: synapse ID of asset view. |
| 15 | +- `data_model_url`: data model URL (**RAW** github file). |
| 16 | +- `data_model_info`: URL to a description of the data model, such as release notes. |
| 17 | +- `template_menu_config_file`: URL to DCA template dropdown file. |
| 18 | +- `logo_location`: URL to logo file. |
| 19 | +- `logo_link`: link to DCC website. |
| 20 | +- `dcc_help_link`: link for users to find help about DCA. |
| 21 | +- `portal_help_link`: link for users to find help about their portal. |
22 | 22 |
|
23 |
| -`dca` contains DCA-specific customizations:\ |
| 23 | +`dca` contains DCA-specific customizations: |
24 | 24 |
|
25 |
| -- `use_compliance_dashboard` - `TRUE` or `FALSE`. Only FALSE currently supported. Data compliance dashboard. |
26 |
| -- `primary_col` - center header color hex code. |
27 |
| -- `secondary_col` - right header color hex code. |
28 |
| -- `sidebar_col` - left header color hex code. |
| 25 | +- `use_compliance_dashboard`: `TRUE` or `FALSE`. Only FALSE currently supported. Data compliance dashboard. |
| 26 | +- `primary_col`: center header color hex code. |
| 27 | +- `secondary_col`: right header color hex code. |
| 28 | +- `sidebar_col`: left header color hex code. |
29 | 29 |
|
30 |
| -`schematic` contains several objects for passing parameters to schematic commands:\ |
| 30 | +`schematic` contains several objects for passing parameters to schematic commands: |
31 | 31 |
|
| 32 | +- `global` |
| 33 | + |
| 34 | + - `data_model_labels`: `class_label` or `display_label` [Schema labelling option](https://sagebionetworks.jira.com/wiki/spaces/SCHEM/pages/3089498257/How+to+Define+Display+Name+Labeling) |
| 35 | + |
32 | 36 | - `manifest_generate`
|
33 | 37 |
|
34 |
| - - `output_format`-`excel`or`google_sheets\`. [Schemtic manifest get ption](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-manifest-get). |
35 |
| - - `use_annotations` - `TRUE` or `FALSE`. [Schemtic manifest get option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-manifest-get). |
| 38 | + - `output_format`: `excel`or`google_sheets`. [Schemtic manifest get option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-manifest-get). |
| 39 | + - `use_annotations`: `TRUE` or `FALSE`. [Schemtic manifest get option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-manifest-get). |
36 | 40 |
|
37 | 41 | - `model_validate`
|
38 | 42 |
|
39 |
| - - `restrict_rules` - `TRUE` or `FALSE`. [Schematic model validate and submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-validate). |
| 43 | + - `restrict_rules`: `TRUE` or `FALSE`. [Schematic model validate and submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-validate). |
40 | 44 |
|
41 | 45 | - `model_submit`
|
42 | 46 |
|
43 |
| - - `use_schema_labels` - `TRUE` or `FALSE`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
44 |
| - - `table_manipulation` - `replace` or `upsert`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
45 |
| - - `manifest_record_type` - One of `table_and_file`, `file_only` , `file_and_entities` or `table_file_and_entities`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
46 |
| - - `hide_blanks` - `TRUE` or `FALSE`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
| 47 | + - `table_column_names`: `class_label`, `display_label`, or `display_name` [Schema labelling option](https://sagebionetworks.jira.com/wiki/spaces/SCHEM/pages/3089498257/How+to+Define+Display+Name+Labeling) |
| 48 | + - `annotation_keys`: `class_label` or `display_label` [Schema labelling option](https://sagebionetworks.jira.com/wiki/spaces/SCHEM/pages/3089498257/How+to+Define+Display+Name+Labeling) |
| 49 | + - `table_manipulation`: `replace` or `upsert`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
| 50 | + - `manifest_record_type`: One of `table_and_file`, `file_only` , `file_and_entities` or `table_file_and_entities`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
| 51 | + - `hide_blanks`: `TRUE` or `FALSE`. [Schematic model submit option](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit). |
47 | 52 |
|
48 |
| -Each DCC also needs a template configuration file. This controls which data types are accessible to users and if they contain record-based or file-based data. It can be generated by hand or automatically from a data model using the [dca-template-config-action github action](https://github.com/Sage-Bionetworks/dca-template-config-action). See an [example workflow in a data model repo](https://github.com/Sage-Bionetworks/data-models/blob/main/.github/workflows/create-template-config.yml). This json file can be validated against [schemas/dca_template_config.schema.json](schemas/dca_template_config.schema.json). The top level of the file needs a json array of objects named `manifest_schemas`. Each object in the array requires: |
| 53 | +Each DCC also needs a template configuration file. This controls which data types are accessible to users and if they contain record-based or file-based data. It can be generated by hand or automatically from a data model using the [dca-template-config-action github action](https://github.com/Sage-Bionetworks/dca-template-config-action). See an [example workflow in a data model repo](https://github.com/Sage-Bionetworks/data-models/blob/main/.github/workflows/create-template-config.yml). This json file can be validated against [schemas/dca_template_config.schema.json](schemas/dca_template_config.schema.json). The top level of the file needs a json array of objects named `manifest_schemas`. Each object in the array requires the strings: |
49 | 54 |
|
50 | 55 | - `display_name`: Display name of the data type
|
51 | 56 | - `schema_name`: Name of the schema
|
52 | 57 | - `type`: record or file
|
53 |
| -- `project_scope`: Array of Synapse IDs for cross manifest validation. Optional. |
54 |
| - |
55 |
| -Project scope is only needed for data types that use cross manifest validation. In most cases it can be ommitted. |
56 | 58 |
|
57 | 59 | See our [example dca_template_config.json](https://github.com/Sage-Bionetworks/data-models/blob/main/dca-template-config.json)
|
0 commit comments