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

[HOLD for payment 2024-04-05] Web - Expense report - Approve button not disabled if selected before enabling Self-approval #38889

Closed
1 of 6 tasks
kbecciv opened this issue Mar 23, 2024 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 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: 1.4.56-1
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #37348
Issue reported by: Applause - Internal Team

Action Performed:

precondition: user created a collect policy in OD, added a bank account, and set Direct reimbursements

  1. Log in to OD as the admin of the collect policy
  2. Navigate to the collect policy settings > Members
  3. Enable the Prevent self-approval toggle
  4. Log in to ND as the admin
  5. Open the workspace chat and create a manual request
  6. Disable the Prevent self-approval in OD
  7. Refresh the page or open the report and submit the report in ND
  8. Select Approve from the drop-down but do not click on it
  9. Enable the the Prevent self-approval toggle in OD

Expected Result:

The approve button is disabled both on the report preview and in the expense report

Actual Result:

The approve button is not disabled if it was selected before enabling Self-approval. Clicking on the Approve button results in skeleton loading

Workaround:

n/a

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

Bug6424411_1711211397899.Recording__345.mp4

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Mar 23, 2024
@kbecciv kbecciv changed the title Expense report - Approve button not disabled if selected before enabling Self-approval Web - Expense report - Approve button not disabled if selected before enabling Self-approval Mar 23, 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 Mar 23, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Mar 23, 2024

We think that this bug might be related to #wave-collect - Release 1

@kbecciv
Copy link
Author

kbecciv commented Mar 23, 2024

We think that this bug might be related to #wave-collect - Release 1

@luacmartins
Copy link
Contributor

Seems to have come from #37348

@francoisl
Copy link
Contributor

Guessing it's not a blocker since collect policies are not available to users on NewDot yet.

@barros001 @alitoshmatov - looks like it might be coming from #37348 indeed – any idea on how we could fix this?

@francoisl francoisl added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 25, 2024
@barros001
Copy link
Contributor

barros001 commented Mar 25, 2024

@francoisl I'll look into it as soon as I can and report back. By looking at the video (I have not had a change to look at code yet), I have a quick question: Under what circumstances would we want to have the Pay buttons visible/active while Approve is disabled? I raised this question while working on the original issue but we decided not to touch that logic as it was out of scope and we didn't want to break anything. If we really want to keep them there, then we'd have to make it so the button itself is disabled but then dropdown button (caret) is not so you can click and pick a different option.

@barros001
Copy link
Contributor

image

If we want to keep the pay options, here's how this would look like. I'm not sure I like the look of it but this is such an edge case that I don't think it matters that much really. I'll open a PR with the change.

@barros001
Copy link
Contributor

PR open for review. It assumes we do not want to touch the show/hide payment buttons logic and it only deals with the approve button.

@barros001
Copy link
Contributor

barros001 commented Mar 25, 2024

Here's a video of how it behaves:

Screen.Recording.2024-03-25.at.5.50.42.PM.mov

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 29, 2024
@melvin-bot melvin-bot bot changed the title Web - Expense report - Approve button not disabled if selected before enabling Self-approval [HOLD for payment 2024-04-05] Web - Expense report - Approve button not disabled if selected before enabling Self-approval Mar 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 29, 2024
Copy link

melvin-bot bot commented Mar 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-04-05. 🎊

Copy link

melvin-bot bot commented Apr 5, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@francoisl
Copy link
Contributor

All done here, fix is on production. The regression was fixed by the author of the PR that originally caused it, so I believe no payment is needed, but let me know if that's wrong.

@melvin-bot melvin-bot bot removed the Overdue label Apr 19, 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 Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants