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

[$500] Hold Request - Submitting report with expenses that on hold returns unexpected error #37017

Closed
5 of 6 tasks
izarutskaya opened this issue Feb 21, 2024 · 22 comments
Closed
5 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@izarutskaya
Copy link

izarutskaya commented Feb 21, 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!


Found when validating PR : #33897

Version Number: 1.4.43-6
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:

Action Performed:

Precondition: create a workspace, and invite an employee and approver

  1. Go to https://staging.new.expensify.com/

  2. Log in as an employee

  3. Navigate to a workspace chat

  4. Create a manual request

  5. Navigate to the expense detail page

  6. Click on 3 dots > Hold request

  7. Enter a reason and click on Hold request

  8. Return to the expense report and submit the report

Expected Result:

The report is submitted and the system message is displayed

Actual Result:

The error message "Unexpected error, please try again later" is shown. After refreshing the page, the system message that the report was submitted is displayed.

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

Bug6386873_1708521501608.Recording__223.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ff1a69fd67e7b5ae
  • Upwork Job ID: 1760296204787605504
  • Last Price Increase: 2024-02-21
Issue OwnerCurrent Issue Owner: @allroundexperts
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 21, 2024
@melvin-bot melvin-bot bot changed the title Hold Request - Submitting report with expenses that on hold returns unexpected error [$500] Hold Request - Submitting report with expenses that on hold returns unexpected error Feb 21, 2024
Copy link

melvin-bot bot commented Feb 21, 2024

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

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

melvin-bot bot commented Feb 21, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (External)

Copy link

melvin-bot bot commented Feb 21, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 21, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Feb 21, 2024

Triggered auto assignment to @amyevans (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya
Copy link
Author

We think that this bug might be related to #vip-bills
CC @davidcardoza

@amyevans
Copy link
Contributor

I can repro on the latest main Auth/Web/App locally, this is the SubmitReport response I receive:

{
    "jsonCode": 666,
    "title": "Cannot complete action",
    "message": "You do not have the permission to do the requested action.",
    "requestID": "pxZ0B3",
    "onyxData": []
}

I tried searching for logs from the QA tester to confirm it was the same error but can't find them 🤔 (searched with applausetester+0219pm1a@applause.expensifail.com / reportID 4675844924345473).

Since it's a backend error it likely shouldn't block App deploy, but I'm also not entirely sure of expected behavior so perhaps this action shouldn't be allowed in the first place.

cc @robertjchen

@robertjchen robertjchen added Daily KSv2 Hourly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Hourly KSv2 Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 22, 2024
@robertjchen robertjchen self-assigned this Feb 22, 2024
@robertjchen
Copy link
Contributor

robertjchen commented Feb 22, 2024

Hm, not a Deploy Blocker per se, since we're working on the approval/payment flow: https://expensify.slack.com/archives/C02NZ2HGJAZ/p1708478069824719

That said, does submit still break if the request is NOT on/removed from hold? 🤔

@robertjchen robertjchen added the Daily KSv2 label Feb 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 26, 2024
@robertjchen robertjchen added Weekly KSv2 and removed Daily KSv2 labels Feb 27, 2024
@melvin-bot melvin-bot bot removed the Overdue label Feb 27, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 6, 2024
@mallenexpensify mallenexpensify added Daily KSv2 and removed Weekly KSv2 labels Mar 7, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 7, 2024
@mallenexpensify
Copy link
Contributor

@robertjchen @amyevans should this be internal or external? Bumped back to Daily since it's a bug we want to fix. Adding to  #wave-collect too.

@robertjchen robertjchen added Weekly KSv2 and removed Daily KSv2 labels Mar 11, 2024
@robertjchen
Copy link
Contributor

Internal- we will revisit after Partial Pay/Approve is out since it relates to that flow.

@robertjchen
Copy link
Contributor

Same, holding till Partial Pay/Approve goes out

@mallenexpensify mallenexpensify added Monthly KSv2 and removed Weekly KSv2 labels Mar 18, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 19, 2024
@mallenexpensify
Copy link
Contributor

Bobby Bottles, is there a link for Partial Pay/Approve ?

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@robertjchen
Copy link
Contributor

yep! https://github.com/Expensify/Expensify/issues/378314

Seeing that it has gone out, let's retest this and see if it's still happening 👍

@robertjchen robertjchen added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label May 1, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@mallenexpensify
Copy link
Contributor

Tried to repro but not seeing HOLD option in upper tight when I click the three stacked dots
image

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@mallenexpensify mallenexpensify added Daily KSv2 and removed Monthly KSv2 labels May 22, 2024
@mallenexpensify
Copy link
Contributor

@allroundexperts can you reproduce? If so, can you provide some deets, especially regarding how to put an expense on hold? If you're unable to repro, I'll close. Thx

@allroundexperts
Copy link
Contributor

I do see the hold option. Make sure that you have multiple manual requests in a IOU report and then open any of the request. Clicking on the three dots in the header does show up the hold option. However, after pressing it and trying to submit the report, I can not reproduce the error mentioned in the issue description.

@allroundexperts
Copy link
Contributor

Ref:

Screen.Recording.2024-05-27.at.1.10.59.AM.mov

@mallenexpensify
Copy link
Contributor

Thanks @allroundexperts , following your steps I was able to use Hold. Was also unable to reproduce, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
Archived in project
Development

No branches or pull requests

6 participants