1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/features/feature-toggle
Thomas Heartman 3db1159304
feat: allow you to gradually scale back constraint usage (#7622)
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.
2024-07-19 08:40:45 +00:00
..
converters chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
fakes Chore: add limits to feature flags (#7536) 2024-07-04 11:00:11 +02:00
legacy chore: remove unused and deprecated methods in feature toggle legacy controller and in feature toggle service (#7199) 2024-05-29 11:01:33 +02:00
query-builders chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
tests feat: allow you to gradually scale back constraint usage (#7622) 2024-07-19 08:40:45 +00:00
time-to-production chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
types chore: add metrics/gauges for "max constraint values" and "max constraints" (#7398) 2024-06-17 11:13:13 +02:00
archive-feature-toggle-controller.ts chore: rename toggle to flag #4 (#7114) 2024-05-22 16:26:22 +03:00
configuration-revision-service.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
createFeatureToggleService.ts feat: allow you to gradually scale back constraint usage (#7622) 2024-07-19 08:40:45 +00:00
fake-feature-strategies-read-model.ts chore: add metrics/gauges for "max constraint values" and "max constraints" (#7398) 2024-06-17 11:13:13 +02:00
feature-strategies-read-model.ts feat: exclude archived features in max reporting (#7559) 2024-07-10 09:11:22 +02:00
feature-toggle-controller.ts fix: validate patched data with schema (#7616) 2024-07-18 13:26:50 +01:00
feature-toggle-service.ts feat: allow you to gradually scale back constraint usage (#7622) 2024-07-19 08:40:45 +00:00
feature-toggle-store.ts chore: rename toggle to flag #4 (#7114) 2024-05-22 16:26:22 +03:00
feature-toggle-strategies-store.ts fix: make default for gradual rollout work on the correct strategy name (#7401) 2024-06-14 15:54:00 +02:00
features-read-model.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00