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

Expense - Employee can edit paid expense but error shows up when advanced approvals is enabled #47265

Closed
6 tasks done
IuliiaHerets opened this issue Aug 12, 2024 · 16 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@IuliiaHerets
Copy link

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: v9.0.19-3
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/4847269
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Advanced approvals is enabled in the workspace via Workspace settings > Workflows > Add approval workflow > Upgrade.
  • Admin and employee are in the same workspace.
  1. Go to staging.new.expensify.com
  2. [Employee] Submit an expense in the workspace chat.
  3. [Admin] Approve and pay elsewhere the expense report.
  4. [Employee] Go to the transaction thread of paid expense.
  5. [Employee] Edit Description, Category, Tax etc.

Expected Result:

Since the transaction fields are enabled, employee should be able to edit the fields.

Or

The transaction fields should be disabled for employee.

Actual Result:

Employee has access to edit the paid expense but error shows up after saving the edit.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6570269_1723491413428.20240813_033015.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

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

Copy link

melvin-bot bot commented Aug 12, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 12, 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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@AndrewGable
Copy link
Contributor

Tagging the advanced approval experts if they have any ideas cc @tgolen @blazejkustra

@AndrewGable
Copy link
Contributor

I do see a console error and am curious if this is causing issues?

Google Chrome 2024-08-12 at 15 05 16

@tgolen
Copy link
Contributor

tgolen commented Aug 12, 2024

I would be pretty surprised if anything from the advanced approvals is causing that... but it's possible. Maybe @blazejkustra would know. Otherwise, I'd look for recent changes in OptionListUtils to see if you can spot something.

@youssef-lr
Copy link
Contributor

@Beamanator I pinged you in the line from my PR causing this

@Beamanator
Copy link
Contributor

sorry @youssef-lr can you also link that PR here?

@youssef-lr
Copy link
Contributor

#46931

@youssef-lr
Copy link
Contributor

youssef-lr commented Aug 13, 2024

also I think its fine to demote this. We don't have that many Control workspaces enabled for NewDot right now apart from our internal workspaces. The backend will still prevent us from editing.

@Beamanator Beamanator added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Aug 13, 2024
@Beamanator
Copy link
Contributor

That makes sense to me - if the backend is solid (which should mean OldDot works well) then lets call this NAB for now. Maybe you want to assign yourself for this fix?

@melvin-bot melvin-bot bot added the Overdue label Aug 15, 2024
Copy link

melvin-bot bot commented Aug 16, 2024

@youssef-lr, @CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick!

@CortneyOfstad
Copy link
Contributor

Not overdue!

@melvin-bot melvin-bot bot removed the Overdue label Aug 19, 2024
@Beamanator
Copy link
Contributor

#47398 was deployed to prod 2 days ago - @youssef-lr can we close this?

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
Projects
None yet
Development

No branches or pull requests

6 participants