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

[Payment Due 2024-10-07] There are reports with GBR indicators that appear when search for them, but they do not show up in the LHN for approval. #49318

Closed
1 of 6 tasks
m-natarajan opened this issue Sep 17, 2024 · 17 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Sep 17, 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
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: @coleaeason
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726515980761009

Action Performed:

  1. Create a Collect workspace
  2. Invite a submitter and two approvers
  3. Enable Workflows + Approvals
  4. Set Approver A as the workspace approver
  5. As the submitter, submit an expense in your workspace chat
  6. As the admin, change the approver from Approver A to Approver B

Expected Result:

Approver A should be removed from the workspace chat, but they should retain the report from the submitter in LHN with GBR.

Actual Result for @coleaeason:

Approver A doesn't have the report in LHN. The report shows when searched for and shows as GBR when it's in his LHN after searching.

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

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 17, 2024
Copy link

melvin-bot bot commented Sep 17, 2024

Triggered auto assignment to @JmillsExpensify (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.

@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@garrettmknight
Copy link
Contributor

Asked in thread for more details around the reports.

@Beamanator
Copy link
Contributor

Commenting to keep an eye on this. This should have been fixed w/ these PRs:

Basically as of these PRs, the expense reports should be showing in the LHN AS LONG AS all of these are true:

  1. isExpenseReport(report)
  2. report?.hasParentAccess === false
  3. report?.managerID === currentUserAccountID
    • We might want to remove this :D

@melvin-bot melvin-bot bot added the Overdue label Sep 19, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 20, 2024
@garrettmknight garrettmknight added Overdue and removed Needs Reproduction Reproducible steps needed labels Sep 20, 2024
@garrettmknight
Copy link
Contributor

Assigning @Beamanator based on his theory above.

@Beamanator
Copy link
Contributor

Will get to this today 🙏

@Beamanator
Copy link
Contributor

PR is up! ^

@jjcoffee
Copy link
Contributor

@JmillsExpensify Could I get assigned here for payment as the PR reviewer? Thanks!

@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 1, 2024

Deployed to production yesterday, so should be due for payment 2024-10-07.

@Beamanator Beamanator added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Oct 1, 2024
@Beamanator Beamanator changed the title There are reports with GBR indicators that appear when search for them, but they do not show up in the LHN for approval. [Payment Due 2024-10-07] There are reports with GBR indicators that appear when search for them, but they do not show up in the LHN for approval. Oct 1, 2024
@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 8, 2024

  • The PR that introduced the bug has been identified. Link to the PR: N/A - followup to Show expense report in LHN even if report not in submitted state/status #48661
  • 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. Yes - if one doesn't already exist
  • 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.

Regression Test Proposal
Pre-requisites

  • Have a control policy with policy expense chats and "Advanced Approvals" enabled (members tab)
  • Have 3 non-admin users, 1 submitter and 2 approvers
  • The submitter has submitsTo set to Approver 1
  • Approver 1 and Approver 2 should NOT have a forwardsTo set.
  1. [Submitter] Go to the control policy's workspace chat
  2. [Submitter] Submit an expense and submit the report to Approver 1
  3. [Approver 1] Verify that you can see the submitted expense
  4. [Policy Owner] Go to the approval workflow settings (either NewDot or OldDot)
  5. [Policy Owner] Change the submitter's submitsTo to Approver 2
  6. [Approver 1] Verify you no longer have access to the workspace chat
  7. [Approver 1] Verify that you can still see the expense report in the LHN
  8. [Approver 1] Verify that you can open the expense report and you see the Approve button
  9. [Approver 1] Click Approve, and verify it works without errors
  10. [Approver 1] Click onto a different report and verify the expense report still shows up in LHN

Do we agree 👍 or 👎

@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 8, 2024

@JmillsExpensify Friendly bump to handle payment here. Thanks! 🙏

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Oct 8, 2024
Copy link

melvin-bot bot commented Oct 11, 2024

@JmillsExpensify, @Beamanator, @jjcoffee Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Oct 15, 2024

@JmillsExpensify, @Beamanator, @jjcoffee Still overdue 6 days?! Let's take care of this!

@JmillsExpensify
Copy link

Payment summary: $250 to @jjcoffee for PR review and testing.

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2024
@JmillsExpensify
Copy link

Offer sent, apologies for the delay.

@jjcoffee
Copy link
Contributor

@JmillsExpensify Accepted, thanks!

@JmillsExpensify
Copy link

All paid out!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 14, 2024
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. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants