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-08-27] [$250] Distance -Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline #47329

Closed
6 tasks done
IuliiaHerets opened this issue Aug 13, 2024 · 24 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 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: v9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: Y
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/4849591
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Tax is enabled.
  • Distance rates are enabled.
  • Track tax in DIstance rates is enabled.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings.
  3. Go to Distance rates.
  4. Go offline.
  5. Tap on any rate.
  6. Edit "Tax rate" and "Tax reclaimable on".
  7. Return to distance rate list.

Expected Result:

The distance rate will be grayed out after editing "Tax rate" or "Tax reclaimable on" offline.

Actual Result:

The distance rate is not grayed out after editing "Tax rate" or "Tax reclaimable on" offline.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6570933_1723555038821.20240813_211339.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01495987645fc6b7df
  • Upwork Job ID: 1823734401301545382
  • Last Price Increase: 2024-08-14
  • Automatic offers:
    • ikevin127 | Reviewer | 103534987
    • FitseTLT | Contributor | 103534988
Issue OwnerCurrent Issue Owner: @ikevin127
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 13, 2024
Copy link

melvin-bot bot commented Aug 13, 2024

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

@IuliiaHerets
Copy link
Author

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

@IuliiaHerets
Copy link
Author

@joekaufmanexpensify 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

@FitseTLT
Copy link
Contributor

FitseTLT commented Aug 13, 2024

Edited by proposal-police: This proposal was edited at 2024-08-13 14:31:45 UTC.

Proposal

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

Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline

What is the root cause of that problem?

Here we are missing taxClaimablePercentage and taxRateExternalID

pendingAction:
value.pendingAction ??
value.pendingFields?.rate ??
value.pendingFields?.enabled ??
value.pendingFields?.currency ??
(policy?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD ? policy?.pendingAction : undefined),

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

We need to add pendingFields taxClaimablePercentage and taxRateExternalID to the checks here

pendingAction:
value.pendingAction ??
value.pendingFields?.rate ??
value.pendingFields?.enabled ??
value.pendingFields?.currency ??
(policy?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD ? policy?.pendingAction : undefined),


                        value.pendingFields?.taxRateExternalID ??
                        value.pendingFields?.taxClaimablePercentage ??

What alternative solutions did you explore? (Optional)

@joekaufmanexpensify
Copy link
Contributor

Reproduced. I also verified that we generally do grey out the main option row if there is an offline change to a setting associated with it.

@joekaufmanexpensify joekaufmanexpensify added the External Added to denote the issue can be worked on by a contributor label Aug 14, 2024
@melvin-bot melvin-bot bot changed the title Distance -Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline [$250] Distance -Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline Aug 14, 2024
Copy link

melvin-bot bot commented Aug 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01495987645fc6b7df

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

melvin-bot bot commented Aug 14, 2024

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

@ikevin127

This comment was marked as outdated.

@ikevin127
Copy link
Contributor

@FitseTLT's proposal LGTM. The RCA is correct and the proposed solution fixes the issue according to the Expected result.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Aug 15, 2024

Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

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

melvin-bot bot commented Aug 15, 2024

📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Aug 15, 2024

📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@joekaufmanexpensify
Copy link
Contributor

@FitseTLT is there an ETA for PR here?

@joekaufmanexpensify
Copy link
Contributor

PR pending

@FitseTLT
Copy link
Contributor

PR ready

@joekaufmanexpensify
Copy link
Contributor

TY! I see it's merged now

@ikevin127
Copy link
Contributor

⚠️ PR was just deployed to production ~10 minutes ago but automation failed to add the hold -> this should be on [HOLD for Payment 2024-08-27] according to today's production deploy from #47591 (comment).

cc @joekaufmanexpensify

@joekaufmanexpensify joekaufmanexpensify changed the title [$250] Distance -Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline [hold for payment 2024-08-27] [$250] Distance -Distance rate is not grayed out after editing "Tax rate" & "Tax reclaimable" offline Aug 26, 2024
@joekaufmanexpensify
Copy link
Contributor

Sounds good!

@joekaufmanexpensify
Copy link
Contributor

Payments here are:

@joekaufmanexpensify joekaufmanexpensify added Daily KSv2 and removed Weekly KSv2 labels Aug 27, 2024
@joekaufmanexpensify
Copy link
Contributor

All set to issue payment!

@joekaufmanexpensify
Copy link
Contributor

@FitseTLT $250 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

@ikevin127 $250 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

All set, thanks everyone!

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants