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
#1446 Indexes rules of switch and change nodes for search #1559
Conversation
HI, thanks for this. As written, this will work for the Change/Switch nodes which have an array of objects, but I wonder if we need a more generic solution that will work for any property type or structure. I'm happy to merge this PR as-is and we can add it to later, or would you like to tackle the more generic solution? |
Hi @knolleary a generic solution does make more sense. As node-red supports custom nodes; I was wondering if we've visibility on the way custom-nodes store their properties? Do we see users creating nodes with properties other than these formats? |
@knolleary any update on this? |
Hi @gokulchandra, No, we don't know what format a node stores its properties as. That is why we need a generic solution that fixes it once and for all, rather than solve one particular case and then have to fix it again when a node appears doing something else. |
Hi - we've just about run out of time to get this into 0.18. I'm putting it straight on the list for the next release. |
@knolleary I have updated the indexing mechanism to a more generic approach. Let me know if there is something you'd like me to refactor. |
Hi @knolleary, I was wondering if you could provide some feedback on this PR. Thanks. |
Hi - my apologies for the long delay here. I've been busy with other things. We're trying to get 0.19 done in the next week, so I've pushed an alternative fix for this that does a complete index of node properties regardless of their structure. Thank you for offering a fix for this; I hope you'll continue to contribute. |
Before you hit that Submit button....
Please read our contribution guidelines
before submitting a pull-request.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply
If you want to raise a pull-request with a new feature, or a refactoring
of existing code, it may well get rejected if it hasn't been discussed on
the mailing list or
slack team first.
Proposed changes
Checklist
Put an x in the boxes that apply