Skip to content

feat(sites): add sort and order to the sites list api - #259

Merged
vigneshrajsb merged 2 commits into
mainfrom
feat/sites-list-sort
Oct 12, 2026
Merged

vigneshrajsb merged 2 commits into
mainfrom
feat/sites-list-sort

Conversation

@vigneshrajsb

@vigneshrajsb vigneshrajsb commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds sorting to the Sites list API so the Sites view can sort by last updated, created date, or name.

  • GET /api/v2/sites accepts optional sort (updated, created, name) and order (asc, desc).
  • Default order is unchanged. Deleted sites keep deletion order.

Validation

  • Full test suite passes, including new sort cases and the OpenAPI contract test.
  • Lint passes.

@vigneshrajsb
vigneshrajsb marked this pull request as ready for review October 12, 2026 21:32
@vigneshrajsb
vigneshrajsb requested a review from a team as a code owner October 12, 2026 21:32
GET /api/v2/sites accepts optional sort (updated, created, name) and
order (asc, desc). Name order is case-insensitive. The default order
does not change, and deleted sites keep deletion order.
@vigneshrajsb
vigneshrajsb merged commit 9125c49 into main Oct 12, 2026
5 checks passed
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