Skip to content

feat(admin-api): implement paginated datasets endpoints#750

Merged
LNSD merged 2 commits intomainfrom
lnsd/feat-metadata-db-datasets-pagination
Sep 30, 2025
Merged

feat(admin-api): implement paginated datasets endpoints#750
LNSD merged 2 commits intomainfrom
lnsd/feat-metadata-db-datasets-pagination

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Sep 16, 2025

Add comprehensive dataset registry API endpoints with cursor-based pagination to enable efficient browsing and management of registered datasets through the admin interface.

  • Add GET /datasets endpoint with cursor-based pagination support
  • Add GET /datasets/{name}/versions endpoint for version listing

@LNSD LNSD requested review from fubhy and leoyvens September 16, 2025 19:01
@LNSD LNSD self-assigned this Sep 16, 2025
@LNSD LNSD added the admin-api label Sep 16, 2025
@LNSD LNSD mentioned this pull request Sep 16, 2025
13 tasks
@LNSD LNSD changed the title feat(admin-api): implement paginated datasets registry endpoints feat(admin-api): implement paginated datasets endpoints Sep 16, 2025
@LNSD LNSD force-pushed the lnsd/feat-metadata-db-datasets-pagination branch from dd2e894 to 1f4bac6 Compare September 17, 2025 13:34
@LNSD
Copy link
Contributor Author

LNSD commented Sep 17, 2025

Putting this PR in draft mode as the dataset-store logic is so broken that it is impossible to patch to make the tests pass. I am fixing and refactoring the dataset-store first.

@LNSD LNSD marked this pull request as draft September 17, 2025 14:28
@LNSD LNSD force-pushed the lnsd/feat-metadata-db-datasets-pagination branch from 98c15ce to 5c12d41 Compare September 30, 2025 15:36
@LNSD
Copy link
Contributor Author

LNSD commented Sep 30, 2025

Updated the PR. It depends on #796

@LNSD LNSD force-pushed the lnsd/feat-metadata-db-datasets-pagination branch 2 times, most recently from 606178c to 9cf5817 Compare September 30, 2025 16:16
Add comprehensive dataset registry API endpoints with cursor-based pagination to enable efficient browsing and management of registered datasets through the admin interface.

- Add `GET /datasets` endpoint with cursor-based pagination support
- Add `GET /datasets/{name}/versions` endpoint for version listing
- Implement metadata-db datasets' `pagination.rs` module with `list_first_page()` and `list_next_page()` functions
- Add comprehensive integration tests with semver ordering validation

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the lnsd/feat-metadata-db-datasets-pagination branch from 9cf5817 to 9a7339d Compare September 30, 2025 16:22
@LNSD LNSD marked this pull request as ready for review September 30, 2025 16:26
@LNSD LNSD merged commit 92e82c3 into main Sep 30, 2025
7 checks passed
@LNSD LNSD deleted the lnsd/feat-metadata-db-datasets-pagination branch September 30, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants