Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
B3rse committed Nov 21, 2023
1 parent 4ef1bbd commit 88c44b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipeline_utils/lib/yaml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def to_json(
# check for secondary formats
if getattr(self, self.SECONDARY_FORMATS_SCHEMA, None):
frmt_json[self.EXTRA_FILE_FORMATS_SCHEMA] = getattr(self, self.SECONDARY_FORMATS_SCHEMA)
frmt_json[self.STATUS_SCHEMA] = getattr(self, self.STATUS_SCHEMA, 'shared')
frmt_json[self.STATUS_SCHEMA] = getattr(self, self.STATUS_SCHEMA, 'released')

# uuid, accession if specified
if getattr(self, self.UUID_SCHEMA, None):
Expand Down
2 changes: 1 addition & 1 deletion tests/repo_correct/portal_objects/file_format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ secondary_formats:
# file_types:
# - FileReference
# - FileProcessed
status: shared
status: obsolete

---

Expand Down
4 changes: 2 additions & 2 deletions tests/test_yaml_file_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_file_format():
"submission_centers": ["hms-dbmi"],
"consortia": ["cgap-core"],
"standard_file_extension": "bam",
"status": "shared"
"status": "obsolete"
# "valid_item_types": ["ReferenceFile", "FileProcessed"]
},
{
Expand All @@ -31,7 +31,7 @@ def test_file_format():
"submission_centers": ["hms-dbmi"],
"consortia": ["cgap-core"],
"standard_file_extension": "bam.bai",
"status": "shared",
"status": "released",
# "valid_item_types": ["ReferenceFile", "FileProcessed"],
"uuid": '1936f246-22e1-45dc-bb5c-9cfd55537fe9'
}
Expand Down

0 comments on commit 88c44b8

Please sign in to comment.