Skip to content

Commit

Permalink
Fix getting bundle metadata in prod (#163)
Browse files Browse the repository at this point in the history
* Fix parsing of dss deployment

Note: the metadata-api library method for
downloading bundle metadata will use
the prod environment if no deployment
is specified.

* Update pipeline-tools version
  • Loading branch information
samanehsan authored Sep 2, 2019
1 parent 8ee0184 commit 1202e87
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion adapter_pipelines/Optimus/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ workflow AdapterOptimus {
Boolean record_http = false
Boolean add_md5s = false
String pipeline_tools_version = "v0.56.3"
String pipeline_tools_version = "v0.56.4"
call GetInputs as prep {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/cellranger/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ workflow Adapter10xCount {
Boolean record_http = false
Boolean add_md5s = false
String pipeline_tools_version = "v0.56.3"
String pipeline_tools_version = "v0.56.4"
call GetInputs {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/ss2_single_end/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ workflow AdapterSmartSeq2SingleCellUnpaired {
Boolean record_http = false
Boolean add_md5s = false
String pipeline_tools_version = "v0.56.3"
String pipeline_tools_version = "v0.56.4"
call GetInputs as prep {
input:
Expand Down
2 changes: 1 addition & 1 deletion adapter_pipelines/ss2_single_sample/adapter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ workflow AdapterSmartSeq2SingleCell{
Boolean record_http = false
Boolean add_md5s = false
String pipeline_tools_version = "v0.56.3"
String pipeline_tools_version = "v0.56.4"
call GetInputs as prep {
input:
Expand Down
6 changes: 4 additions & 2 deletions pipeline_tools/shared/metadata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ def get_bundle_metadata(uuid, version, dss_url, directurls=False):
Returns:
humancellatlas.data.metadata.Bundle: A bundle metadata object.
"""
dss_environment = dss_url.split('.')[1]
client = dss_client(deployment=dss_environment)
dss_deployment = dss_url.split('.')[1]
if dss_deployment not in ('dev', 'integration', 'staging'):
dss_deployment = None # If none, the production deployment will be used
client = dss_client(deployment=dss_deployment)
version, manifest, metadata_files = download_bundle_metadata(
client=client, replica='gcp', uuid=uuid, version=version, directurls=directurls
)
Expand Down

0 comments on commit 1202e87

Please sign in to comment.