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

Datawallet modifications are not executed in the right order and wrong objects are deleted #278

Merged

Conversation

jkoenig134
Copy link
Member

@jkoenig134 jkoenig134 commented Sep 19, 2024

Readiness checklist

  • I added/updated tests.
  • I ensured that the PR title is good enough for the changelog.
  • I labeled the PR.

Description

When we first have written the Datawallet logic we were convinced that we can execute modifications in the order

creates -> updates -> deletes -> cacheChanges.

With the Relationship termination now more in use we have encountered bugs with this approach. This PR changes the behavior to run the modifications (except cacheChanges) in the exact order the arrived.

Some of the optimizations done here will be implemented by the backbone team later, but should not break as soon the optimize it.

@jkoenig134 jkoenig134 added wip Work in Progress (blocks mergify from auto update the branch) bug Something isn't working labels Sep 19, 2024
@jkoenig134 jkoenig134 changed the title Fix/execute datawallet modifications in the right order Datawallet modifications are not executed in the right order and wrong objects are deleted Sep 19, 2024
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 87.75510% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...c/modules/sync/DatawalletModificationsProcessor.ts 87.75% 6 Missing ⚠️
Files with missing lines Coverage Δ
...c/modules/sync/DatawalletModificationsProcessor.ts 95.81% <87.75%> (+0.39%) ⬆️

@jkoenig134 jkoenig134 removed the wip Work in Progress (blocks mergify from auto update the branch) label Oct 1, 2024
@jkoenig134
Copy link
Member Author

@Siolto FYI, we should be able to test this soon in the App :)

stnmtz
stnmtz previously approved these changes Oct 2, 2024
…' of github.com:nmshd/runtime into fix/execute-datawallet-modifications-in-the-right-order
@jkoenig134 jkoenig134 merged commit 961b560 into main Oct 2, 2024
17 checks passed
@jkoenig134 jkoenig134 deleted the fix/execute-datawallet-modifications-in-the-right-order branch October 2, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants