Skip to content

Updates to summission.py to deal with ExternalQualityMetric ingestion#44

Open
aschroed wants to merge 9 commits into
masterfrom
ajs_test_EQM
Open

Updates to summission.py to deal with ExternalQualityMetric ingestion#44
aschroed wants to merge 9 commits into
masterfrom
ajs_test_EQM

Conversation

@aschroed

@aschroed aschroed commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

NOTE: DO NOT MERGE - this has a dependency on an update to dcicutils - need to merge that in prior to this and make sure pyproject.toml, poetry.lock are updated prior to this merge.

The submissions workbooks for ExternalQualityMetric items are formatted for ease of entry. However, to ingest in a schema conformant way there needs to be a transformation to deal with the arrays of nested objects for EQMs.

Sarah make updates to custom_excel.py in dcicutils/submitr utils to query the portal for field mappings required for the transform. She has a companion PR with those updates - 4dn-dcic/utils#331

This PR are changes in submitr to deal with the transformation and allow that to actually validate and then be ingested.

This at a high level involved transforming the Structured data and then serializing it to a temporary json file that is then used as the actual ingestion input into the portal.

Note that the metadata for the submission is generated from the untransformed workbook just like previously.

For 'ease' of maintenance and consistency all excel workbooks are now treated like this even if there is no EQM sheet.

NOTE: I've successfully submitted a DSA to devtest using this branch - however, some more testing is required to make sure things like resume-uploads works as expected.

@dbmi-svc-checkmarx

dbmi-svc-checkmarx commented Jun 3, 2026

Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Details5b568cc9-fb09-4f7a-9255-b823af5a2bb9

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

@aschroed aschroed requested review from wfeng19 and willronchetti June 3, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants