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-05-22] Tax - Missing tax amount change in system message and incorrect new tax amount in the message #42045

Closed
6 tasks done
izarutskaya opened this issue May 13, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented May 13, 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: 1.4.73-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Workspace has enabled tax rate.
  • Workspace currency default is tax exempt (0%).
  • Foreign currency default have different tax rate (non-zero rate).
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense in local currency.
  4. Go to transaction thread.
  5. Click Amount and change it to a foreign currency.
  6. Note that the system message does not include tax amount change system message.
  7. Click Amount.
  8. Change it back to local currency.
  9. Note that the system message includes tax amount change system message.

Expected Result:

In Step 6, when tax rate changes as a result of switching currency, the system message will include tax amount change, just like Step 9.
In Step 9. the system message will show the new tax amount.

Actual Result:

In Step 6, when tax rate changes as a result of switching currency from local to foreign currency, the system message does not include tax amount change.
It only shows when changing currency from foreign to local currency (Step 9).
In Step 9, the system message shows the old tax amount.

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

Bug6479174_1715595254408.tax_amoun.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @sakluger
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

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

Copy link

melvin-bot bot commented May 13, 2024

Triggered auto assignment to @sakluger (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 May 13, 2024

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

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

@github-actions github-actions bot removed the Daily KSv2 label May 13, 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.

@izarutskaya
Copy link
Author

@sakluger I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production

Recording.2446.mp4

@Julesssss
Copy link
Contributor

Julesssss commented May 13, 2024

This seems the most likely candidate IMO. If confirmed we'll seek a quick PR or revert to unblock the deploy. It's a huge PR so a fix would be preferred.

@madmax330 I haven't seen this new process where web and mobile deployers are assigned. I assume you'll remain assigned and won't remove the blocker label until it is confirmed to be front end?

@MonilBhavsar
Copy link
Contributor

Found the issue. Working on a fix.
We have previously discussed that we won't be displaying a system message for an indirect change.
In this case, taxAmount changes as expense amount is updated. We won't display a system message for tax amount update, and only display system message for amount/currency change.

I also confirmed this is optimistic by signing out and signing in and confirming the system message is no longer displayed.

@MonilBhavsar
Copy link
Contributor

PR is ready for review

@Julesssss
Copy link
Contributor

Merged, about to CP

@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label May 13, 2024
@Julesssss Julesssss removed the DeployBlocker Indicates it should block deploying the API label May 13, 2024
@Julesssss
Copy link
Contributor

Fix was just CP'd to staging. Checking it off the checklist.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 15, 2024
@melvin-bot melvin-bot bot changed the title Tax - Missing tax amount change in system message and incorrect new tax amount in the message [HOLD for payment 2024-05-22] Tax - Missing tax amount change in system message and incorrect new tax amount in the message May 15, 2024
Copy link

melvin-bot bot commented May 15, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 15, 2024
Copy link

melvin-bot bot commented May 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.73-7 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-05-22. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 15, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rushatgabhane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@sakluger sakluger removed their assignment May 16, 2024
@sakluger sakluger added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2024
Copy link

melvin-bot bot commented May 16, 2024

Triggered auto assignment to @johncschuster (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 melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 16, 2024
@sakluger sakluger self-assigned this May 16, 2024
@sakluger
Copy link
Contributor

@johncschuster could you please help with payment while I'm OOO?

@Julesssss does this issue require payment, and if so, how much? It looks like it may be a regression, and in that case I think no payment would be due.

@sakluger sakluger added Weekly KSv2 and removed Daily KSv2 labels May 16, 2024
@Julesssss
Copy link
Contributor

Monil submitted the PR so no payment is necessary for that. But @rushatgabhane was a C+ reviewer

@johncschuster
Copy link
Contributor

Payment Summary:

Contributor+: @rushatgabhane - $250 via Manual Request

@johncschuster
Copy link
Contributor

@rushatgabhane can you complete the BZ Checklist when you get a moment? Thank you!

@rushatgabhane
Copy link
Member

rushatgabhane commented May 20, 2024

  1. The PR that introduced the bug has been identified. Link to the PR: support for offline tax tracking #40443

  2. The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: support for offline tax tracking #40443 (comment)

  3. A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N.A.

  4. Determine if we should create a regression test for this bug. Yes if it doesn't already exists

  5. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again

       1. Have tax tracking enabled on a collect workspace.
       2. Have at least two tax rates.
       3. Submit an expense to the workspace with tax rate A.
       4. Update expense amount and ensure tax amount changes and there is no system message for indirect tax amount change
       5. Update currency amount and ensure tax rate and tax amount changes and there is no system message for indirect tax amount or tax rate change
       6. Update tax rate and there is no system message for indirect tax amount change
       7. Update tax amount and ensure tax amount changes and there is system message for tax amount change
    

@johncschuster
Copy link
Contributor

Thank you! 🎉 The payment summary is above, and payment is due tomorrow. Please send your manual request 👍

@JmillsExpensify
Copy link

$250 approved for @rushatgabhane

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 Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants