Skip to content
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-05] [$500] [MEDIUM] Expensify Cards: Wrong report header for the money spent #36186

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 8, 2024 · 66 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 8, 2024

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:
Reproducible in staging?: needs reproduction (card expense)
Reproducible in production?:
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: @coleaeason
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707427890816659

Action Performed:

  1. User A spends using the card
  2. Submits the bill to B
  3. Check the report header as user A

Expected Result:

User A spent $x.xx should appear

Actual Result:

User B spent $x.xx appears

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Screenshot 2024-02-08 at 1 30 54 PM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016517b2a5bd47bbcb
  • Upwork Job ID: 1762448288159342592
  • Last Price Increase: 2024-02-27
  • Automatic offers:
    • aimane-chnaif | Reviewer | 0
    • mollfpr | Contributor | 0
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@CortneyOfstad CortneyOfstad added Help Wanted Apply this label when an issue is open to proposals by contributors and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 9, 2024
@CortneyOfstad
Copy link
Contributor

Clarifying which wave here

@grgia
Copy link
Contributor

grgia commented Feb 9, 2024

Wave 6 @CortneyOfstad !

@grgia
Copy link
Contributor

grgia commented Feb 9, 2024

maybe related to #35529 cc @mollfpr

@mollfpr
Copy link
Contributor

mollfpr commented Feb 9, 2024

Looking 👀

@grgia grgia self-assigned this Feb 9, 2024
@CortneyOfstad
Copy link
Contributor

Wahoo! Thanks @grgia!

@grgia
Copy link
Contributor

grgia commented Feb 9, 2024

cc @abzokhattab

@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue 👍

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 12, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Feb 15, 2024

Sorry for the delay! I have checked and the PR #35529 doesn't make this issue. We don't have a check or utils function showing the spender's name on the money spent. It's default to use the manager name instead.

Here's are another place that using the display name wrong.

Screenshot 2024-02-15 at 20 01 07
Screenshot 2024-02-15 at 20 00 53

Screenshot 2024-02-15 at 20 01 23

@CortneyOfstad
Copy link
Contributor

Thanks for the update @mollfpr! Any thoughts on the above @grgia?

@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

@CortneyOfstad, @grgia Whoops! This issue is 2 days overdue. Let's get this updated quick!

@greg-schroeder greg-schroeder changed the title Wrong report header for the money spent [MEDIUM] Expensify Cards: Wrong report header for the money spent Feb 20, 2024
@grgia
Copy link
Contributor

grgia commented Feb 21, 2024

Looks like we mistakenly only use the manager name, but it should be the spender in some cases. I think unless we make this change as an update from the linked PR, we can make this internal. It seems more like this is a forgotten case that we should have covered in that PR @mollfpr

@melvin-bot melvin-bot bot removed the Overdue label Feb 21, 2024
@grgia grgia added the Hot Pick Ready for an engineer to pick up and run with label Feb 22, 2024
@grgia grgia removed their assignment Feb 22, 2024
@joekaufmanexpensify
Copy link
Contributor

@CortneyOfstad I see you're back, so going to let you keep this one. LMK if there's anything else I can help with!

@joekaufmanexpensify joekaufmanexpensify removed their assignment Mar 11, 2024
@CortneyOfstad
Copy link
Contributor

Thanks @joekaufmanexpensify!

@mollfpr it looks like @aimane-chnaif is waiting for confirmation on the PR here. Thanks!

@mollfpr
Copy link
Contributor

mollfpr commented Mar 12, 2024

Checking 👀

@CortneyOfstad
Copy link
Contributor

@grgia it shows that @mollfpr is waiting for confirmation on the PR here. Can you provide an update? Thanks!

@CortneyOfstad
Copy link
Contributor

@grgia bump on the above ^^^

@mollfpr
Copy link
Contributor

mollfpr commented Mar 22, 2024

@CortneyOfstad The PR is approved #37773 (review) but needs more internal testing.

Copy link

melvin-bot bot commented Mar 28, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 28, 2024
@melvin-bot melvin-bot bot changed the title [$500] [MEDIUM] Expensify Cards: Wrong report header for the money spent [HOLD for payment 2024-04-05] [$500] [MEDIUM] Expensify Cards: Wrong report header for the money spent Mar 29, 2024
Copy link

melvin-bot bot commented Mar 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 29, 2024
Copy link

melvin-bot bot commented Mar 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-05. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 29, 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:

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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:
  • [@mollfpr] 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:
  • [@mollfpr] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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.
  • [@CortneyOfstad] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Copy link

melvin-bot bot commented Apr 3, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@CortneyOfstad
Copy link
Contributor

@mollfpr Can you complete the checklist before EOD tomorrow? Thanks!

@CortneyOfstad
Copy link
Contributor

@mollfpr bump on the checklist 👍

@CortneyOfstad
Copy link
Contributor

Payment Summary

@mollfpr to be paid $500 via NewDot
@aimane-chnaif paid $500 via Upwork

@mollfpr
Copy link
Contributor

mollfpr commented Apr 5, 2024

Sorry for the delay @CortneyOfstad

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:

Not fully regression from #35529 but we do some improvement and cover another case to show correct verb.

[@mollfpr] 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:

The regression step should be enough.

[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] 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.

  1. Log in to your account with the Expensify Card transaction ([email protected])
  2. Go to the workspace chat with the transaction (https://staging.new.expensify.com/r/4612388815642526. If the transaction is settled, please create another Expensify Card transaction)
  3. Verify the text on 3 places below correctly showing <requestor's name> spent
    • Alternate text on LHN
    • Report preview
    • Money report preview header
  4. 👍 or 👎

@mollfpr
Copy link
Contributor

mollfpr commented Apr 5, 2024

@CortneyOfstad The PR I worked for this issue has a regression but I have fixed it #39208

@CortneyOfstad
Copy link
Contributor

@mollfpr I don't see a regression listed. Only that it was merged without testing, which @Gonals handled. We should be good 👍

I think the regression test looks good — @grgia any changes you would like to see made (if any)?

@JmillsExpensify
Copy link

$500 approved for @mollfpr

@CortneyOfstad
Copy link
Contributor

Regression test created here — https://github.com/Expensify/Expensify/issues/386030

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

8 participants