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 NodeUpdateTransaction always updating node zero (0.120) #10135

Open
wants to merge 1 commit into
base: release/0.120
Choose a base branch
from

Conversation

steven-sheehy
Copy link
Member

Description:

Cherry pick of #10134 to release/0.120.

  • Change node update to populate createdTimestamp if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state.
  • Fix NodeUpdateTransaction updating the wrong node
  • Fix NodeDeleteTransaction deleting the wrong node

Related issue(s):

Fixes #10133

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

* Change node update to populate `createdTimestamp` if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state.
* Fix `NodeUpdateTransaction` updating the wrong node
* Fix `NodeDeleteTransaction` deleting the wrong node

Signed-off-by: Steven Sheehy <[email protected]>
@steven-sheehy steven-sheehy added bug Type: Something isn't working parser Area: File parsing labels Jan 15, 2025
@steven-sheehy steven-sheehy self-assigned this Jan 15, 2025
@steven-sheehy steven-sheehy requested a review from a team as a code owner January 15, 2025 04:44
@steven-sheehy steven-sheehy added this to the 0.120.2 milestone Jan 15, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.23%. Comparing base (7cda810) to head (015c81c).

Additional details and impacted files
@@                 Coverage Diff                 @@
##             release/0.120   #10135      +/-   ##
===================================================
+ Coverage            92.25%   93.23%   +0.97%     
+ Complexity            7821      817    -7004     
===================================================
  Files                  953      335     -618     
  Lines                32749    11416   -21333     
  Branches              4151     1600    -2551     
===================================================
- Hits                 30214    10644   -19570     
+ Misses                1559      654     -905     
+ Partials               976      118     -858     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working parser Area: File parsing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants