-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Closed
Copy link
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffTask
Description
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:
- Update the App to accept both formats. If
policy.tax.trackingEnabledis not available, fallback topolicy. isTaxTrackingEnabledin the mean time - Update Web to send the data as
policy.tax.trackingEnabled - Update Auth to do the same
- Remove the fallback for
policy.isTaxTrackingEnabledfrom 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffTask