Skip to content

Various add-on related fixes - #4365

Merged
florian-h05 merged 2 commits into
openhab:mainfrom
Nadahar:addon-fixes
Jul 28, 2026
Merged

Various add-on related fixes#4365
florian-h05 merged 2 commits into
openhab:mainfrom
Nadahar:addon-fixes

Conversation

@Nadahar

@Nadahar Nadahar commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

There are some small tweaks I've made while testing against openhab/openhab-core#5720. If merged, it can lead to minor changes like that e.g. countries aren't in the JSON if none are specified. MainUI isn't ready for that, so a few tweaks are needed.

But, these changes don't rely on openhab/openhab-core#5720, they should work equally well without that being merged, so there's no reason for this PR to wait for openhab/openhab-core#5720. The other way is true though, this should be merged if openhab/openhab-core#5720 is.

@relativeci

relativeci Bot commented Jul 16, 2026

Copy link
Copy Markdown

#6114 Bundle Size — 13.9MiB (~+0.01%).

29a0576(current) vs a4d5bf8 main#6113(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change Regression 1 regression
                 Current
#6114
     Baseline
#6113
Regression  Initial JS 1.47MiB(+0.02%) 1.47MiB
No change  Initial CSS 0B 0B
No change  Cache Invalidation 0% 0%
No change  Chunks 845 845
No change  Assets 985 985
No change  Modules 2743 2743
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 122 122
No change  Duplicate Packages 1 1
Bundle size by type  Change 1 change Regression 1 regression
                 Current
#6114
     Baseline
#6113
Regression  JS 11.59MiB (~+0.01%) 11.59MiB
No change  CSS 907.43KiB 907.43KiB
No change  IMG 638.41KiB 638.41KiB
No change  Fonts 526.1KiB 526.1KiB
No change  Media 295.6KiB 295.6KiB
No change  Other 847B 847B

Bundle analysis reportBranch Nadahar:addon-fixesProject dashboard


Generated by RelativeCIDocumentationReport issue

Comment thread bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue Outdated
Comment thread bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue Outdated
@Nadahar
Nadahar force-pushed the addon-fixes branch 2 times, most recently from 1142098 to 2f12699 Compare July 16, 2026 03:35
@Nadahar

Nadahar commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Now the formatter got mad that the line got too long 😖

Comment thread bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue Outdated
@Nadahar

Nadahar commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

@florian-h05 This PR now also fixes MainUI when the implicit user role is disabled. We've had numerous reports on the forum of MainUI just being a "blank page", and I believe this could be the reason. Currently, with the implicit user role is disabled, you don't even get a login screen - there's no way to actually log in.

Also, if you were already logged in, SSE would fail to use authentication, which would lead it to fail constantly.

This whole PR is just bugfixes, some of them "aren't yet" bugs because the core PR isn't merged, but I can't see any harm of making MainUI handle that these fields can be missing even if they aren't today.

The PR now does more than its title indicates, but I'm not sure what to rename it to so that it's "covering" these bugfixes that are a bit all over the place.

I'd say that this should be a strong candidate for a backport.

@Nadahar
Nadahar force-pushed the addon-fixes branch 2 times, most recently from bc4622b to b493bb3 Compare July 21, 2026 15:47
@Nadahar

Nadahar commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

@openhab/webui-maintainers I've now rebased this on latest main and removed the fixes that were "common" with #4371, which should make this very easy to review.

Comment thread bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue Outdated
@Nadahar

Nadahar commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

I added the code that prevents SSE retries if authentication fails. The idea is that if it fails, it won't magically start working, so to keep retrying is just futile and generates a lot of log noise on both sides, and some traffic. But, since #4371, chances that SSE connections without a valid token will be attempted established has drastically reduced. So, one could question whether there is any point in doing this.

@florian-h05

Copy link
Copy Markdown
Contributor

I think the SSE code doesn't hurt, however it doesn't really belong into this PR here.

@Nadahar

Nadahar commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

I think the SSE code doesn't hurt, however it doesn't really belong into this PR here.

I had all the other SSE stuff here too, the stuff we both fixed. So, it's just that it's the only thing that remains after rebasing. It's a bit tiresome to make a separate PR just for that, if it's about the changelog, can't you just make a two-line commit message when you squash? Or won't that "be the same"?

@florian-h05

Copy link
Copy Markdown
Contributor

If you squash the add-on commits so we end up with 2 commits in your PR, one for add-ons, one for SSE, and add the PR number in braces with a hashtag I can rebase merge and retain those two individual commits.

Ravi Nadahar added 2 commits July 23, 2026 01:08
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
@Nadahar

Nadahar commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

If you squash the add-on commits so we end up with 2 commits in your PR, one for add-ons, one for SSE, and add the PR number in braces with a hashtag I can rebase merge and retain those two individual commits.

Like this?

@florian-h05

Copy link
Copy Markdown
Contributor

Yes, exactly like this.

@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Jul 28, 2026
@florian-h05 florian-h05 added this to the 5.3 milestone Jul 28, 2026
@florian-h05
florian-h05 merged commit 7655ac4 into openhab:main Jul 28, 2026
5 checks passed
florian-h05 pushed a commit that referenced this pull request Jul 28, 2026
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
florian-h05 pushed a commit that referenced this pull request Jul 28, 2026
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
(cherry picked from commit f7f4be3)
florian-h05 pushed a commit that referenced this pull request Jul 28, 2026
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
(cherry picked from commit 7655ac4)
@florian-h05 florian-h05 added the backported A PR that has been cherry-picked to a patch release branch label Jul 28, 2026
@Nadahar
Nadahar deleted the addon-fixes branch July 28, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported A PR that has been cherry-picked to a patch release branch bug Something isn't working main ui Main UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants