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

Feature/show matching study in the list of dars #579

Merged
merged 6 commits into from
May 21, 2024

Conversation

wkirdp
Copy link
Collaborator

@wkirdp wkirdp commented May 20, 2024

  • Add a dbGaPDataAccessRequest method to get matching studies
  • Show matching studies in the DAR snapshot table

@wkirdp wkirdp requested a review from amstilp May 20, 2024 22:00
Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.73%. Comparing base (0ae7253) to head (9528d10).
Report is 46 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #579      +/-   ##
==========================================
+ Coverage   98.71%   98.73%   +0.01%     
==========================================
  Files         300      300              
  Lines       23815    23850      +35     
==========================================
+ Hits        23510    23549      +39     
+ Misses        305      301       -4     

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

amstilp added 2 commits May 21, 2024 10:20
This factory was previously not subclassed from the
dbGaPDataAccessRequestFactory, so it tried to use a duplicate
dbgap_dar_id, which caused integrity errors. Update the factory to
subclass the main factory, which allows them to share the same
Sequence counter for dbgap_dar_id.
Copy link
Contributor

@amstilp amstilp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I added a couple comments to fix.

primed/dbgap/models.py Outdated Show resolved Hide resolved
primed/dbgap/tables.py Outdated Show resolved Hide resolved
amstilp and others added 2 commits May 21, 2024 11:31
The test_get_dbgap_application_pk_does_not_exist (and the equivalent
post version) test is failing in CI, but I can't get it to fail
locally.
… of study objects, not the short names

Add linkify to matching studies
@amstilp amstilp merged commit 4231aa3 into main May 21, 2024
10 checks passed
@amstilp amstilp deleted the feature/show-matching-study-in-the-list-of-dars branch May 21, 2024 21:59
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