[Retract] fix reopen report bugs#62791
Conversation
| key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${expenseReport.reportID}`, | ||
| value: { | ||
| [optimisticReopenedReportAction.reportActionID]: { | ||
| pendingAction: null, |
There was a problem hiding this comment.
this fixes failing request bug
|
Bug: Infinite next step loader
Screen.Recording.2025-05-26.at.7.21.08.PM.mov |
I think this may have been renamed but it's |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-05-26.at.7.27.50.PM.movMacOS: Desktop |
|
@rushatgabhane please update test step to state "Undo close" to avoid confusion |
s77rt
left a comment
There was a problem hiding this comment.
I have tested on web only but that shouldn't be a blocker. (I'm not sure how to get reports into closed state)
|
@dangrous BE bug: I have this report Edit: refreshing the page didn't help
|
Oh huh, I was noticing this last week too, but I thought it was maybe just my local environment! I will look into it. Does it seem specific to reopen/reject, or no? Do you know if it's an existing bug issue? If not we should report |
So you're getting this error from the back end - |
dangrous
left a comment
There was a problem hiding this comment.
This looks overall good, but now we have some conflicts, and one question about the logic.
I'll look into that next step thing when I can, and I'm curious about the error message noted, too. Let's see what we can do about that one - it might need an FE handling change.
Nothing specific that I can recall. Can't you check in the BE why it's failing? I think all my closed reports can't be reopened (e.g. |
|
@s77rt are you able to open the reports on old dot? do you see if yes, click it and then try to reopen on new dot |
|
@rushatgabhane Thanks! Yup that did it! In that case shouldn't we hide the |
|
hm yeah @joekaufmanexpensify will we need admins to "take control" for this to happen, like we do on Old Dot, or should it be updated (either here or in both places)? @s77rt @rushatgabhane I know joe is OOO for the rest of the week, so I put that question up there, but I think we should probably move forward without his answer to get this moving. Can we hide the button if you're not in control, for now? How do we determine that on the FE? I think the backend looks for "own" permission on the report. Also conflicts, and bumping this question, too. Thanks! |
a23954a to
1bf1c08
Compare
hmm i do not know i looked into old dot for @dangrous i will need your help on this 😄
|
|
okay so the TakeControl command seems to basically just update the I don't think we're handling taking control in ND yet. |
|
oh yeah that makes sense |
|
so reopen won't work unless we add take control to new dot |
|
started discuss here - https://expensify.slack.com/archives/C07HPDRELLD/p1748534248715669 |
|
EDIT - I'm dumb, I hadn't checked out this PR. This is all good |
|
hahaha happens to me too sometimes |
dangrous
left a comment
There was a problem hiding this comment.
LGTM! Let's do this. PR to handle the take control case is still in progress (discussion ongoing in Slack) but since this is behind a beta I think we're fine.
|
✋ 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/dangrous in version: 9.1.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.56-2 🚀
|
|
Posted a bug here I found while testing. |
|
@rushatgabhane This PR is failing because of issue #63389 |
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.58-4 🚀
|

Explanation of Change
Fixed Issues
$ #59561
PROPOSAL:
Tests
Pre-req: have a report that is in closed state in a workspace (you can find it on old dot using filters)
And have two accounts that are admins for that workspace.
Test 1: Failing request
simulate failing requestsreopenedand a error message for itreopeneddisappearsTest 2: updated next step for reopen
Test 3: submit button after reopening a report
Morebutton.Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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
Details
### Bug 1: failing requestsScreen.Recording.2025-05-26.at.13.01.36.mov
Bug 2: updated next step
Bug 3: submit button after reopening a report
Submitter
Admin