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: Prevent set function to remove saved data when failing to update #13153
base: main
Are you sure you want to change the base?
Conversation
f57cee9
to
53015fb
Compare
53015fb
to
53f9289
Compare
Hello @jctaveras ! Sorry for being so late in testing this PR, but I can confirm that it fixes #13149. Thanks a lot for the investigation and the fix 👍 Considering that the issue can generate data loss, I think it would be worth creating a test for it to avoid future regression. What do you think? |
Hey @allawesome497 @papb , would any of you be available to take over this PR ? 🙂 |
Hey @closingin sorry I didn't reply to your comment
I'll take a look at those test soon 😉 |
Hello @jctaveras , any updates on this ? 🙂 |
@closingin sorry for the long delay. I was checking at the comment you left regarding test on data loss, but I don't think I quite get it 🤔 as far as I can see everything is covered with the current tests, plus I make the expected changes to the tests so they go according the changes that I've introduced. |
Well if it's good for you then it's good for me! We need someone to review the PR though. |
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description of change
Closes: #13149
These changes prevent the
set
function to delete the saved data when failing to update with, plush when receivingnull
it will return destroy the saved data without going through the whole function.Tests cases