-
-
Notifications
You must be signed in to change notification settings - Fork 436
[rest] Allow skipping ignored things in inbox #4108
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
In general that sounds like a good idea, but wouldn't it make sense to have the default |
Maybe, but of the about 4 places in MainUI it was being used, only 1 usage needed the ignored ones. I'm not aware of any other places that utilize this API other than MainUI, but obviosly I cannot be sure. Are you aware of any? |
I'm not sure if 3rd party services (like HABApp) use these parts of the API. But in general we should avoid unnecessary breaking changes. |
Thanks for thinking about the HABApp users. |
Signed-off-by: Arne Seime <[email protected]>
Signed-off-by: Arne Seime <[email protected]>
Signed-off-by: Arne Seime <[email protected]>
7f3abd9
to
180e4a3
Compare
Signed-off-by: Arne Seime <[email protected]>
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.
Thanks!
Depends on openhab/openhab-core#4108. In most places, the inbox content is loaded only to show a count of items in inbox. For any decent size systems the inbox may contain hundreds of entries that are ignored, which equates to lots of unnecessary data being transferred and processed in the browser. --------- Signed-off-by: Arne Seime <[email protected]>
This PR adds a default filter to skip ignored inbox items.
Most of the calls from MainUI uses inbox data only to show the number of non-ignored inbox items. On any decent sized installation, the inbox contains hundreds of ignored items that currently is being transferred.
Only when an optional request parameter is passed, the ignored entires are returned.
This PR will be followed by a companion PR in the MainUI repo shortly.