mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
Improves handling of constraints in use that have been deleted. This change implments a few small changes on both the front and the back end on how we deal with constraints that have been deleted. The most important change is on the back end, in the `/constraints/validate` endpoint. We used to throw here if the constraint couldn't be found, but the only reason we wanted to look for the constraint in the db was to check for legal values. Now, instead, we'll allow you to pass a constraint field that doesn't exist in the database. We'll still check the values against the operator for validity, we just don't control legal values anymore (because there aren't any). On the front end, we improve the handling by showing the deleted context filed in the dropdown, both when the selector dropdown is closed and when it is open. However, if you change the context field, we remove the deleted field from the list. This seems like a sensible tradeoff. Means you can't select it if you've deselected it. |
||
---|---|---|
.. | ||
FeatureStrategyConstraints | ||
FeatureStrategyCreate | ||
FeatureStrategyEdit | ||
FeatureStrategyForm | ||
FeatureStrategyIcon | ||
FeatureStrategyIcons | ||
FeatureStrategyMenu | ||
FeatureStrategyProdGuard | ||
FeatureStrategySegment | ||
FeatureStrategyType | ||
featureStrategy.utils.ts |