-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ORCA-306] Get and update Challenge submissions #37
Conversation
7ad8b61
to
ecd5b77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - I know you're still actively working on it, so just some preliminary comments.
|
||
from challengeutils import utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package is going to be deprecated in favor of cnb-tools eventually. For now it's ok, but the package isn't being regularly maintained.
Probably need to add this to the pipfile.
Maybe some of the challenge module should be added to the python client.
Hi @thomasyu888 thanks for the comments. Since this PR is a blocker for ORCA-302, I'd like to give a status update: I see no way of mocking the |
See something like this: https://github.com/Sage-Bionetworks/Genie/blob/429dafbaed3bc78bbf71ff6bfffb7d88a6f49d4d/tests/test_clinical.py#L15-L46. There is a way to create unit tests by mocking the behavior of |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 28 28
Lines 920 932 +12
Branches 140 141 +1
=========================================
+ Hits 920 932 +12 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks! Let me know when the new version has been released.
Quality Gate passedIssues Measures |
problem
Helper methods needed to be added for basic operations with Synapse, such as retrieving the submissions with a certain submission status and updating submission statuses. This is for the new Sage Bionetworks Challenges backend workflow for handling submissions, which includes running an automated Airflow process that retrieves submissions and updates their status before piping them over to the Nextflow workflow.
solution
RECEIVED
)challengeutils
as a dependencytesting & preview
Unit tests were added to
test_ops.py
to cover basic functionality and error-handling.Further, here are some screenshots from actual communications with the API: