Skip to content
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

Fix rendering association frequencies; use proper field for sorting them #911

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ptgolden
Copy link
Member

@ptgolden ptgolden commented Nov 22, 2024

Related issues

Summary

  • Fixes rendering of frequency values in Disease-Phenotype association tables
  • Makes API calls to sort by computed frequency rather than just frequency_qualifier

Checks

  • All tests have passed (or issues created for failing tests)

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for monarch-app ready!

Name Link
🔨 Latest commit f337a97
🔍 Latest deploy log https://app.netlify.com/sites/monarch-app/deploys/674738c870b67d0008184650
😎 Deploy Preview https://deploy-preview-911--monarch-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ptgolden
Copy link
Member Author

This will have one failing test when running TypeScript checks, since frequency_computed_sortable_float is not part of the Association LinkML model-- not sure whether to add it or to use a different model.

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.14%. Comparing base (af5ab7b) to head (f337a97).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #911   +/-   ##
=======================================
  Coverage   71.14%   71.14%           
=======================================
  Files          91       91           
  Lines        3136     3136           
=======================================
  Hits         2231     2231           
  Misses        905      905           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This was done to placate TypeScript. Since
frequency_computed_sortable_float is not a type of Association, adding
it as a key in the generic AssociationTable columns required changing a
ton of code. It also doesn't make sense as a key, since that value is
not returned in the record of an entity-- it's only an implicit sort key
used by Solr.
@ptgolden ptgolden merged commit 84dab5f into main Nov 27, 2024
11 checks passed
@ptgolden ptgolden deleted the issue-910-association-frequency-sorting branch November 27, 2024 16:35
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.

Sorting by frequency in disease to phenotype table not working correctly
2 participants