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

do not attempt to filter by namespace for any unnamespaced resource #6606

Conversation

mantis-toboggan-md
Copy link
Member

@mantis-toboggan-md mantis-toboggan-md commented Aug 4, 2022

fixes #6596
If this is not true, resource table filters its rows wrt the namespace filter (and calculates active namespaces to do so):
if ( (!this.isNamespaced || isAll) && !isVirtualProduct)

The logic here is a little off. We don't want to attempt to filter by ns if the resource is not namespaced, regardless of whether it's a harvester resource or not. "Why does this cause an infinite loop in the project/namespace list specifically?" You may ask. Good question. I think this is because the project/namespace list component also retrieves namespaces via getter and these two calls are causing each other to re-calculate. Regardless, that if block is wrong and fixing it fixes the bug.

@mantis-toboggan-md mantis-toboggan-md added this to the v2.6.7 milestone Aug 4, 2022
@mantis-toboggan-md mantis-toboggan-md changed the title do not attempt to filter-by-namespace for unnamespaced harvester reso… do not attempt to filter-by-namespace for any unnamespaced resource Aug 4, 2022
@mantis-toboggan-md mantis-toboggan-md changed the title do not attempt to filter-by-namespace for any unnamespaced resource do not attempt to filter by namespace for any unnamespaced resource Aug 4, 2022
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once tests pass

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.

[Bug] Access Harvester project/namespace page hangs
1 participant