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

refact!: define a "scopeable model" base class + modelviewset scoping #536

Draft
wants to merge 42 commits into
base: develop
Choose a base branch
from

Conversation

davidlougheed
Copy link
Member

No description provided.

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 94.85714% with 27 lines in your changes missing coverage. Please review.

Project coverage is 92.73%. Comparing base (9f12712) to head (bfac5fb).

Files with missing lines Patch % Lines
chord_metadata_service/chord/ingest/views.py 82.05% 5 Missing and 2 partials ⚠️
chord_metadata_service/restapi/api_renderers.py 82.92% 5 Missing and 2 partials ⚠️
chord_metadata_service/authz/viewset.py 88.57% 2 Missing and 2 partials ⚠️
chord_metadata_service/chord/export/views.py 78.94% 2 Missing and 2 partials ⚠️
chord_metadata_service/authz/permissions.py 83.33% 1 Missing and 1 partial ⚠️
chord_metadata_service/chord/export/cbioportal.py 92.85% 0 Missing and 1 partial ⚠️
chord_metadata_service/experiments/models.py 90.00% 1 Missing ⚠️
chord_metadata_service/phenopackets/models.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #536      +/-   ##
===========================================
+ Coverage    92.04%   92.73%   +0.68%     
===========================================
  Files          115      117       +2     
  Lines         4237     4388     +151     
  Branches       376      383       +7     
===========================================
+ Hits          3900     4069     +169     
+ Misses         249      228      -21     
- Partials        88       91       +3     

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

…odel-base-class

# Conflicts:
#	chord_metadata_service/phenopackets/api_views.py
…odel-base-class

# Conflicts:
#	chord_metadata_service/chord/tests/test_api.py
#	chord_metadata_service/discovery/api_views.py
#	chord_metadata_service/discovery/utils.py
#	chord_metadata_service/experiments/api_views.py
#	chord_metadata_service/phenopackets/api_views.py
test: add more tests / fix test issues
@davidlougheed davidlougheed changed the title [WIP] refact: define a "scopeable model" base class + modelviewset scoping refact: define a "scopeable model" base class + modelviewset scoping Nov 27, 2024
@davidlougheed davidlougheed changed the title refact: define a "scopeable model" base class + modelviewset scoping refact!: define a "scopeable model" base class + modelviewset scoping Nov 27, 2024
@davidlougheed
Copy link
Member Author

@v-rocheleau this is still WIP, but I would like to know your thoughts on the general approach/abstractions chosen

@gsfk
Copy link
Member

gsfk commented Dec 20, 2024

is this not possible?

api/individuals?project=<id>

@davidlougheed
Copy link
Member Author

should be - i'll double check...

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