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: Add press release button support #2553

Merged
merged 3 commits into from
May 7, 2024

Conversation

mherwege
Copy link
Contributor

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.

@mherwege mherwege requested a review from a team as a code owner April 30, 2024 10:16
Copy link

relativeci bot commented Apr 30, 2024

#1943 Bundle Size — 10.59MiB (+0.02%).

725e626(current) vs 50f2a91 main#1941(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change
                 Current
#1943
     Baseline
#1941
No change  Initial JS 1.86MiB 1.86MiB
No change  Initial CSS 607.87KiB 607.87KiB
Change  Cache Invalidation 17.76% 17.77%
No change  Chunks 222 222
No change  Assets 245 245
No change  Modules 2873 2873
No change  Duplicate Modules 146 146
No change  Duplicate Code 1.84% 1.84%
No change  Packages 95 95
No change  Duplicate Packages 2 2
Bundle size by type  Change 1 change Regression 1 regression
                 Current
#1943
     Baseline
#1941
Regression  JS 8.78MiB (+0.02%) 8.77MiB
No change  CSS 890.63KiB 890.63KiB
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.24KiB 1.24KiB
No change  Other 871B 871B

Bundle analysis reportBranch mherwege:press_release_buttonProject dashboard

@florian-h05 florian-h05 added awaiting other PR Depends on another PR enhancement New feature or request main ui Main UI labels Apr 30, 2024
@lolodomo lolodomo removed the awaiting other PR Depends on another PR label May 5, 2024
@lolodomo
Copy link
Contributor

lolodomo commented May 5, 2024

Ready for review, the core PRs are now merged.

@lolodomo lolodomo added rebuild trigger a new Jenkins job and removed rebuild trigger a new Jenkins job labels May 6, 2024
@lolodomo
Copy link
Contributor

lolodomo commented May 6, 2024

@mherwege : please rebase your branch. Build is failing due to a change in core framework that needed a fix in Basic UI.

mherwege added 3 commits May 6, 2024 17:20
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>
@mherwege mherwege force-pushed the press_release_button branch from dbb8d01 to 725e626 Compare May 6, 2024 15:21
@mherwege
Copy link
Contributor Author

mherwege commented May 6, 2024

@lolodomo done

@kaikreuzer kaikreuzer requested a review from florian-h05 May 6, 2024 18:53
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 this to the 4.2 milestone May 7, 2024
@florian-h05 florian-h05 changed the title Sitemap generator: Press release button support Sitemap generator: Add rress release button support May 7, 2024
@florian-h05 florian-h05 changed the title Sitemap generator: Add rress release button support Sitemap generator: Add press release button support May 7, 2024
@florian-h05 florian-h05 changed the title Sitemap generator: Add press release button support Sitemap editor: Add press release button support May 7, 2024
@florian-h05 florian-h05 merged commit 3fa3192 into openhab:main May 7, 2024
6 checks passed
@mherwege mherwege deleted the press_release_button branch May 7, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants