-
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
[$500] IOU - User is redirected to not here page after deleting IOU request with message #33295
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b7ea0b939fdc648e |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The user is redirected to not here page after deleting IOU request with a message edit amou What is the root cause of that problem?When we edit the amount we have a reportAction change amount, so Line 2277 in b3ecf32
Leading to not entering this condition Lines 2503 to 2509 in b3ecf32
What changes do you think we should make in order to solve the problem?We should change the condition here to return true if all of the reportActions in the report are not VisibleAction and other than MODIFIEDEXPENSE. We can add the param const visibleReportActions = Object.values(reportActions ?? {}).filter(
(action) => shouldReportActionBeVisibleAsLastAction(action) && (isExceptModifiedExpense ? action.actionName !== CONST.REPORT.ACTIONS.TYPE.MODIFIEDEXPENSE : true),
); What alternative solutions did you explore? (Optional)Here we can use Lines 87 to 90 in 52ecad4
So what we should todo if use childVisibleActionCount here:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 6, after deleting the request, user is redirected to not here page. What is the root cause of that problem?The condition here is not correct, it's checking the last visible message, which will include MODIFIEDEXPENSE report actions, which are not considered visible comments in the thread that we should keep after deleting the money request. So What changes do you think we should make in order to solve the problem?Use We can do it by updating this line to
What alternative solutions did you explore? (Optional)NA |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
After reviewing both proposals, the proposed solution in @dukenv0307's proposal is more elegant and I suggest that we move forward with this. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@akinwale I think that solution is not enough, as I mentioned in the alternative solution, if we forward that way we need to update |
So MODIFIEDEXPENSE action is considered invisible in a non thread chat but considered visible in a thread? |
@iwiznia the Meanwhile if there're visible actions (which increases the |
Oh sorry, missed that comment... maybe this is fixed then? @kbecciv can you confirm if the bug is gone? |
It is still reproducible. The final step is to click on the browser back button. |
Ah got it. OK proposal looks good then, just nitpick I think it's clearer to make it a regular condition instead of a ternary:
|
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@iwiznia I just ran another test on the latest main and it appears this has been fixed. It looks like I did not have my local branch updated when I initially checked. We can close the issue. |
Oh lol great |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.1.14.0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
In Step 6, after deleting the request, user is redirected to the main chat or Concierge since the report is now not unavailable.
Actual Result:
In Step 6, after deleting the request, user is redirected to not here page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6319777_1702997876666.20231219_225506.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: