mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
3db1159304
This PR updates the limit validation for constraint numbers on a single strategy. In cases where you're already above the limit, it allows you to still update the strategy as long as you don't add any **new** constraints (that is: the number of constraints doesn't increase). A discussion point: I've only tested this with unit tests of the method directly. I haven't tested that the right parameters are passed in from calling functions. The main reason being that that would involve updating the fake strategy and feature stores to sync their flag lists (or just checking that the thrown error isn't a limit exceeded error), because right now the fake strategy store throws an error when it doesn't find the flag I want to update. |
||
---|---|---|
.. | ||
converters | ||
fakes | ||
legacy | ||
query-builders | ||
tests | ||
time-to-production | ||
types | ||
archive-feature-toggle-controller.ts | ||
configuration-revision-service.ts | ||
createFeatureToggleService.ts | ||
fake-feature-strategies-read-model.ts | ||
feature-strategies-read-model.ts | ||
feature-toggle-controller.ts | ||
feature-toggle-service.ts | ||
feature-toggle-store.ts | ||
feature-toggle-strategies-store.ts | ||
features-read-model.ts |