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: deleteis added to a reportDeleteCommentAPI request is never executed, so the optimisticpendingActionis never cleaned upGetOlderActionsFixed Issues
$ #39028
Tests / QA Steps
GetOlderActionrequests in the network tabAddCommentorDeleteCommentrequestOpenReportcallOffline tests
same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
web.mov
MacOS: Desktop