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-02-26] [HIGH] Move the policy tax enabled property to tax key #36176

Closed
mountiny opened this issue Feb 8, 2024 · 19 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Task

Comments

@mountiny
Copy link
Contributor

mountiny commented Feb 8, 2024

Problem

Part of #36171

The policy. isTaxTrackingEnabled property does not exist in this shape in our policy data in database. Its saved as policy.tax.trackingEnabled : boolean. Given we are updating how the policy changes are being saved and propagated to the clients, its cleaner to keep this structure same in Onyx as well. Having different code and different data schema throughout the stack results in less straightforward, more confusing, and more bug prone code

Solution

Update the Policy schema and usage of the policy.isHarvestingEnabled property to expect this data in policy.tax.trackingEnabled : boolean format. Update the backend API to also return the data in this shape.

Steps:

  1. Update the App to accept both formats. If policy.tax.trackingEnabled is not available, fallback to policy. isTaxTrackingEnabled in the mean time
  2. Update Web to send the data as policy.tax.trackingEnabled
  3. Update Auth to do the same
  4. Remove the fallback for policy.isTaxTrackingEnabled from the App
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c25bc5a392761ffc
  • Upwork Job ID: 1755684468719345664
  • Last Price Increase: 2024-02-08
@mountiny mountiny added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Task labels Feb 8, 2024
@mountiny mountiny self-assigned this Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c25bc5a392761ffc

Copy link

melvin-bot bot commented Feb 8, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @ishpaul777 (Internal)

Copy link

melvin-bot bot commented Feb 12, 2024

@mountiny, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mountiny
Copy link
Contributor Author

I am unfortunately ill, doing bare minimum now to unblock peeps. Will look if I can squeeze this one in too

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2024
@ishpaul777
Copy link
Contributor

Wishing you a speedy recovery! 🌟

@mountiny
Copy link
Contributor Author

created draft for the app Pr to add the new property

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 14, 2024
@mountiny
Copy link
Contributor Author

Started with the App PR

@mountiny
Copy link
Contributor Author

Web PR is up too

@mountiny
Copy link
Contributor Author

No need for Auth changes its already there

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot changed the title [HIGH] Move the policy tax enabled property to tax key [HOLD for payment 2024-02-26] [HIGH] Move the policy tax enabled property to tax key Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 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 Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-5 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-02-26. 🎊

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

  • @ishpaul777 requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

Issue is ready for payment but no BZ is assigned. @twisterdotcom you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

Copy link

melvin-bot bot commented Feb 26, 2024

Payment Summary

Upwork Job

BugZero Checklist (@twisterdotcom)

  • 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/1755684468719345664/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@twisterdotcom
Copy link
Contributor

@ishpaul777
Copy link
Contributor

not able to access the above thread is it for me @twisterdotcom ?

@twisterdotcom
Copy link
Contributor

Ah sorry @ishpaul777 no. I was querying in Slack what the price was here, looks like we're going with $500, so I'll send a contract over in a mo.

@twisterdotcom
Copy link
Contributor

Sent and updated the Payment Summary.

@ishpaul777
Copy link
Contributor

Accepted! Thanks @twisterdotcom

@twisterdotcom
Copy link
Contributor

Paid!

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 Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Task
Projects
No open projects
Development

No branches or pull requests

3 participants