Skip to content
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

[openhabcloud] Support hiding notifications and tags #16979

Merged
merged 8 commits into from
Jul 4, 2024

Conversation

digitaldan
Copy link
Contributor

See #16934

See openhab#16934

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan digitaldan requested a review from kaikreuzer as a code owner July 2, 2024 04:43
@digitaldan digitaldan marked this pull request as draft July 2, 2024 04:43
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan digitaldan changed the title [openhabcloud] Support hiding notifications [openhabcloud] Support hiding notifications and tags Jul 2, 2024
@digitaldan
Copy link
Contributor Author

This adds notification support as well as renames severity to tag as thats actually what severity is being used for ( was super confusing with the name) . This maintains backwards compatibly so actions and old rules will continue to work that reference severity.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan digitaldan marked this pull request as ready for review July 2, 2024 19:28
@digitaldan digitaldan requested a review from florian-h05 July 2, 2024 19:28
@digitaldan
Copy link
Contributor Author

Ok, ready for review

Copy link
Contributor

@florian-h05 florian-h05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, pleas have a look at my comments.

Copy link
Contributor

@jimtng jimtng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formally -> formerly

florian-h05 added a commit to florian-h05/openhab-addons that referenced this pull request Jul 3, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05
Copy link
Contributor

florian-h05 commented Jul 3, 2024

I have just published openhab-js 5.3.1 for this, and provided an add-on PR: #16985

@lsiepel
Copy link
Contributor

lsiepel commented Jul 3, 2024

I guess this should be classified as enhancement and needs to wait before 4.3 is release?

@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Jul 3, 2024
@florian-h05
Copy link
Contributor

florian-h05 commented Jul 3, 2024

I would like to get this into 4.2 - I’d consider this PR a similar situation to merging new bindings.
It extends was was added in #16938.
Even if this PR introduces a regression to that, users won’t notice it as there is currently no client-side support for the new features.

If this is not merged for 4.2.0, we either need another extension which gives us more and more method overrides for the actions, or we need to do a breaking change in 4.3.0.

@jimtng
Copy link
Contributor

jimtng commented Jul 3, 2024

+1 for including it into 4.2. The enhanced notification had already made it in between M3 and M4. If we didin't include this PR, we'd have a method in 4.1 with 4 arguments, 4.2 with enhanced but without reference id, and 4.3 with reference id, increasing the number of different versions of the API across OH versions that we'd have to support in the helper library.

So we should consider this a part of the "enhanced notification feature" that had already made the cut into M4.

@jimtng
Copy link
Contributor

jimtng commented Jul 3, 2024

or we need to do a breaking change in 4.3.0

Oh yes, indeed if this was postponed into 4.3.0 it would be a breaking change :(

@jimtng
Copy link
Contributor

jimtng commented Jul 3, 2024

PS, I'll update the jruby examples in the README after this PR had been merged and the JRuby changes to support it also merged (which depends on this PR).

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan
Copy link
Contributor Author

Thanks for the feedback! Changes pushed. I agree we should get this into 4.2, its important we try and get these method signatures right in one shot, otherwise we are going to prematurely introduce more complexity into the binding that is not needed yet.

@digitaldan
Copy link
Contributor Author

@lsiepel This is ready to review when you are :-)

@lsiepel
Copy link
Contributor

lsiepel commented Jul 3, 2024

@lsiepel This is ready to review when you are :-)

Able to review Thursday evening, not sooner. If another maintainer is available, please proceed.

@digitaldan
Copy link
Contributor Author

No worries @lsiepel ! Maybe @jlaur can take a look until then? Trying to make sure we make it in time for the 4.2 release 🙏

@florian-h05
Copy link
Contributor

@digitaldan Some of my review comments are still open, can you please take a look?

@digitaldan
Copy link
Contributor Author

Ah, sorry i missed those, github was hiding them!

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan
Copy link
Contributor Author

Thanks @florian-h05 , hopefully i got them all this time.

Copy link
Contributor

@florian-h05 florian-h05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now, thanks!

Just one minor comment:

bundles/org.openhab.io.openhabcloud/README.md Outdated Show resolved Hide resolved
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan
Copy link
Contributor Author

Done! Thanks!

florian-h05 added a commit to florian-h05/openhab-addons that referenced this pull request Jul 4, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@kaikreuzer kaikreuzer requested a review from jimtng July 4, 2024 08:50
florian-h05 added a commit to florian-h05/openhab-addons that referenced this pull request Jul 4, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for these improvements!

@jlaur jlaur merged commit 2d7c9a2 into openhab:main Jul 4, 2024
5 checks passed
@jlaur jlaur added this to the 4.2 milestone Jul 4, 2024
jlaur pushed a commit that referenced this pull request Jul 4, 2024
Depends on #16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@digitaldan
Copy link
Contributor Author

Thanks 🙌

psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jul 12, 2024
* Support hiding notifications
See openhab#16934

* Adds support for using tag over severity on extended actions

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jul 12, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
* Support hiding notifications
See openhab#16934

* Adds support for using tag over severity on extended actions

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
* Support hiding notifications
See openhab#16934

* Adds support for using tag over severity on extended actions

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
* Support hiding notifications
See openhab#16934

* Adds support for using tag over severity on extended actions

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
Depends on openhab#16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants