Skip to content

REST: Add pagination support for list_tables#3348

Open
ebyhr wants to merge 1 commit into
apache:mainfrom
ebyhr:ebi/rest-page-tables
Open

REST: Add pagination support for list_tables#3348
ebyhr wants to merge 1 commit into
apache:mainfrom
ebyhr:ebi/rest-page-tables

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented May 9, 2026

Rationale for this change

Follows REST catalog spec:

Are these changes tested?

Yes, includes unit tests for paginated cases.

Are there any user-facing changes?

  • Before: returned incomplete table list when server paginated (only first page)
  • After: returns complete table list (fetches all pages)

@ebyhr ebyhr marked this pull request as draft May 11, 2026 04:20
@ebyhr ebyhr force-pushed the ebi/rest-page-tables branch 2 times, most recently from 78f1a49 to 0836699 Compare May 11, 2026 22:37
@ebyhr ebyhr force-pushed the ebi/rest-page-tables branch from 0836699 to dc44cfc Compare May 15, 2026 21:58
@ebyhr ebyhr marked this pull request as ready for review May 15, 2026 21:59
@ebyhr
Copy link
Copy Markdown
Member Author

ebyhr commented May 15, 2026

@Fokko @geruh @rambleraptor Could you review this PR when you have time? It's similar to list_views PR #3349

Copy link
Copy Markdown
Contributor

@rambleraptor rambleraptor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks just like View. Thanks for doing this!

def test_list_tables_paginated_200(rest_mock: Mocker) -> None:
namespace = "examples"
# First page with next-page-token
rest_mock.get(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: consider some kind of helper function that attaches a new page to the rest_mock

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.

2 participants