1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy
Thomas Heartman 082a03afd7
Fix(1-3485)/handle deleted constraints (#9999)
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.
2025-05-15 13:08:54 +02:00
..
FeatureStrategyConstraints Fix(1-3485)/handle deleted constraints (#9999) 2025-05-15 13:08:54 +02:00
FeatureStrategyCreate feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
FeatureStrategyEdit feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
FeatureStrategyForm chore(1-3747): minor strategy edit header updates (#9992) 2025-05-14 12:48:46 +00:00
FeatureStrategyIcon
FeatureStrategyIcons
FeatureStrategyMenu feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
FeatureStrategyProdGuard
FeatureStrategySegment feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
FeatureStrategyType fix: strategy parameters UI (#7713) 2024-08-02 11:11:58 +02:00
featureStrategy.utils.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00