• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 25811572309

13 May 2026 04:14PM UTC coverage: 81.923% (+0.02%) from 81.906%
25811572309

push

github

web-flow
feat(userreports): allow configurable page size for userreport API DEV-2112 (#7049)

### đŸ“Ŗ Summary
Set the max page size for `/api/v2/user-reports` in Constance.

### Notes
We don't want to make a habit of overriding the max page size, so right
now the class factory only looks at a new USER_REPORTS_PAGE_SIZE_LIMIT
configuration. If eventually we want to do this on more pages we can
genericize the method.


### 👀 Preview steps

1. â„šī¸ have several accounts (at least 10)
2. In a Django shell, run `refresh_user_report_snapshots`
3. In Constance, set `USER_REPORTS_PAGE_SIZE_LIMIT` to 5
4. Navigate to `/api/v2/user-reports`
5. đŸŸĸ [on PR] notice that only 5 results are returned
6. Navigate to `/api/v2/user-reports?limit=2`
7. đŸŸĸ [on PR] notice that only 2 results are returned
8. Navigate to `/api/v2/user-reports?limit=10`
9. đŸŸĸ notice only 5 results are returned

7801 of 12051 branches covered (64.73%)

10 of 19 new or added lines in 2 files covered. (52.63%)

6017 existing lines in 215 files now uncovered.

29638 of 36178 relevant lines covered (81.92%)

5.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.66
/kpi/utils/query_parser/query_parser.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc