-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[HOLD for payment 2024-04-15] [$500] Expense - Approve button appears in archived expense report #38229
Comments
Triggered auto assignment to @slafortune ( |
@slafortune I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Approve button appears in archived expense report What is the root cause of that problem?Previous RCAWe don't check if the report is archived or not before determining valued for Line 3682 in 632b1f8
Line 3685 in 632b1f8
In Line 3685 in 632b1f8
ResultLine 3663 in 632b1f8
What changes do you think we should make in order to solve the problem?Add AlternativelyAdd App/src/components/MoneyReportHeader.tsx Line 72 in 632b1f8
Or add the check here: Line 740 in ffb7c5e
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When the approval mode is set to What is the root cause of that problem?The root cause is that we have not yet handled the What changes do you think we should make in order to solve the problem?To begin with, we need to handle the
Also, we need to optimistically generate the next step for the Further, we decide on whether
What alternative solutions did you explore? (Optional) |
@slafortune Huh... This is 4 days overdue. Who can take care of this? |
Submit and close should not/doesn't need to show the |
Job added to Upwork: https://www.upwork.com/jobs/~01d56509b7da773540 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?Note The question here is not whether one can approve the IOU report or not, but it is to show the Approve button or not, For App/src/components/MoneyReportHeader.tsx Line 70 in 632b1f8
What changes do you think we should make in order to solve the problem?Update const shouldShowApproveButton = useMemo(() => IOU.canApproveIOU(moneyRequestReport, chatReport, policy)
- , [moneyRequestReport, chatReport, policy]);
+ && !ReportUtils.isArchivedRoom(moneyRequestReport), [moneyRequestReport, chatReport, policy]); Note We don't need to update What alternative solutions did you explore? (Optional)N/A |
Couldn't get to these today but will review tomorrow. |
friendly bump @Ollyws for review :) |
As far as I can see, the report is immediately archived by the backend when the report is submitted meaning all we have to do here is hide the approve button for archived reports. @rojiphil Could you expand on why your changes to |
@Ollyws I agree that the report gets archived immediately by BE when the report is submitted in |
@rojiphil But the report is archived agnostically, I can't see a situation in which the changes to submitReport would be necessary but maybe I'm missing something? |
@Ollyws Sorry. I could have done better in communication here. I think changes to 38229-Issue.mp4 |
Triggered auto assignment to @robertjchen, 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? 💸 |
Thanks for the discussion, and I also agree with the proposal 👍 |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-15. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist:
This wasn't introduced by any PR we just hadn't yet handled the 'Submit and close' approval mode on the front-end.
N/A
N/A
Yes.
Regression Test Proposal
Do we agree 👍 or 👎 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.51-3
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
In Step 5, Approve button should not appear in expense report since the expense report is archived.
Actual Result:
In Step 5, Approve button appears in expense report when the expense report is archived.
When clicking Approve button, the expense report is no longer archived and back to archived state when reopening expense report (Step 7).
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6411984_1710315334923.bandicam_2024-03-13_15-27-32-588.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: