Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: admin UI graphql paging fix - #47808

Merged
vovakulikov merged 2 commits into
mainfrom
cw/admin-ui-fixes
Feb 17, 2023
Merged

insights: admin UI graphql paging fix #47808
vovakulikov merged 2 commits into
mainfrom
cw/admin-ui-fixes

Conversation

@chwarwick

Copy link
Copy Markdown
Contributor

The underlying paging controls made the assumption that any sort field is both non-null and unique. This caused problems because we were allowing sorting by fields that can be null (queue position) and state which is not unique.

This change simplifies the paging cursor so that it will only contain the backfill id then builds the where clause using that instead of the relying on the underlying paging controller.

There does still remain the possibility that if a series were shared between multiple insights and thus shared the same backfill and that backfill fell at the border of a page, that paging could skip the additional instances of that backfill. I consider this low ok for now because at least one instance of the backfill will always appear and any action on that will apply to all items.

Test plan

Verify paging works for each sort option
verify search worked case insensitve

@vovakulikov
vovakulikov merged commit 97e34f8 into main Feb 17, 2023
@vovakulikov
vovakulikov deleted the cw/admin-ui-fixes branch February 17, 2023 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants