-
Notifications
You must be signed in to change notification settings - Fork 8
add tag exclusion to relative filter generation #42
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
Conversation
|
LGTM 🎉 |
gretadj2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small annotation, but LGTM!
src/filter/util.ts
Outdated
| 'hisCollectCOV', | ||
| 'hisCollectNA', | ||
| 'hisTotalized', | ||
| 'haystackPoint', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is not meant to be comprehensive, but since you have already added bacnetPoint and haystackPoint, why not adding modbusPoint too? We could probably cover 90% of the cases with these 3 connectors ;)
|
As already discussed with Riccardo, we need to pass in an optional namespace that can be used to look up all connPoint tags so they can be excluded. |
|
@garethj2 I updated the implementation to reflect the changes we discussed about. Please let me know if you think this requires additional changes. |
|
LGTM |
This PR adds the possibility to provide a list of tags that will be excluded from the relative filter generation.
This can be useful when certain marker tags need to be avoided as they are not really part of what makes the relative filter relevant and would only restrict the filter usefulness.