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

[$250] [Awaiting Payment] Close reports for the combo of Instant Submit + No Approvals + No Payments #49131

Closed
garrettmknight opened this issue Sep 12, 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. Daily KSv2

Comments

@garrettmknight
Copy link
Contributor

garrettmknight commented Sep 12, 2024

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: N/A
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: @garrettmknight
Slack conversation: https://expensify.slack.com/archives/C06ML6X0W9L/p1726136887331749?thread_ts=1725892977.799399&cid=C06ML6X0W9L

Action Performed:

  1. Sign up with a new account
  2. Select 'Manage my team's expenses'
  3. Enter a first name
  4. Enable Workflows in the workspace
  5. Navigate to the Workflows tab
  6. Disable Payments
  7. Navigate to your workspace chat
  8. Submit a manual expense

Expected Result:

Since there is no approval or payment action for anyone to take, the report should be Closed. This will result in each individual expense in this configuration creating a closed report.

Actual Result:

The expense is added to a report in the Processing state with inaccurate next steps: Waiting for [workspace admin] to pay expense(s).

Workaround:

No workaround.

Platform:

All

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021848799022838902607
  • Upwork Job ID: 1848799022838902607
  • Last Price Increase: 2024-10-22
Issue OwnerCurrent Issue Owner: @garrettmknight
@garrettmknight garrettmknight added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
@garrettmknight garrettmknight self-assigned this Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

@trjExpensify
Copy link
Contributor

Because of a couple of other bugs atm we're working on elsewhere, you might want to switch to OldDot settings to get your workspace into the correct state to develop with @srikarparsi, or basically these are the three important properties on the workspace for the right condition:

  • scheduledSubmit=instantly
  • approvals = submit & close (can't remember what this one is technically, APPROVAL_MANUAL maybe 😅)
  • reimbursement=none

@srikarparsi
Copy link
Contributor

srikarparsi commented Sep 13, 2024

Awesome, I was able to replicate this pretty easily using @garrettmknight's steps in the issue body, didn't have to do anything in Old Dot. We just don't want the "Waiting for Srikar to pay expense(s)" because payments is not enabled right.

image

@trjExpensify
Copy link
Contributor

Awesome, I was able to replicate this pretty easily using @garrettmknight's steps in the issue body

Ah yeah, I mean it's impossible in NewDot to get the workspace into that state because of the bugs. So if you need to to test what happens to the report state when all of those three are set as such, you can get the config there via OldDot.

We just don't want the "Waiting for Srikar to pay expense(s)" because payments is not enabled right.

I think you've figured out since that the nextSteps text isn't the only scope of what's wrong with this issue. The underlying report is in the processing state instead of closed when "instant + no approvals + no payments" is configured.

@shubham1206agra
Copy link
Contributor

@garrettmknight Can you assign me this issue as reviewer?

Copy link

melvin-bot bot commented Oct 21, 2024

This issue has not been updated in over 15 days. @garrettmknight, @srikarparsi, @shubham1206agra eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@shubham1206agra
Copy link
Contributor

@trjExpensify Can you start payment here?

@trjExpensify trjExpensify added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Monthly KSv2 labels Oct 22, 2024
@trjExpensify trjExpensify changed the title Close reports for the combo of Instant Submit + No Approvals + No Payments [Awaiting Payment] Close reports for the combo of Instant Submit + No Approvals + No Payments Oct 22, 2024
@trjExpensify
Copy link
Contributor

I can slap some nagging labels on for @garrettmknight. 😏

@garrettmknight garrettmknight added the External Added to denote the issue can be worked on by a contributor label Oct 22, 2024
@melvin-bot melvin-bot bot changed the title [Awaiting Payment] Close reports for the combo of Instant Submit + No Approvals + No Payments [$250] [Awaiting Payment] Close reports for the combo of Instant Submit + No Approvals + No Payments Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021848799022838902607

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new.

@garrettmknight garrettmknight removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 22, 2024
@garrettmknight
Copy link
Contributor Author

@shubham1206agra offer is out to you.

@garrettmknight
Copy link
Contributor Author

@garrettmknight
Copy link
Contributor Author

Paid!

Copy link

melvin-bot bot commented Oct 23, 2024

@garrettmknight @srikarparsi Be sure to fill out the Contact List!

@tgolen
Copy link
Contributor

tgolen commented Oct 23, 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:

  • [@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR: N/A this has always been this way, this is more of a NewFeature than anything.
  • [@shubham1206agra] 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
  • [@shubham1206agra] 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
  • [@shubham1206agra] Determine if we should create a regression test for this bug.
  • [@shubham1206agra] 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.
  • [@garrettmknight] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@tgolen tgolen reopened this Oct 23, 2024
@garrettmknight
Copy link
Contributor Author

Took care of the checklist since it's a bit more of a New Feature issue.

Copy link

melvin-bot bot commented Oct 24, 2024

@garrettmknight @srikarparsi Be sure to fill out the Contact List!

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
Projects
No open projects
Status: Release 2.5: SuiteWorld (Sept 9th)
Development

No branches or pull requests

6 participants