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

IOU - Hold option is missing on employee, approver and owner side #46896

Closed
3 of 6 tasks
lanitochka17 opened this issue Aug 6, 2024 · 9 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 6, 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: 9.0.17-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): gocemate+workspaceapprover155@gmail.com
Issue reported by: Applause - Internal Team

Issue found when executing PR #46721

Action Performed:

Precondition:

  1. Workspace has an approver (can be workspace owner)
  2. Employee submits 2 expenses on workspace chat
  3. As approver, open thread transaction of one of the expenses
  4. Click on workspace chat header
  5. Check present options on the modal

Expected Result:

Hold option should be present

Actual Result:

Hold option is not present on transaction details page, so user can not hold the expense
Hold option is missing on employee, approver and owner side

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

Bug6563461_1722954964361.Recording__3650.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 6, 2024
Copy link

melvin-bot bot commented Aug 6, 2024

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

@Christinadobrzyn Christinadobrzyn added the Internal Requires API changes or must be handled by Expensify staff label Aug 6, 2024
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Aug 6, 2024

I can reproduce this, I think this might already be a known issue but I'm not sure if it needs to be internal.

https://expensify.slack.com/archives/C036QM0SLJK/p1722958894237379

@MuaazArshad
Copy link
Contributor

MuaazArshad commented Aug 7, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Hold option is missing on employee, approver and owner side

What is the root cause of that problem?

It is not money request action. The code returns false for canHoldRequest.

App/src/libs/ReportUtils.ts

Lines 2901 to 2902 in 2c60fc9

if (!ReportActionsUtils.isMoneyRequestAction(reportAction)) {
return {canHoldRequest: false, canUnholdRequest: false};

What changes do you think we should make in order to solve the problem?

We can add a check for isReportPreviewAction.

 if (!ReportActionsUtils.isMoneyRequestAction(reportAction)&& !ReportActionsUtils.isReportPreviewAction(reportAction)) {
        return {canHoldRequest: false, canUnholdRequest: false};
    }

What alternative solutions did you explore? (Optional)

@Christinadobrzyn
Copy link
Contributor

asking if this should be worked on as part of #46371

@cretadn22
Copy link
Contributor

@Christinadobrzyn I can't reproduce this issue

Screen45.mov

@Christinadobrzyn
Copy link
Contributor

Thanks for testing @cretadn22 - this does appear to be resolved. Asking QA to test again.

@Christinadobrzyn
Copy link
Contributor

@kavimuru
Copy link

kavimuru commented Aug 9, 2024

Bug is fixed.

Recording.3669.mp4

@Christinadobrzyn
Copy link
Contributor

Awesome! 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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

5 participants