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

[Awaiting Payment 6th September] ApproveMoneyRequest is failing when there is no nextReceiver #47936

Closed
6 tasks done
garrettmknight opened this issue Aug 23, 2024 · 16 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@garrettmknight
Copy link
Contributor

garrettmknight commented Aug 23, 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: N/A
Reproducible in staging?: N/A
Reproducible in production?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/393839
Issue reported by: @JmillsExpensify
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1724422284086239?thread_ts=1724364263.668779&cid=C05LX9D6E07

Action Performed:

  1. Create a Control workspace on OldDot.
  2. Enable Advanced Approval
  3. Invite a submitter and an approver, we'll call them Approver A
  4. Set the submitter's submitsTo as Approver A
  5. As the submitter, submit an expense to the workspace chat.
  6. As the Admin, change the Submitter’s submitsTo to yourself, verify you have no forwardsTo set
  7. As Approver A, log in and open the report chat.

Expected Result:

Approver A should be able to see the 'Approve' button and tapping it should final approve the report.

Actual Result:

  • In the ApproveMoneyRequest we are now building the approvalChain based on the submitter
  • That is Admin in this case.
  • This means Approver A is not flagged as finalApprover (as they should be)
  • And that leads to check if the nextReceiver is the current manager (we should have never got here)
  • that fails as there is no nextReceiver hence the 500 error

Workaround:

None

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: @trjExpensify
@garrettmknight garrettmknight added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

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

@Beamanator
Copy link
Contributor

We agreed I'd take this over

@Beamanator Beamanator moved this to Release 2: Summer 2024 (Aug) in [#whatsnext] #expense Aug 23, 2024
@Beamanator
Copy link
Contributor

PR is up!

@melvin-bot melvin-bot bot added the Overdue label Aug 26, 2024
@trjExpensify trjExpensify added the Internal Requires API changes or must be handled by Expensify staff label Aug 26, 2024
@trjExpensify
Copy link
Contributor

Weird, why didn't the Reviewing label get added.

@melvin-bot melvin-bot bot removed the Overdue label Aug 26, 2024
@trjExpensify trjExpensify added Reviewing Has a PR in review Overdue labels Aug 26, 2024
@melvin-bot melvin-bot bot removed the Overdue label Aug 26, 2024
@Beamanator
Copy link
Contributor

Ya weird, not sure :D PR shoulllld be merged tomorrow 🙏

@Beamanator
Copy link
Contributor

Ooh it was merged just now!!

@Beamanator
Copy link
Contributor

Still we're working on #47926 getting merged for this

@trjExpensify trjExpensify changed the title ApproveMoneyRequest is failing when there is no nextReceiver [Awaiting Payment 6th August] ApproveMoneyRequest is failing when there is no nextReceiver Sep 3, 2024
@trjExpensify trjExpensify added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Sep 3, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 3, 2024
@trjExpensify
Copy link
Contributor

Assigning @ishpaul777 to this issue for the PR review. Hit prod 4 days ago, updated the labels to reflect the hold. :)

@ishpaul777
Copy link
Contributor

ishpaul777 commented Sep 4, 2024

waiting payment till next year 6 Aug, Nice 🫠

@Beamanator Beamanator changed the title [Awaiting Payment 6th August] ApproveMoneyRequest is failing when there is no nextReceiver [Awaiting Payment 6th September] ApproveMoneyRequest is failing when there is no nextReceiver Sep 4, 2024
@Beamanator
Copy link
Contributor

Lol updated to September 6 - i assume that's what you meant @trjExpensify ? 😅

@trjExpensify
Copy link
Contributor

Yep!

@ishpaul777
Copy link
Contributor

Thanks!

Copy link

melvin-bot bot commented Sep 6, 2024

@Beamanator @trjExpensify @ishpaul777 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@trjExpensify
Copy link
Contributor

Payment summary as follows:

Offer sent!

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@ishpaul777
Copy link
Contributor

I accepted the offer, Thanku!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 Overdue labels Sep 9, 2024
@trjExpensify
Copy link
Contributor

Paid, closing!

@github-project-automation github-project-automation bot moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #expense Sep 10, 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. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
Status: Done
Development

No branches or pull requests

5 participants