-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[persistence] Handle null
value for relative
& inverted
props of filters
#3727
Conversation
…f filters Signed-off-by: Florian Hotze <[email protected]>
@J-N-K This is what you proposed in #3681 (comment), right? I've tried this, but I get a NPE:
Any idea? |
I just tried the exact same (except |
I have tried exactly the code as in this PR, and it did not work. So this is ready for review now. |
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.
LGTM, thanks
openhab/openhab-core#3727 made core accept null as values for `relative` and `inverted` fields of persistence filters and set defaults for those. Therefore, UI does not need to ensure they are set anymore. Signed-off-by: Florian Hotze <[email protected]>
) openhab/openhab-core#3727 made core handle `null` as values for `relative` and `inverted` fields of persistence filters and set defaults for those. Therefore, UI does not need to ensure they are set anymore. Signed-off-by: Florian Hotze <[email protected]>
This allows the UI to remove some specific checks that are performed on every save, and simplifies usage of the API for external applications.