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 flag hasUsers=false nodes as unused in search #3787

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

knolleary
Copy link
Member

Fixes #3777

Sometimes it is valid to have a config node that is "unused" - such as the ui_base node from Dashboard.

Such nodes can set a property called hasUsers to false in their definition. This stops the Configuration Nodes sidebar from showing them as unused, and for the unused-nodes check to flag them after a deploy.

This fix updates the search filter is:unused to take the flag in to account.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 68.225% when pulling 8d3c5d0 on fix-search-unused into 1b94cc3 on master.

@knolleary knolleary merged commit 676c5e5 into master Jul 21, 2022
@knolleary knolleary deleted the fix-search-unused branch July 21, 2022 10:37
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.

Performing Find "is:config is:unused" returns used items
2 participants