Problem
When the Distance Rates feature is disabled in NewDot, the distance rates remain enabled. Similarly to other features in the App, we should disable the rates when the feature is disabled.
However, this is also not yet implemented optimistically for tags and categories. This is an edge case that helps in cases of rare offline usage, and as such, it was not noted as regression.
When we disable the categories and tags feature in the backend, we also disable any enabled categories and tags. We need to do the same optimistically in the client (failure data should revert the state to the one before toggling the feature off).
Solution
When the distance rates feature is turned off in NewDot, go through all the distance rates on the policy and disable them except the Default Rate if available. If it's not available, keep the first rate that you go over as enabled and disable all the rest. We need to keep one enabled.
For tags and categories, make sure to turn off the requiresCategory and requiresTag optimistically and then all the tags, even multi-level.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~010ba691024d0e69b3
- Upwork Job ID: 1775299514448031744
- Last Price Increase: 2024-06-07
- Automatic offers:
- getusha | Reviewer | 102703385
- dominictb | Contributor | 102703388
Issue Owner
Current Issue Owner: @
Issue Owner
Current Issue Owner: @kadiealexander
Problem
When the Distance Rates feature is disabled in NewDot, the distance rates remain enabled. Similarly to other features in the App, we should disable the rates when the feature is disabled.
However, this is also not yet implemented optimistically for tags and categories. This is an edge case that helps in cases of rare offline usage, and as such, it was not noted as regression.
When we disable the categories and tags feature in the backend, we also disable any enabled categories and tags. We need to do the same optimistically in the client (failure data should revert the state to the one before toggling the feature off).
Solution
When the distance rates feature is turned off in NewDot, go through all the distance rates on the policy and disable them except the
Default Rateif available. If it's not available, keep the first rate that you go over as enabled and disable all the rest. We need to keep one enabled.For tags and categories, make sure to turn off the
requiresCategoryandrequiresTagoptimistically and then all the tags, even multi-level.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @kadiealexander