Closed vivbak closed 4 months ago
Attention: Patch coverage is 62.96296%
with 10 lines
in your changes are missing coverage. Please review.
Project coverage is 77.07%. Comparing base (
d21e399
) to head (c8465f2
).
Files | Patch % | Lines |
---|---|---|
api/graphql/schema.py | 9.09% | 10 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Codecov is right — the new to_external()
method deserves a test. There might be somewhere natural in the existing tests to exercise it, or might want a new test case. I'm happy to do that if you want?
If you were able to test it that would be great @jmarshall!
Tests added — you'll need to change the asserts (to the commented out ones) if you manage to change the return type to CohortCriteria
.
Fixes https://github.com/populationgenomics/metamist/issues/780
The issues were: 1- Project was not being passed to the filter, so the query would return everything (if you enter via project) 2- The template project was not being stored on the template model 3- Cohort criteria was being returned as the model, but needs to be in dict form to display on UI, so required a to_external method.