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

Fix oh-stepper sends command on Item state update due to rounding #2096

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Sep 26, 2023

Fixes #1186: Widget sends command on external update due to rounding.

This is done by replacing the generic change listener with listeners for plusclick, minusclick and input for input element events.

@florian-h05 florian-h05 requested a review from a team as a code owner September 26, 2023 20:07
@florian-h05 florian-h05 changed the title oh-stepper: oh-stepper: Fix command sent on external update due to rounding Sep 26, 2023
@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Sep 26, 2023
@relativeci
Copy link

relativeci bot commented Sep 26, 2023

Job #1380: Bundle Size — 15.83MiB (~+0.01%).

ba56b6a(current) vs a13d34a main#1379(baseline)

Warning

Bundle contains 16 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change Regression 1 regression
                 Current
Job #1380
     Baseline
Job #1379
Regression  Initial JS 1.89MiB(+0.02%) 1.89MiB
No change  Initial CSS 609.81KiB 609.81KiB
No change  Cache Invalidation 93.97% 93.97%
No change  Chunks 217 217
No change  Assets 683 683
No change  Modules 3012 3012
No change  Duplicate Modules 170 170
No change  Duplicate Code 1.6% 1.6%
No change  Packages 152 152
No change  Duplicate Packages 16 16
Bundle size by type  Change 2 changes Regression 2 regressions
                 Current
Job #1380
     Baseline
Job #1379
Regression  JS 9.3MiB (~+0.01%) 9.3MiB
Regression  Other 4.75MiB (~+0.01%) 4.75MiB
Not changed  CSS 861.35KiB 861.35KiB
Not changed  Fonts 526.1KiB 526.1KiB
Not changed  Media 295.6KiB 295.6KiB
Not changed  IMG 140.74KiB 140.74KiB
Not changed  HTML 1.23KiB 1.23KiB

View job #1380 reportView florian-h05:oh-stepper branch activityView project dashboard

@florian-h05 florian-h05 changed the title oh-stepper: Fix command sent on external update due to rounding Fix oh-stepper send command on Item state update due to rounding Oct 4, 2023
@florian-h05 florian-h05 changed the title Fix oh-stepper send command on Item state update due to rounding Fix oh-stepper sends command on Item state update due to rounding Oct 4, 2023
@ghys
Copy link
Member

ghys commented Nov 21, 2023

@florian-h05 could you please rebase and revolve the conflcts?

@florian-h05
Copy link
Contributor Author

@ghys Done.

@ghys ghys added the rebuild trigger a new Jenkins job label Dec 8, 2023
@florian-h05 florian-h05 removed the rebuild trigger a new Jenkins job label Dec 29, 2023
@florian-h05
Copy link
Contributor Author

@ghys Can you please have a look at this PR? I have now rebased it again.

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.

At this point I think I'll just trust you and your ability to manage any regressions :)
Code looks good - sorry for falling behind!

@ghys ghys merged commit 660b8f1 into openhab:main Jan 29, 2024
6 checks passed
@ghys ghys added this to the 4.2 milestone Jan 29, 2024
@florian-h05 florian-h05 deleted the oh-stepper branch January 29, 2024 19:58
@florian-h05
Copy link
Contributor Author

I have created that PR so long ago that I cannot even remember all the changes without looking at them 😂

But I do remember testing it on my dev system. Anyway, we are far away from the next release, so enough time to learn about possible regressions.

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.

OH3 3.1 stable - Stepper widget sends commands spontaneously
2 participants