-
-
Notifications
You must be signed in to change notification settings - Fork 243
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: Add press release button support #2553
Conversation
#1943 Bundle Size — 10.59MiB (+0.02%).Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
|
Current #1943 |
Baseline #1941 |
|
---|---|---|
Initial JS | 1.86MiB |
1.86MiB |
Initial CSS | 607.87KiB |
607.87KiB |
Cache Invalidation | 17.76% |
17.77% |
Chunks | 222 |
222 |
Assets | 245 |
245 |
Modules | 2873 |
2873 |
Duplicate Modules | 146 |
146 |
Duplicate Code | 1.84% |
1.84% |
Packages | 95 |
95 |
Duplicate Packages | 2 |
2 |
Bundle size by type 1 change
1 regression
Current #1943 |
Baseline #1941 |
|
---|---|---|
JS | 8.78MiB (+0.02% ) |
8.77MiB |
CSS | 890.63KiB |
890.63KiB |
Fonts | 526.1KiB |
526.1KiB |
Media | 295.6KiB |
295.6KiB |
IMG | 140.74KiB |
140.74KiB |
HTML | 1.24KiB |
1.24KiB |
Other | 871B |
871B |
Bundle analysis report Branch mherwege:press_release_button Project dashboard
Ready for review, the core PRs are now merged. |
@mherwege : please rebase your branch. Build is failing due to a change in core framework that needed a fix in Basic UI. |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
dbb8d01
to
725e626
Compare
@lolodomo done |
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.
LGTM, thanks!
Related to openhab/openhab-core#4183
Requires openhab/openhab-core#4204
This PR implements press/release button support.
To make this work, some refactoring had to be done to allow proper quoting of arguments in mappings and conditions. So far, quotes where stripped and the full mapping or condition strings where interpreted by splitting on special characters (=, : ...). This is limiting as it blocks these characters from being used in the arguments or makes working with blanks difficult. The sitemap syntax explicitely works with quoted strings for this, but that information was lost in the current implementation.
Quotes are now preserved, and therefore they need to be removed in core at usage (openhab/openhab-core#4204).
Note that this introduced a backward compatibility constraint, as sitemaps saved in the UI, containing mappings or conditions with blanks, will require quotes to be manually added in the UI in order to be able to save changes to it. If not touched, the sitemaps should still work.