Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.34k stars 2.77k forks source link

Tax - App returns to More features after upgrading workspace to Control plan from Tax code #47400

Closed izarutskaya closed 1 month ago

izarutskaya commented 1 month ago

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: v9.0.20-0 Reproducible in staging?: Y Reproducible in production?: N Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Create a Collect workspace.
  3. Go to workspace settings > More features.
  4. Enable Taxes.
  5. Go to Taxes.
  6. Click on any tax rate.
  7. Click Tax code.
  8. Click Upgrade.

Expected Result:

App will open tax code editor after upgrading the workspace to Control plan.

Actual Result:

App returns to More features after upgrading the workspace to Control plan from Tax code page.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

https://github.com/user-attachments/assets/9d12da09-ff0a-49a6-8b2d-009abfd2d19e

View all open jobs on GitHub

melvin-bot[bot] commented 1 month ago

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

melvin-bot[bot] commented 1 month ago

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

izarutskaya commented 1 month ago

We think this issue might be related to the #wave-control

github-actions[bot] commented 1 month ago

:wave: 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.
Krishna2323 commented 1 month ago

Proposal

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

Tax - App returns to More features after upgrading workspace to Control plan from Tax code

What is the root cause of that problem?

backTo param is not passed to ROUTES.WORKSPACE_UPGRADE.getRoute. https://github.com/Expensify/App/blob/29fb6bba4cdff75247ee52154359c6925a2390c9/src/pages/workspace/taxes/WorkspaceEditTaxPage.tsx#L147-L152

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

Pass backTo param as ROUTES.WORKSPACE_TAX_CODE.getRoute(${policyID}, taxID).

What alternative solutions did you explore? (Optional)

rlinoz commented 1 month ago

Yeah, I think it is related to this PR https://github.com/Expensify/App/pull/46617

The fix is the same thing we are doing for tags.

rlinoz commented 1 month ago

CP fixed the issue

rlinoz commented 1 month ago

We can close this one.