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

Sitemap editor: Fix attribute value capturing in parser & string value handling in widget detail view #1781

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

mherwege
Copy link
Contributor

@mherwege mherwege commented Mar 7, 2023

See comments in #1745

Fix attribute values for forceasitem and sendFrequency not being captured properly in code tab.
Fix boolean parameters legend, forceasitem and switchSupport not interpreting string value correctly in widget detail view.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@mherwege mherwege requested a review from a team as a code owner March 7, 2023 21:04
@relativeci
Copy link

relativeci bot commented Mar 7, 2023

Job #843: Bundle Size — 16.25MiB (~+0.01%).

45082ae(current) vs 400d06b main#842(baseline)

⚠️ Bundle contains 16 duplicate packages

Metrics (no changes)
                 Current
Job #843
     Baseline
Job #842
Initial JS 1.86MiB 1.86MiB
Initial CSS 608.62KiB 608.62KiB
Cache Invalidation 90.65% 90.65%
Chunks 218 218
Assets 688 688
Modules 1706 1706
Duplicate Modules 82 82
Duplicate Code 1.71% 1.71%
Packages 138 138
Duplicate Packages 15 15
Total size by type (2 changes)
                 Current
Job #843
     Baseline
Job #842
CSS 857.89KiB 857.89KiB
Fonts 1.08MiB 1.08MiB
HTML 1.23KiB 1.23KiB
IMG 140.74KiB 140.74KiB
JS 9.2MiB (~+0.01%) 9.2MiB
Media 295.6KiB 295.6KiB
Other 4.71MiB (~-0.01%) 4.71MiB

View job #843 reportView main branch activity

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
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, thanks!

@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Mar 8, 2023
@florian-h05 florian-h05 added this to the 4.0 milestone Mar 8, 2023
@florian-h05 florian-h05 changed the title [mainui] sitemap parser fix missing attribute value capture Sitemap editor: Fix attribute value capturing in parser & string value handling in widget detail view Mar 8, 2023
@florian-h05 florian-h05 merged commit ae7ac98 into openhab:main Mar 8, 2023
@florian-h05
Copy link
Contributor

@openhab/webui-maintainers
This is a hot candidate for cherry-picking to the 3.4.x branch, and #1745 as well. WDYT?

@mherwege
Copy link
Contributor Author

mherwege commented Mar 9, 2023

This is a hot candidate for cherry-picking to the 3.4.x branch, and #1745 as well. WDYT?

@florian-h05 @openhab/webui-maintainers Stop this for now. There still seems to be a type mismatch. While it is now clean in the UI? the wrong type is still passed to OH core (String iso Boolean). I am looking into a fix.

florian-h05 pushed a commit that referenced this pull request Mar 9, 2023
This is a fix for the remaining bug in
#1781
Boolean parameters are now properly treated as booleans and not strings
(which made the type normalizer fail in core, and blocked the sitemap
from being rendered).

See
#1781 (comment).

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@mherwege mherwege deleted the forceasitem_config_fix branch March 10, 2023 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants