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

Widget expressions: Fix handling of Item name being undefined & Align behaviour for @ and @@ shorthands in that case #2965

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

florian-h05
Copy link
Contributor

Fixes #2956.
This fix creates the limitation that an Item must not be named undefined - for an Item with this name, state tracking won't work.

Fixes openhab#2956.
This however imposes the limitation that one cannot name an Item `undefined`.

Signed-off-by: Florian Hotze <[email protected]>
…ned Item name to items[itemName]

Signed-off-by: Florian Hotze <[email protected]>
Copy link

relativeci bot commented Jan 1, 2025

#2629 Bundle Size — 10.97MiB (~+0.01%).

cd70d0a(current) vs 095584a main#2628(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#2629
     Baseline
#2628
Regression  Initial JS 1.9MiB(~+0.01%) 1.9MiB
No change  Initial CSS 577.21KiB 577.21KiB
Change  Cache Invalidation 17.33% 22.71%
No change  Chunks 227 227
No change  Assets 250 250
No change  Modules 2949 2949
No change  Duplicate Modules 154 154
No change  Duplicate Code 1.78% 1.78%
No change  Packages 98 98
No change  Duplicate Packages 2 2
Bundle size by type  Change 1 change Regression 1 regression
                 Current
#2629
     Baseline
#2628
Regression  JS 9.18MiB (~+0.01%) 9.18MiB
No change  CSS 866.3KiB 866.3KiB
No change  Fonts 526.1KiB 526.1KiB
No change  Media 295.6KiB 295.6KiB
No change  IMG 140.74KiB 140.74KiB
No change  HTML 1.38KiB 1.38KiB
No change  Other 871B 871B

Bundle analysis reportBranch florian-h05:states-undefinedProject dashboard


Generated by RelativeCIDocumentationReport issue

Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

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

This fix creates the limitation that an Item must not be named undefined

Well I think we can live with that :)
Thanks, these useless log messages happened to me too and getting rid of them is a good thing.

@florian-h05 florian-h05 marked this pull request as ready for review January 4, 2025 15:13
@florian-h05 florian-h05 merged commit f1c3896 into openhab:main Jan 4, 2025
6 checks passed
@florian-h05 florian-h05 deleted the states-undefined branch January 4, 2025 15:13
@florian-h05 florian-h05 added this to the 5.0 milestone Jan 4, 2025
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
2 participants