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.trackingEnabled is not available, fallback to policy. isTaxTrackingEnabled in the mean time
- Update Web to send the data as
policy.tax.trackingEnabled
- Update Auth to do the same
- 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
Problem
Part of #36171
The
policy. isTaxTrackingEnabledproperty does not exist in this shape in our policy data in database. Its saved aspolicy.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 codeSolution
Update the Policy schema and usage of the
policy.isHarvestingEnabledproperty to expect this data inpolicy.tax.trackingEnabled : booleanformat. Update the backend API to also return the data in this shape.Steps:
policy.tax.trackingEnabledis not available, fallback topolicy. isTaxTrackingEnabledin the mean timepolicy.tax.trackingEnabledpolicy.isTaxTrackingEnabledfrom the AppUpwork Automation - Do Not Edit