Skip to content

Add filters and challenge counts to the challenge listing and managed projects endpoints - #1303

Merged
CollinBeczak merged 4 commits into
mainfrom
manage-challenges-pagination
Oct 30, 2026
Merged

CollinBeczak merged 4 commits into
mainfrom
manage-challenges-pagination

Conversation

@CollinBeczak

@CollinBeczak CollinBeczak commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds what the v4 Manage Challenges and Manage Projects pages need to page and filter on the server. All changes are additive, so existing clients are unaffected.

GET /challenges/listing

  • New optional filters: searchString, onlyOwned, onlyArchived, challengeIds.
  • Results are ordered by name (ties broken by id), and each one includes parentName.
  • page still works as before (it's used as a row offset).

GET /projects/managed

  • New optional filters: isArchived, projectIds.
  • Ties in the sort are broken by id, so paging is stable.
  • Each project includes challengeCounts: { total, completed }, so the frontend no longer has to download every challenge to show counts.

Frontend PR: maproulette3 manage-challenges-pagination (merge this one first).

@sonarqubecloud

Copy link
Copy Markdown

@CollinBeczak CollinBeczak changed the title Manage challenges pagination Add filters and challenge counts to the challenge listing and managed projects endpoints Oct 30, 2026
@CollinBeczak
CollinBeczak marked this pull request as ready for review October 30, 2026 20:05
@CollinBeczak
CollinBeczak merged commit c8bfd74 into main Oct 30, 2026
5 checks passed
@CollinBeczak
CollinBeczak deleted the manage-challenges-pagination branch October 30, 2026 21:26
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