KEMBAR78
Do not flag hasUsers=false nodes as unused in search by knolleary · Pull Request #3787 · node-red/node-red · GitHub
Skip to content

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