You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-06-06] [$250] Wrong "Next step" displayed for the approver #41614
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
ownerID corresponds to the ID of the request creator
managerID corresponds to the ID of the workspace admin
If this understanding is accurate, then the current logic here is wrong
What changes do you think we should make in order to solve the problem?
We need to extract the approverID from the policy using approverID = policy.submitsTo. Then
If the current user is the approver, we'll show "you"
If the current user isn't the approver, we'll display the name of the approver
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@dukenv0307] The PR that introduced the bug has been identified. Link to the PR:
[@dukenv0307] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@dukenv0307] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@dukenv0307] Determine if we should create a regression test for this bug.
[@dukenv0307] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
The PR that introduced the bug has been identified. Link to the PR: N/A
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
Determine if we should create a regression test for this bug. N/A
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. N/A
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon May 3, 2024
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.cretadn22 commentedon May 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Payer is wrong in the header
What is the root cause of that problem?
When an employee creates a money request, the backend returns a request report where the managerID is the ID of the approver
App/src/libs/NextStepUtils.ts
Lines 302 to 309 in 2f5173c
Given that
managerDisplayNameis "you"If I understand correctly:
If this understanding is accurate, then the current logic here is wrong
What changes do you think we should make in order to solve the problem?
We need to extract the approverID from the policy using
approverID = policy.submitsTo. ThenWhat alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
melvin-bot commentedon May 7, 2024
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]Wrong "Next step" displayed for the approver[/-][+][$250] Wrong "Next step" displayed for the approver[/+]melvin-bot commentedon May 7, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01e9b6cf8e506af2ea
melvin-bot commentedon May 7, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (
External)23 remaining items
melvin-bot commentedon May 30, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 30, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06-06. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 30, 2024
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:
adelekennedy commentedon Jun 6, 2024
@dominictb do you mind applying to the job here so I can pay you out? Thank you!!
adelekennedy commentedon Jun 7, 2024
@dominictb accepted
dominictb commentedon Jun 7, 2024
@adelekennedy Offer accepted, thanks
adelekennedy commentedon Jun 10, 2024
payments made! @dukenv0307 do we need a regression test here?
dukenv0307 commentedon Jun 10, 2024
BugZero Checklist: