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-25] [$250] Tax - Not here page opens when clicking currency in tax amount in transaction thread #40123

Closed
6 tasks done
lanitochka17 opened this issue Apr 11, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 11, 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.62-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #39562

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat that has tax enabled
  3. Create a manual request with tax
  4. Go to transaction thread
  5. Click Tax amount
  6. Click on the currency

Expected Result:

If the currency for tax amount is not supposed to be accessible in transaction thread, the currency should not be clickable (production behavior)

Actual Result:

The currency in tax amount in transaction thread is clickable, and it leads to not here page instead of currency list

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

Bug6445917_1712841997487.20240411_212019.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015297f4039458a835
  • Upwork Job ID: 1778496247330332672
  • Last Price Increase: 2024-04-11
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Apr 11, 2024
Copy link

melvin-bot bot commented Apr 11, 2024

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

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.

@lanitochka17
Copy link
Author

@NikkiWines FYI 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

@lanitochka17
Copy link
Author

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

@nkdengineer
Copy link
Contributor

nkdengineer commented Apr 11, 2024

Proposal

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

The currency in tax amount in transaction thread is clickable, and it leads to not here page instead of currency list

What is the root cause of that problem?

We use the IOURequestTaxAmountPage for edit flow now but we always pass the action as create here

https://github.croom/Expensify/App/blob/8f90c2567f020ed924a96593244727aace9a7d72/src/pages/iou/request/step/IOURequestStepTaxAmountPage.tsx#L109

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

We should use action in route prop here instead of always passing create

 Navigation.navigate(
    ROUTES.MONEY_REQUEST_STEP_CURRENCY.getRoute(action, iouType, transactionID, reportID, backTo ? 'confirm' : '', Navigation.getActiveRouteWithoutParams()),
);

https://github.croom/Expensify/App/blob/8f90c2567f020ed924a96593244727aace9a7d72/src/pages/iou/request/step/IOURequestStepTaxAmountPage.tsx#L109

What alternative solutions did you explore? (Optional)

isCurrencyPressable={!isEditing}

If we can't edit the currency of taxAmount, we should pass isCurrencyPressable as false into MoneyRequestAmountForm if we're editing the tax amount.

@NikkiWines NikkiWines added the External Added to denote the issue can be worked on by a contributor label Apr 11, 2024
@melvin-bot melvin-bot bot changed the title Tax - Not here page opens when clicking currency in tax amount in transaction thread [$250] Tax - Not here page opens when clicking currency in tax amount in transaction thread Apr 11, 2024
Copy link

melvin-bot bot commented Apr 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015297f4039458a835

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 11, 2024
Copy link

melvin-bot bot commented Apr 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External)

@NikkiWines
Copy link
Contributor

Thanks for investigating @nkdengineer. Since we don't want the currency to be editable for the tax field, let's go with your alternate solution.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 11, 2024
Copy link

melvin-bot bot commented Apr 11, 2024

📣 @nkdengineer You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@NikkiWines NikkiWines added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 11, 2024
Copy link

melvin-bot bot commented Apr 11, 2024

Triggered auto assignment to @puneetlath (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 Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Apr 12, 2024
@nkdengineer
Copy link
Contributor

@mollfpr The PR is ready.

@thienlnam
Copy link
Contributor

Should be fixed

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Apr 16, 2024
@puneetlath
Copy link
Contributor

So is there anything we need to do here or can we just close?

@thienlnam
Copy link
Contributor

We'll need to do a payment to @nkdengineer / @mollfpr for the fix

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 18, 2024
@melvin-bot melvin-bot bot changed the title [$250] Tax - Not here page opens when clicking currency in tax amount in transaction thread [HOLD for payment 2024-04-25] [$250] Tax - Not here page opens when clicking currency in tax amount in transaction thread Apr 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

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

Copy link

melvin-bot bot commented Apr 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-25. 🎊

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

  • @mollfpr requires payment through NewDot Manual Requests
  • @nkdengineer requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Apr 18, 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:

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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:
  • [@mollfpr] 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:
  • [@mollfpr] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@puneetlath
Copy link
Contributor

@mollfpr reminder about the checklist so we can pay in 2 days.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 24, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Payment Summary

Upwork Job

BugZero Checklist (@puneetlath)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1778496247330332672/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@puneetlath
Copy link
Contributor

@nkdengineer sent you an offer: https://www.upwork.com/nx/wm/offer/102031741. Please ping me on this issue when you've accepted.

@mollfpr waiting on checklist for you.

@nkdengineer
Copy link
Contributor

Please ping me on this issue when you've accepted.

@puneetlath I accepted 🙏

@puneetlath
Copy link
Contributor

Ok @nkdengineer has been paid.

@mollfpr still waiting on the checklist for you.

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Apr 29, 2024

Sorry for the delay 🙏

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:

No offending PR.

[@mollfpr] 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:

The regression step should be enough.

[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] 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. Go to the workspace chat that has tax-enabled
  2. Create a manual request with tax
  3. Go to the transaction thread
  4. Click Tax amount
  5. Click on the currency
  6. Verify that: the currency should not be clickable
  7. 👍 or 👎

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@puneetlath
Copy link
Contributor

Regression test issue here: https://github.com/Expensify/Expensify/issues/391684

Payment Summary:

@mollfpr requires payment through NewDot Manual Requests - C+ - $250
@nkdengineer paid through upwork - C - $250

@mollfpr please request on NewDot.

@JmillsExpensify
Copy link

$250 approved for @mollfpr

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants