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(datastore): consecutive saves #10717

Closed
wants to merge 2 commits into from
Closed

fix(datastore): consecutive saves #10717

wants to merge 2 commits into from

Conversation

iartemiev
Copy link
Contributor

Description of changes

Simplifies the outbox version syncing logic for consecutive saves.

The previous implementation did not take into account selection set differences between mutation requests and responses caused by the client only sending updated fields in the request.

Issue #, if available

#9979

Description of how you validated changes

  • Tested against the code sample provided in the linked GH issue
  • Updated Outbox unit tests
  • Expanded e2e test (will link PR shortly)

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lgtm-com
Copy link

lgtm-com bot commented Nov 28, 2022

This pull request introduces 1 alert when merging 99e1e43 into 49bdf81 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@codecov-commenter
Copy link

Codecov Report

Merging #10717 (99e1e43) into main (49bdf81) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #10717      +/-   ##
==========================================
- Coverage   85.65%   85.65%   -0.01%     
==========================================
  Files         196      196              
  Lines       18261    18241      -20     
  Branches     3892     3887       -5     
==========================================
- Hits        15642    15624      -18     
+ Misses       2543     2541       -2     
  Partials       76       76              
Impacted Files Coverage Δ
packages/datastore/src/sync/outbox.ts 97.91% <100.00%> (+1.36%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@svidgen svidgen added the DataStore Related to DataStore category label Mar 7, 2023
@iartemiev iartemiev closed this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataStore Related to DataStore category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants