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

feat: add increment and add operations to NumberSignal #2694

Merged
merged 32 commits into from
Sep 3, 2024

Conversation

taefi
Copy link
Contributor

@taefi taefi commented Sep 2, 2024

Description

Fixes #2622

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

Lodin and others added 30 commits August 22, 2024 10:49
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.15%. Comparing base (18357e7) to head (d66fc8a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2694      +/-   ##
==========================================
+ Coverage   92.10%   92.15%   +0.04%     
==========================================
  Files          79       80       +1     
  Lines        2521     2536      +15     
  Branches      652      656       +4     
==========================================
+ Hits         2322     2337      +15     
  Misses        152      152              
  Partials       47       47              
Flag Coverage Δ
unittests 92.15% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from feat/signals/value-signal-impl to main September 3, 2024 13:08
Copy link

sonarcloud bot commented Sep 3, 2024

@platosha platosha merged commit 1503513 into main Sep 3, 2024
15 checks passed
@platosha platosha deleted the taefi/add-atomic-addition-to-numbersignal-2 branch September 3, 2024 13:49
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.5.0.alpha13 and is also targeting the upcoming stable 24.5.0 version.

taefi added a commit that referenced this pull request Sep 5, 2024
This will introduce increment event for NumberSignal
so that it is processed atomically on server based on
the last seen value of NumberSignal without any retries.

Also, this refactors the increment method to incrementBy,
and also removes the add methods that were introduced in
#2694
platosha added a commit that referenced this pull request Sep 11, 2024
* fix: adjust increment api and remove add from NumberSignal.ts

This will introduce increment event for NumberSignal
so that it is processed atomically on server based on
the last seen value of NumberSignal without any retries.

Also, this refactors the increment method to incrementBy,
and also removes the add methods that were introduced in
#2694

* remove unnecessary imports and chai-like usage

* formatter:format

* set the value locally when incrementBy is called

* address sonar warnings

---------

Co-authored-by: Anton Platonov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Full-stack Signals] Add support for atomic arithmetic operation to NumberSignal
4 participants