Skip to content

Commit 7ea519c

Browse files
chore: upgraded findable 29.0.2 #4473 (#4474)
1 parent 57f883b commit 7ea519c

File tree

5 files changed

+138
-94
lines changed

5 files changed

+138
-94
lines changed

app/config/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
Attribute,
3-
AttributeValue,
3+
AttributeValueTypes,
44
DataDictionaryColumnDef,
55
SelectCategoryValue,
66
} from "@databiosphere/findable-ui/lib/common/entities";
@@ -32,7 +32,7 @@ export function mapSelectCategoryValue(
3232
*/
3333
export function buildColumnDefs(
3434
columnDefConfigs: DataDictionaryColumnDef[]
35-
): ColumnDef<Attribute, AttributeValue>[] {
35+
): ColumnDef<Attribute, AttributeValueTypes>[] {
3636
return columnDefConfigs.map((columnDefConfig) => {
3737
const {
3838
attributeDisplayName: header,
@@ -41,7 +41,7 @@ export function buildColumnDefs(
4141
} = columnDefConfig;
4242
return {
4343
accessorFn: (row) => row[key as keyof Attribute],
44-
cell: (props: CellContext<Attribute, AttributeValue>) =>
44+
cell: (props: CellContext<Attribute, AttributeValueTypes>) =>
4545
BasicCell({ ...props }),
4646
header: `${header}`,
4747
id: key,

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
3333
},
3434
"dependencies": {
35-
"@databiosphere/findable-ui": "^27.0.0",
35+
"@databiosphere/findable-ui": "^29.0.2",
3636
"@emotion/react": "^11.13.3",
3737
"@emotion/styled": "^11.13.0",
3838
"@mdx-js/loader": "^3.0.1",

site-config/anvil-cmg/dev/dataDictionary/column-defs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"attributeDisplayName": "Label",
4-
"attributeSlotName": "label",
3+
"attributeDisplayName": "Title",
4+
"attributeSlotName": "title",
55
"width": {
66
"max": "1fr",
77
"min": "200px"
@@ -16,8 +16,8 @@
1616
}
1717
},
1818
{
19-
"attributeDisplayName": "Key",
20-
"attributeSlotName": "key",
19+
"attributeDisplayName": "Name",
20+
"attributeSlotName": "name",
2121
"width": {
2222
"max": "1fr",
2323
"min": "180px"

site-config/anvil-cmg/dev/dataDictionary/data-dictionary.json

Lines changed: 122 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,183 @@
11
{
2+
"name": "anvil_data_dictionary",
3+
"title": "AnVIL Data Dictionary",
24
"classes": [
35
{
4-
"name": "Activity",
56
"description": "Information about the activities performed on biosamples or files that resulted in the generation of additional files.",
6-
"key": "activities",
7-
"label": "Activity",
7+
"name": "activities",
8+
"title": "Activity",
89
"attributes": [
910
{
10-
"key": "activities.activity_type",
11-
"label": "Activity Type",
12-
"description": "A reference to the type of activity, preferably using an identifier in a recommended standard ontology."
11+
"description": "A reference to the type of activity, preferably using an identifier in a recommended standard ontology.",
12+
"multivalued": false,
13+
"name": "activities.activity_type",
14+
"range": "string",
15+
"required": false,
16+
"title": "Activity Type"
1317
},
1418
{
15-
"key": "activities.data_modality",
16-
"label": "Data Modality",
17-
"description": "Data modality describes the biological nature of the information gathered as the result of an Activity, independent of the technology or methods used to produce the information."
19+
"description": "Data modality describes the biological nature of the information gathered as the result of an Activity, independent of the technology or methods used to produce the information.",
20+
"name": "activities.data_modality",
21+
"multivalued": true,
22+
"range": "string",
23+
"required": false,
24+
"title": "Data Modality"
1825
}
1926
]
2027
},
2128
{
22-
"name": "BioSample",
2329
"description": "Information about the sample(s) included in the dataset.",
24-
"key": "biosamples",
25-
"label": "BioSample",
30+
"name": "biosamples",
31+
"title": "BioSample",
2632
"attributes": [
2733
{
28-
"key": "biosamples.anatomical_site",
29-
"label": "Anatomical Site",
30-
"description": "A human-readable reference to the site within the organism from which the biosample was taken."
34+
"description": "A human-readable reference to the site within the organism from which the biosample was taken.",
35+
"name": "biosamples.anatomical_site",
36+
"multivalued": false,
37+
"range": "string",
38+
"required": false,
39+
"title": "Anatomical Site"
3140
},
3241
{
33-
"key": "biosamples.biosample_id",
34-
"label": "BioSample Id",
35-
"description": "A unique identifier for the biosample."
42+
"description": "A unique identifier for the biosample.",
43+
"name": "biosamples.biosample_id",
44+
"multivalued": false,
45+
"range": "string",
46+
"required": true,
47+
"title": "BioSample Id"
3648
},
3749
{
38-
"key": "biosamples.biosample_type",
39-
"label": "BioSample Type",
40-
"description": "A human-readable reference to the type of biosample represented by the record."
50+
"description": "A human-readable reference to the type of biosample represented by the record.",
51+
"name": "biosamples.biosample_type",
52+
"multivalued": false,
53+
"range": "string",
54+
"required": false,
55+
"title": "BioSample Type"
56+
},
57+
{
58+
"description": "A human-readable property that identifies a disease or condition has been reported in this entity.",
59+
"name": "biosamples.disease",
60+
"multivalued": false,
61+
"range": "string",
62+
"required": false,
63+
"title": "Diagnosis"
4164
}
4265
]
4366
},
4467
{
45-
"name": "Dataset",
4668
"description": "A collection of related files and associated metadata that share the same consent and access permissions.",
47-
"key": "datasets",
48-
"label": "Dataset",
69+
"name": "datasets",
70+
"title": "Dataset",
4971
"attributes": [
5072
{
51-
"key": "datasets.accessible",
52-
"label": "Access",
53-
"description": "Indicates whether the user has permission to access the given dataset. For open-access datasets, this value will always be \"Granted\". For controlled-access datasets, it will be \"Required\" if the user is not logged in. If the user is logged in, the value will reflect their specific access permissions for the dataset."
73+
"description": "Indicates whether the user has permission to access the given dataset. For open-access datasets, this value will always be \"Granted\". For controlled-access datasets, it will be \"Required\" if the user is not logged in. If the user is logged in, the value will reflect their specific access permissions for the dataset.",
74+
"multivalued": false,
75+
"name": "datasets.accessible",
76+
"range": "boolean",
77+
"required": true,
78+
"title": "Access"
5479
},
5580
{
56-
"key": "datasets.consent_group",
57-
"label": "Consent Group",
58-
"description": "Consent group or consent groups related to a dataset."
81+
"description": "Consent group or consent groups related to a dataset.",
82+
"multivalued": true,
83+
"name": "datasets.consent_group",
84+
"range": "string",
85+
"required": false,
86+
"title": "Consent Group"
5987
},
6088
{
61-
"key": "datasets.registered_identifier",
62-
"label": "Registered Identifier",
63-
"description": "Unique ID used to identify this dataset in an external database. For example, the DUOS identifier for datasets registered in DUOS."
89+
"description": "Unique ID used to identify this dataset in an external database. For example, the DUOS identifier for datasets registered in DUOS.",
90+
"name": "datasets.registered_identifier",
91+
"multivalued": true,
92+
"range": "string",
93+
"required": false,
94+
"title": "Registered Identifier"
6495
},
6596
{
66-
"key": "datasets.title",
67-
"label": "Title",
68-
"description": "A human-readable property that identifies the dataset which the dataset belongs to."
69-
}
70-
]
71-
},
72-
{
73-
"name": "Diagnosis",
74-
"description": "Information about conditions or diagnoses related to the donor of a biosample.",
75-
"key": "diagnoses",
76-
"label": "Diagnosis",
77-
"attributes": [
78-
{
79-
"key": "diagnoses.disease",
80-
"label": "Diagnosis",
81-
"description": "A human-readable property that identifies a disease or condition has been reported in this entity."
97+
"description": "A human-readable property that identifies the dataset which the dataset belongs to.",
98+
"multivalued": false,
99+
"name": "datasets.title",
100+
"range": "string",
101+
"required": false,
102+
"title": "Title"
82103
}
83104
]
84105
},
85106
{
86-
"name": "Donor",
87107
"description": "Demographic and phenotypic information about the donor.",
88-
"key": "donors",
89-
"label": "Donor",
108+
"name": "donors",
109+
"title": "Donor",
90110
"attributes": [
91111
{
92-
"key": "donors.donor_id",
93-
"label": "Donor Id",
94-
"description": "A unique identifier for the donor."
112+
"description": "A unique identifier for the donor.",
113+
"multivalued": false,
114+
"name": "donors.donor_id",
115+
"range": "string",
116+
"required": true,
117+
"title": "Donor Id"
95118
},
96119
{
97-
"key": "donors.organism_type",
98-
"label": "Organism Type",
99-
"description": "A human-readable reference to the organism type."
120+
"description": "A human-readable reference to the organism type.",
121+
"name": "donors.organism_type",
122+
"multivalued": false,
123+
"range": "string",
124+
"required": false,
125+
"title": "Organism Type"
100126
},
101127
{
102-
"key": "donors.phenotypic_sex",
103-
"label": "Phenotypic Sex",
104-
"description": "A reference to the BiologicalSex of the Donor organism. \"An organismal quality inhering in a bearer by virtue of the bearer's physical expression of sexual characteristics. [PATO_0001894]"
128+
"description": "A reference to the BiologicalSex of the Donor organism. \"An organismal quality inhering in a bearer by virtue of the bearer's physical expression of sexual characteristics. [PATO_0001894]",
129+
"multivalued": false,
130+
"name": "donors.phenotypic_sex",
131+
"range": "string",
132+
"required": false,
133+
"title": "Phenotypic Sex"
105134
},
106135
{
107-
"key": "donors.reported_ethnicity",
108-
"label": "Reported Ethnicity",
109-
"description": "A property that relects a Human Donor's reported ethnic origins. Note this may contain both Race and Ethnicity information as define by the US Department of Interior (DOI) https://www.doi.gov/pmb/eeo/directives/race-data"
136+
"description": "A property that relects a Human Donor's reported ethnic origins. Note this may contain both Race and Ethnicity information as define by the US Department of Interior (DOI) https://www.doi.gov/pmb/eeo/directives/race-data",
137+
"multivalued": true,
138+
"name": "donors.reported_ethnicity",
139+
"range": "string",
140+
"required": false,
141+
"title": "Reported Ethnicity"
110142
}
111143
]
112144
},
113145
{
114-
"name": "File",
115146
"description": "Information for files associated with the dataset.",
116-
"key": "files",
117-
"label": "File",
147+
"name": "files",
148+
"title": "File",
118149
"attributes": [
119150
{
120-
"key": "files.drs_uri",
121-
"label": "DRS URI",
122-
"description": "A Uniform Resource Identifier (URI) that follows the GA4GH Data Repository Service (DRS) specification. It provides a standardized way to reference and access digital objects, such as files, within compliant data repositories. The DRS URI enables interoperability across systems by allowing authorized users and tools to retrieve dataset contents through a consistent interface."
151+
"description": "A Uniform Resource Identifier (URI) that follows the GA4GH Data Repository Service (DRS) specification. It provides a standardized way to reference and access digital objects, such as files, within compliant data repositories. The DRS URI enables interoperability across systems by allowing authorized users and tools to retrieve dataset contents through a consistent interface.",
152+
"multivalued": false,
153+
"name": "files.drs_uri",
154+
"range": "string",
155+
"required": true,
156+
"title": "DRS URI"
123157
},
124158
{
125-
"key": "files.file_format",
126-
"label": "File Format",
127-
"description": "An indication of the format of an electronic file; include the full file extension including compression extensions. Usually aligns with file extension (e.g. bam, sam, text, csv, etc.)"
159+
"description": "An indication of the format of an electronic file; include the full file extension including compression extensions. Usually aligns with file extension (e.g. bam, sam, text, csv, etc.)",
160+
"multivalued": false,
161+
"name": "files.file_format",
162+
"range": "string",
163+
"required": false,
164+
"title": "File Format"
128165
},
129166
{
130-
"key": "files.file_name",
131-
"label": "File Name",
132-
"description": "The name of the file."
167+
"description": "The name of the file.",
168+
"multivalued": false,
169+
"name": "files.file_name",
170+
"range": "string",
171+
"required": false,
172+
"title": "File Name"
133173
},
134174
{
135-
"key": "files.file_size",
136-
"label": "File Size",
137-
"description": "Size of file in megabytes."
175+
"description": "Size of file in megabytes.",
176+
"multivalued": false,
177+
"name": "files.file_size",
178+
"range": "integer",
179+
"required": false,
180+
"title": "File Size"
138181
}
139182
]
140183
}

0 commit comments

Comments
 (0)