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

[stable-4.4] CollectionContentList - fix by type counts being 0 when All not chosen (#1577) #1591

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Feb 2, 2022

Manual backport of #1577, const vs let difference.
Fixes AAH-1334


go to Collection detail, tab Contents

the "Showing: All(23) Role(9) Module(3) Action(1) Filter(8) Test(2)" line only shows correct counts when All is selected,
otherwise only the current type is counted, leaving other types at 0,
because filtering is done by both keyword and type, before counting and showing the list

this changes the code to first filter by keyword, then count, then filter by type, then show

No-Issue

(cherry picked from commit 7e48ccf)

ansible#1577)

go to Collection detail, tab Contents

the "Showing: All(23) Role(9) Module(3) Action(1) Filter(8) Test(2)" line only shows correct counts when All is selected,
otherwise only the current type is counted, leaving other types at 0,
because filtering is done by both keyword and type, before counting and showing the list

this changes the code to first filter by keyword, then count, then filter by type, then show

No-Issue

(cherry picked from commit 7e48ccf)

Fixes AAH-1334
@himdel himdel merged commit 43e281c into ansible:stable-4.4 Feb 2, 2022
@himdel himdel deleted the 4.4-1577 branch February 2, 2022 20:56
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.

None yet

1 participant