-
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
OurDNA: Improve project table view and filtering #742
Conversation
…dna/update-table-view-and-filtering
…dna/update-table-view-and-filtering
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #742 +/- ##
==========================================
+ Coverage 79.15% 79.79% +0.63%
==========================================
Files 161 168 +7
Lines 13622 14127 +505
==========================================
+ Hits 10782 11272 +490
- Misses 2840 2855 +15 ☔ View full report in Codecov by Sentry. |
…dna/update-table-view-and-filtering
…dna/update-table-view-and-filtering-with-fastapi-upgrade
…dna/update-table-view-and-filtering-with-fastapi-upgrade
…dna/update-table-view-and-filtering-with-fastapi-upgrade
…dna/update-table-view-and-filtering
api/routes/web.py
Outdated
@@ -79,14 +340,14 @@ async def search_by_keyword(keyword: str, connection=get_projectless_db_connecti | |||
This searches the keyword, in families, participants + samples in the projects | |||
that you are a part of (automatically). | |||
""" | |||
# raise ValueError("Test") | |||
# raise ValueError('Test') |
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.
# raise ValueError('Test') |
models/models/web.py
Outdated
@@ -17,7 +18,7 @@ class WebProject(SMBase): | |||
class PagingLinks(SMBase): |
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.
Can delete this now
}) => { | ||
// Use the combination of category and filterKey to turn that into the correct value | ||
// Note filterValues is a ParticipantGridFilter object, which has nested keys for each | ||
// category (except participant). |
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.
// category (except participant). | |
// category. |
// set name to the filterKey without the .meta prefix | ||
const name = props.filterKey.replace(/^meta\./, '') | ||
|
||
// if we are filtering on the participant level, check the filterValues directly |
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.
// if we are filtering on the participant level, check the filterValues directly |
…dna/update-table-view-and-filtering
…iew-query-refactoring Improved table filtering
…dna/update-table-view-and-filtering
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.
Frontend is looking good! all comments are pretty small
…dna/update-table-view-and-filtering
* tmp * Linting --------- Co-authored-by: Dan Coates <[email protected]> Co-authored-by: Michael Franklin <[email protected]>
@@ -333,6 +334,7 @@ async def import_pedigree( | |||
[ | |||
ParticipantUpsertInternal( | |||
id=external_participant_ids_map[row.individual_id], | |||
external_ids={PRIMARY_EXTERNAL_ORG: row.individual_id}, |
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.
Huzzah! 😄
…dna/update-table-view-and-filtering
Co-authored-by: John Marshall <[email protected]>
OurDNA RFC: https://docs.google.com/document/d/1bG8oZQdhA3lEeqlvnCZ1n_P1OqaqDBPlMPB7oz275ns/edit#heading=h.sxmryphgwrnn
Aims:
Consider:
Actual changes:
[large changes]:
[unrelated changes]