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

Implement FilterBackend to filter committee data #1254

Open
exalate-issue-sync bot opened this issue Dec 11, 2024 · 0 comments
Open

Implement FilterBackend to filter committee data #1254

exalate-issue-sync bot opened this issue Dec 11, 2024 · 0 comments

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Dec 11, 2024

Create a drf filter backend (https://www.django-rest-framework.org/api-guide/filtering/#:~:text=request%20or%20user.-,Example,-For%20example%2C%20you ) that behaves like get_queryset in CommitteeOwnedViewMixin. Either change CommitteeOwnedViewMixin to use the filter backend or add filter backend to DjangoFilterBackend and remove the mixin if it serves no other purpose

QA Notes

Unit tests to be provided

DEV Notes

Note: if we go with the latter option (add filter backend to [DjangoFilterBackend|https://www.django-rest-framework.org/api-guide/filtering/#djangofilterbackend] and remove the mixin), we will need to set filter_backends to None/empty as follows on all relevant view sets:

{{filter_backends =}} None or () ?

Design

null

See full ticket and images here: FECFILE-1890

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

No branches or pull requests

0 participants