Issues pagination has incorrect number of pages #1350
Labels
bug
A bug or regression
good first issue
Great place to start for new contributors
SQL
Requires SQL code changes
Projects
When we paginate the issues list, we compute the number of pages (and whether we should paginate) based on the total issue count: https://github.com/PrairieLearn/PrairieLearn/blob/master/pages/instructorIssues/instructorIssues.js#L113
We should instead apply the filters when doing this, to obtain a count of the total number of issues with the current filter applied, and use this for pagination.
The change will require using
issues_select_with_filter
inBLOCK issues_count
, in the same way as we do inBLOCK select_issues
.The text was updated successfully, but these errors were encountered: