Skip to content

Commit bbc59b0

Browse files
authored
Fix payload for adding file references (#128)
* Fix file reference payload When adding file references via the ingest API, the payload needs to nest the file schema under a "content" key. * Update docker version for testing * Update logging * Update docker image versions
1 parent 7bbc034 commit bbc59b0

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

adapter_pipelines/Optimus/adapter.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ workflow AdapterOptimus {
139139
Int max_cromwell_retries = 0
140140
Boolean add_md5s = false
141141

142-
String pipeline_tools_version = "v0.48.0"
142+
String pipeline_tools_version = "v0.48.1"
143143

144144
call GetInputs as prep {
145145
input:

adapter_pipelines/cellranger/adapter.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ workflow Adapter10xCount {
150150
Int max_cromwell_retries = 0
151151
Boolean add_md5s = false
152152

153-
String pipeline_tools_version = "v0.48.0"
153+
String pipeline_tools_version = "v0.48.1"
154154

155155
call GetInputs {
156156
input:

adapter_pipelines/ss2_single_sample/adapter.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ workflow AdapterSmartSeq2SingleCell{
8282
Int max_cromwell_retries = 0
8383
Boolean add_md5s = false
8484

85-
String pipeline_tools_version = "v0.48.0"
85+
String pipeline_tools_version = "v0.48.1"
8686

8787
call GetInputs as prep {
8888
input:

pipeline_tools/create_envelope.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,13 @@ def add_file_reference(file_ref, file_refs_url, auth_headers, http_requests):
312312
Raises:
313313
requests.HTTPError: For 4xx errors or 5xx errors beyond timeout.
314314
"""
315-
print('Adding file: {0} to the file reference.'.format(file_ref['file_core']['file_name']))
316-
response = http_requests.put(file_refs_url, headers=auth_headers, json=file_ref)
315+
# Format payload for ingest file reference API endpoint
316+
file_payload = {
317+
'fileName': file_ref['file_core']['file_name'],
318+
'content': file_ref
319+
}
320+
print('Adding file reference: {}'.format(file_payload))
321+
response = http_requests.put(file_refs_url, headers=auth_headers, json=file_payload)
317322
return response.json()
318323

319324

0 commit comments

Comments
 (0)