Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9] backport #12685 (Add de-duplicating resources when sorting/totalCount is requested) #13451

Merged
merged 5 commits into from
Jun 14, 2022

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Jun 13, 2022

backport of #12685 to branch/v9

… needed (#12685)

Fixes total count errors for the web UI:
- Adds de-duplicating matches for `FakePaginate` func.
- This change does makes `FakePaginate` less efficient b/c
  it will always run filter for every resource per fetch versus just
  running it on the initial fetch to get the total count.
- Removes inaccurate de-dupping in the web api layer since we
  do it from the back now
- Adds another criteria when de-duplicating `applications` by checking
  for its `public_addr` as well as its name.
@kimlisa kimlisa enabled auto-merge (squash) June 13, 2022 23:18
@kimlisa kimlisa merged commit 6f33a6a into branch/v9 Jun 14, 2022
@kimlisa kimlisa deleted the lisa/backport/fix-total-count-deduplicate branch June 14, 2022 15:58
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.

4 participants