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

Namespace detail: use is_highest consistently #3902

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jun 29, 2023

namespace detail shows the number of collections .. until we call updateParams when adding a filter or doing pagination, then it switches to showing the numnber of collection versions.

Merge the 3 list queries into one function that's called twice .. once with real filters to set collections and filteredCount, and once with page: 1, page_size: 1 to get the total unfilteredCount of all collections (which we then compare with 0).

Issue: AAH-2443

namespace detail shows the number of collections .. until we call `updateParams` when adding a filter or doing pagination,
then it switches to showing the numnber of collection versions.

Merge the 3 list queries into one function that's called twice .. once with real filters to set `collections` and `filteredCount`,
and once with `page: 1, page_size: 1` to get the total `unfilteredCount` of all collections (which we then compare with 0).

Issue: AAH-2443
@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels Jun 29, 2023
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label Jun 29, 2023
@himdel himdel merged commit 77ab3df into ansible:master Jul 3, 2023
@himdel himdel deleted the aah2443 branch July 3, 2023 04:12
@patchback
Copy link

patchback bot commented Jul 3, 2023

Backport to stable-4.7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.7/77ab3dfd50520715cb36b9e17e02f6dc2215874a/pr-3902

Backported as #3949

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 3, 2023
namespace detail shows the number of collections .. until we call `updateParams` when adding a filter or doing pagination,
then it switches to showing the numnber of collection versions.

Merge the 3 list queries into one function that's called twice .. once with real filters to set `collections` and `filteredCount`,
and once with `page: 1, page_size: 1` to get the total `unfilteredCount` of all collections (which we then compare with 0).

Issue: AAH-2443
(cherry picked from commit 77ab3df)
himdel added a commit that referenced this pull request Jul 3, 2023
namespace detail shows the number of collections .. until we call `updateParams` when adding a filter or doing pagination,
then it switches to showing the numnber of collection versions.

Merge the 3 list queries into one function that's called twice .. once with real filters to set `collections` and `filteredCount`,
and once with `page: 1, page_size: 1` to get the total `unfilteredCount` of all collections (which we then compare with 0).

Issue: AAH-2443
(cherry picked from commit 77ab3df)

Co-authored-by: Martin Hradil <mhradil@redhat.com>
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.7 This PR should be backported to stable-4.7 (2.4) backported-4.7 This PR has been backported to stable-4.7 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant