-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Refactor the PersistedRequests v2 #32246
Refactor the PersistedRequests v2 #32246
Conversation
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@alitoshmatov Seems this is a follow-up to #30425 So please take over this as C+ cc: @luacmartins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, but I'm still seeing the 407 error when closing an account and the account isn't closed. See the video below on a new account:
Screen.Recording.2023-12-05.at.11.07.55.AM.mov
Hmm now I'm also seeing that error on main, which wasn't the case when I reverted the original PR. @roryabraham do you also get that error in dev? |
Hmm @roryabraham is ooo. @alitoshmatov would you mind testing the case I described above and see if you get the same error? |
Working on it |
@luacmartins I couldn't reproduce this issue on this branch ![]() |
Looks good. It must be an issue with my dev env then. Thanks! |
all yours @alitoshmatov |
@alitoshmatov did you get a chance to test this PR? |
Sorry this went under my radar, reviewing now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safaripersisted.request.web.movMacOS: Desktoppersisted.request.desktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.11-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.11-25 🚀
|
Details
This PR fixes storing duplicated data in
PersistedRequests
array. This solution based on addingidempotencyKey
param toOnyxData
type. There cannot be two requests with the sameidempotencyKey
in thePersistedRequests
array. In the v2 was fixed the issue with saving requests caused by modifying the requests array without creating a copy of this variable inside the save function.Previous PR: #30425
cc @roryabraham
After fix in PersistedRequests.ts file.
Screen.Recording.2023-10-26.at.10.10.29.mov
Fixed Issues
$ #28172
PROPOSAL:
$ #28172 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop