-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add optimistic and failure data handling for report deletion #62798
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
Conversation
@rushatgabhane 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] |
@rushatgabhane this is a regression from my PR, so I will take the review :)) |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-26.at.9.40.07.PM.movAndroid: mWeb ChromeScreen.Recording.2025-05-26.at.9.41.32.PM.moviOS: HybridAppScreen.Recording.2025-05-26.at.9.46.19.PM.moviOS: mWeb SafariScreen.Recording.2025-05-26.at.9.47.43.PM.movMacOS: Chrome / SafariScreen.Recording.2025-05-26.at.9.35.22.PM.movMacOS: DesktopScreen.Recording.2025-05-26.at.9.42.52.PM.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.
Tested on web and works fine! Going to approve it for now for faster CP, as the change is in onyx should get applied correctly across all platforms
Screen.Recording.2025-05-26.at.9.35.22.PM.mov
note: working on other platforms videos now! but this looks good to merge!
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.
Tested on all platforms, works great!, updated the checklist too!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Add optimistic and failure data handling for report deletion (cherry picked from commit e5a9f39) (cherry-picked to staging by Beamanator)
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.1.51-6 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/arosiclair in version: 9.1.51-6 🚀
|
Explanation of Change
Update the deleteAppReport to optimistically remove hasOutstandingChildRequest and revert the change in failure data as well.
Fixed Issues
$ #62724
PROPOSAL: #62724 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)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
MacOS: Desktop
Screen.Recording.2025-05-26.at.4.44.21.p.m.mov