-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create generic network layer logic for conflicting write requests #39024
Conversation
created this as a more generic follow-up for #38609. cc @rlinoz @OlimpiaZurek @allroundexperts. Hoping to get this done and merged tomorrow. We were discussing this in slack starting here. Remaining tasks here are:
|
@shubham1206agra this won't do anything to clean up any reports that are already borked with old optimistic reportActions that were never cleaned up before. Can you try signing out and back in then retesting? |
@roryabraham Still not working :( But maybe BE registered the wrong ActionID. Not sure though. |
Screen.Recording.2024-03-28.at.8.10.13.PM.movBUG: The comment inside thread is not registering correctly on comment made offline if I delete the parent comment |
Hmm adding a comment after adding and deleting a comment offline hides all previous reportActions Screen.Recording.2024-03-28.at.11.44.51.mov |
just catching up here - thanks for the reports and I'll investigate further. Just to be clear, did you confirm that these bugs aren't reproducible on |
# Conflicts: # src/libs/API/parameters/OpenReportParams.ts
I didn't, let me try main |
@shubham1206agra I'm not able to reproduce this one: web.movedit: Actually I am seeing this not working correctly - if I try to access the thread after refreshing I get a not found page. and I understand why. I'll post a fix for this |
So, it is happening something similar in main, but if I comment out the previous |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
As discussed here, we're aware of a single bug flow still unresolved by this PR, but will not block on that one and instead create a follow-up issue. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Create generic network layer logic for conflicting write requests (cherry picked from commit 3f3869a)
…ng-39024-1 🍒 Cherry pick PR #39024 to staging 🍒
Details
Currently we have a problem where:
pendingAction: delete
is added to a reportDeleteComment
API request is never executed, so the optimisticpendingAction
is never cleaned upGetOlderActions
Fixed Issues
$ #39028
Tests / QA Steps
GetOlderAction
requests in the network tabAddComment
orDeleteComment
requestOpenReport
callOffline tests
same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
web.mov
web.mov
MacOS: Desktop