Repository navigation
fix(catalog): a filtered listing keeps reading until its page is full, also for generic tables - #2304
Conversation
|
No actionable comments were generated in the recent review. WalkthroughGeneric-table listing now returns paginated mappings. The server fetches and authorizes catalog pages until it fills a response or reaches the end of the data. Shared and endpoint tests cover hidden entities, page ordering, and continuation-token behavior. ChangesGeneric-table pagination
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant GenericTableListHandler
participant fetch_until_full_page
participant CatalogStore
participant authorize_page
GenericTableListHandler->>fetch_until_full_page: fetch and authorize generic-table pages
loop Each fetched page
fetch_until_full_page->>CatalogStore: list_generic_tables with page token
CatalogStore-->>fetch_until_full_page: paginated mapping of entries and tokens
fetch_until_full_page->>authorize_page: authorize page entries
authorize_page-->>fetch_until_full_page: authorization results
end
fetch_until_full_page-->>GenericTableListHandler: approved entries and next-page token
Merge Risk:
|
…, also for generic tables A listing of tables, views, namespaces or soft-deleted tabulars could stop early, without a next-page token, when more of the first read was hidden than one further read returns. It now ends only when the database has no more rows. Generic-table listings use the same path: full pages, and a next-page token that belongs to the last returned entry.
f4abcc8 to
8722b4f
Compare
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
…, also for generic tables (#2304)
When a user may not see some entries, a listing keeps reading until the page is full.
pageTokenstarts at the first page (it returned 400).The shared pagination tests gain a case that hides more rows than one further read returns. It failed for every listing before this change. The tests now also run for generic tables.
Downstream follow-up
CatalogStore::list_generic_tables_implandCatalogGenericTableOps::list_generic_tablesreturnPaginatedMapping<GenericTableId, GenericTableListEntry>, with one page token per row. Plus does not call or implement them; no action needed.Summary by CodeRabbit