Skip to content

Commit

Permalink
Merge pull request #247 from CBIIT/release-v3.1.4
Browse files Browse the repository at this point in the history
Release v3.1.4
  • Loading branch information
fmanuelos authored Sep 5, 2023
2 parents 8750473 + 4c0ca75 commit 162072d
Show file tree
Hide file tree
Showing 110 changed files with 168,057 additions and 2,174 deletions.
16 changes: 0 additions & 16 deletions server/components/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,6 @@ const helper_gdc = (fileJson, syns) => {
values_ncit_mapping[v.toLowerCase()] = [];
});

/*
for(let key in entry.enumDef){
let obj = entry.enumDef[key];
let v = key.toLowerCase();
if(v in values_ncit_mapping){
if(obj && obj.termDef && obj.termDef.term_id && values_ncit_mapping[v].indexOf(obj.termDef.term_id.trim()) == -1){
values_ncit_mapping[v].push(obj.termDef.term_id.trim());
}
}
}
*/

// 2. work on conceptCode to further combind the ncit code
// depracted as data mappings in conceptCode.js file have already been included in gdc_values.js file

Expand Down Expand Up @@ -209,10 +197,6 @@ const helper_gdc = (fileJson, syns) => {
});
}

// if (entry.deprecated_enum) {
// values = _.differenceWith(values, entry.deprecated_enum, _.isEqual);
// }

//generate p.enum
if(values.length > 0){
p.enum = [];
Expand Down
2 changes: 1 addition & 1 deletion server/data_files/GDC/gdc_props.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/data_files/GDC/gdc_values.js

Large diffs are not rendered by default.

258 changes: 258 additions & 0 deletions server/data_files/GDC/model-2.6.6/_definitions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
id: _definitions

uuid:
$ref: "_terms.yaml#/uuid"
type: string
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
systemAlias: node_id

parent_uuids:
type: array
minItems: 1
items:
$ref: "#/uuid"
uniqueItems: true

foreign_key_project:
type: object
# Allow true here because we can have other unique keys defined on
# a target type
additionalProperties: True
# Can either use 'id' which are GDC IDs (uuid) or 'submitter_id'
# which are user defined IDs ("submitter IDs in the backend")
properties:
id:
$ref: "#/uuid"
submitter_id:
type: string

to_one_project:
anyOf:
- type: array
items:
$ref: "#/foreign_key_project"
minItems: 1
maxItems: 1
- $ref: "#/foreign_key_project"

to_many_project:
anyOf:
- type: array
items:
$ref: "#/foreign_key_project"
minItems: 1
- $ref: "#/foreign_key_project"

foreign_key:
type: object
# Allow true here because we can have other unique keys defined on
# a target type
additionalProperties: True
# Can either use 'id' which are GDC IDs (uuid) or 'submitter_id'
# which are user defined IDs ("submitter IDs in the backend")
properties:
id:
$ref: "#/uuid"
submitter_id:
type: string

to_one:
anyOf:
- type: array
items:
$ref: "#/foreign_key"
minItems: 1
maxItems: 1
- $ref: "#/foreign_key"

to_many:
anyOf:
- type: array
items:
$ref: "#/foreign_key"
minItems: 1
- $ref: "#/foreign_key"

datetime:
$ref: "_terms.yaml#/datetime"
oneOf:
- type: string
format: date-time
- type: 'null'

file_name:
$ref: "_terms.yaml#/file_name"
type: string

file_size:
$ref: "_terms.yaml#/file_size"
type: integer

file_format:
$ref: "_terms.yaml#/file_format"
type: string

md5sum:
$ref: "_terms.yaml#/md5sum"
type: string
pattern: "^[a-f0-9]{32}$"

release_state:
description: >-
Release state of an entity.
default: unreleased
enum:
- unreleased
- released
- redacted

data_bundle_state:
description: >-
State of a data bundle.
default: submitted
enum:
- submitted
- validated
- error
- released
- suppressed
- redacted

data_file_error_type:
$ref: "_terms.yaml#/data_file_error_type"
enum:
- file_size
- file_format
- md5sum

state:
$ref: "_terms.yaml#/state"
default: validated
downloadable:
- uploaded
- md5summed
- validating
- validated
- error
- invalid
- released
public:
- live
oneOf:
- enum: #This list covers legacy data
- uploading
- uploaded
- md5summing
- md5summed
- validating
- error
- invalid
- suppressed
- redacted
- live
- enum: #This list covers all future data 1/15/16
- validated
- submitted
- released

file_state:
$ref: "_terms.yaml#/file_state"
default: registered
enum:
- registered
- uploading
- uploaded
- validating
- validated
- submitted
- processing
- processed
- released
- error
- deleted

qc_metrics_state:
$ref: "_terms.yaml#/qc_metric_state"
enum:
- FAIL
- PASS
- WARN
- Unknown
- Not Reported

project_id:
$ref: "_terms.yaml#/project_id"
type: string

data_file_properties:
$ref: "#/ubiquitous_properties"

file_name:
$ref: "#/file_name"

file_size:
$ref: "#/file_size"

md5sum:
$ref: "#/md5sum"

file_state:
$ref: "#/file_state"

error_type:
$ref: "#/data_file_error_type"

state_comment:
description: >-
Optional comment about why the file is in the current state, mainly for invalid state.
type: string

workflow_properties:
$ref: "#/ubiquitous_properties"

workflow_link:
description: >-
Link to Github hash for the CWL workflow used.
type: string

workflow_version:
description: >-
Major version for a GDC workflow.
type: string

workflow_start_datetime:
$ref: "#/datetime"

workflow_end_datetime:
$ref: "#/datetime"

ubiquitous_properties:
type:
type: string

id:
$ref: "#/uuid"

submitter_id:
description: >-
A project-specific identifier for a node. This property is the calling card/nickname/alias
for a unit of submission. It can be used in place of the uuid for identifying
or recalling a node.
type: string

batch_id:
description: >-
GDC submission batch indicator. It is unique within the context of a project.
type: integer

state:
$ref: "#/state"

project_id:
$ref: "#/project_id"

created_datetime:
$ref: "#/datetime"

updated_datetime:
$ref: "#/datetime"
Loading

0 comments on commit 162072d

Please sign in to comment.