iaso
iaso copied to clipboard
POLIO-1797 paginate dashboard endpoints
endpoints consumed for ETL are not always paginated by default
Related JIRA tickets : POLIO-1797
Self proofreading checklist
- [x] Did I use eslint and black formatters
- [ ] Is my code clear enough and well documented
- [ ] Are my typescript files well typed
- [ ] New translations have been added or updated if new strings have been introduced in the frontend
- [ ] My migrations file are included
- [x] Are there enough tests
- [ ] Documentation has been included (for new feature)
Doc
NA
Changes
- group
/polio/dashboards/endpoints in same folder - Make all viewsets inherit
EtlModelViewset - add test on default pagination query params
How to test
With Django API, test endpoints: pagination (limit=20&page=1) should be added to the API if not passed as queryparams directly
Print screen / video
NA
Notes
commit:
fix: paginate dashboard endpoints
refs: POLIO-1797