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 27 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.49275% with 19 lines in your changes missing coverage. Please review.

Project coverage is 91.19%. Comparing base (a82069d) to head (e04f552).

Files with missing lines Patch % Lines
chord_metadata_service/restapi/api_renderers.py 84.09% 5 Missing and 2 partials ⚠️
chord_metadata_service/authz/viewset.py 87.87% 2 Missing and 2 partials ⚠️
chord_metadata_service/patients/api_views.py 82.60% 2 Missing and 2 partials ⚠️
chord_metadata_service/authz/permissions.py 83.33% 1 Missing and 1 partial ⚠️
...hord_metadata_service/discovery/scopeable_model.py 96.29% 1 Missing ⚠️
chord_metadata_service/phenopackets/models.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #536      +/-   ##
===========================================
+ Coverage    90.92%   91.19%   +0.26%     
===========================================
  Files          127      129       +2     
  Lines         4895     4995     +100     
  Branches       447      452       +5     
===========================================
+ Hits          4451     4555     +104     
+ Misses         299      292       -7     
- Partials       145      148       +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

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.

1 participant