-
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-03-14] [HOLD for payment #36814] [$500] [Collect approvers] Pay
button appears for the approved report
#34951
Comments
Triggered auto assignment to @NicMendonca ( |
Job added to Upwork: https://www.upwork.com/jobs/~01649969eb5b52cb20 |
Pay
button appears for the approved reportPay
button appears for the approved report
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
Still seeing this daily |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pay option is still appears after approving the expense. What is the root cause of that problem?It's simply because we don't hide the pay button when the expense is approved. App/src/components/MoneyReportHeader.tsx Lines 68 to 71 in 0d0b0a8
What changes do you think we should make in order to solve the problem?Hide the button when the expense is approved by adding (we need to do this in ReportPreview too) but how will the expense get paid if the pay button is hidden and it's not automatically reimbursed? |
It is partially a duplicate of #34951 where the Pay button should be hidden when auto-reimbursement is enabled, but we'd also need to check if the user is a Reimburser (not just an admin). Assigning myself to take it over. |
Thanks for the proposal @bernhardoj, but this GH will be internal since it will require BE changes. |
Current assignee @c3024 is eligible for the Internal assigner, not assigning anyone new. |
@marcochavezf, @NicMendonca, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Working on it |
PRs up to only display the Pay button to the reimburser (and not all admins): |
Hi @c3024, I was wondering if you've had a chance to work on this? If not, no worries at all, I'm more than happy to take care of the pending changes by creating a PR today. |
My bad, I misunderstood that I'd take this as C+ for review. 😄 I will make the PR right away. Could you confirm these?
This means |
Thanks @c3024, yeah the meaning of the reimbursement values is correct and also yes, the |
This comment was marked as outdated.
This comment was marked as outdated.
I think we are going to wait for the follow up PR. @c3024 can you share your Upwork profile link for me? |
@marcochavezf this was just an edge case we didn't consider, is that correct? Not a regression or failure in testing? if so, I'm thinking this deserves then the full payment of $500, and we can just add a small $250 bonus for the extra edge case handling? |
Pay
button appears for the approved reportPay
button appears for the approved report
The original PR was reverted anyway |
Yup, it was an edge case that required more discussion and was reverted to unblock the deployment at that moment |
Hmm okay, so we'll just do one payment of $500, because this is a fix for something that required reverting. The original solution didn't consider the edge cases. |
Waiting for this PR to be merged. |
Pay
button appears for the approved reportPay
button appears for the approved report
Pay
button appears for the approved reportPay
button appears for the approved report
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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-03-14. 🎊 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:
|
Payment SummaryBugZero Checklist (@twisterdotcom)
|
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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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: @JmillsExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705978407170839
Action Performed:
Expected Result:
"pay" button should disappear
Actual Result:
"pay" button still appears
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: