mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
5cdb3f665a
* task: Ban changes to variants through feature After adding the new `/variants` endpoint for features we now have a way to access control adding/modifying variants, so the /:featureName endpoint should no longer allow editing/adding variants. This removes variants as a known field from the featureMetadata schema and tells joi to stripUnknown, thus making sure we never include variants in the initial creation or future update calls. For the old features v1 API we allow it to declare that it has already validated the data coming with its own schema, so we should use the data we get from it. Thus keeping the old v1 functionality intact Co-authored-by: Simon Hornby <simon@getunleash.ai> |
||
---|---|---|
.. | ||
project | ||
addon.ts | ||
api-def.json | ||
api-token-controller.ts | ||
archive.ts | ||
bootstrap-controller.ts | ||
client-metrics.ts | ||
config.test.ts | ||
config.ts | ||
context.test.ts | ||
context.ts | ||
email.test.ts | ||
email.ts | ||
environments-controller.ts | ||
event.ts | ||
events.test.ts | ||
feature-type.ts | ||
feature.ts | ||
index.ts | ||
metrics.test.ts | ||
metrics.ts | ||
state.ts | ||
strategy.test.ts | ||
strategy.ts | ||
tag-type.ts | ||
tag.test.ts | ||
tag.ts | ||
user-admin.ts | ||
user-feedback-controller.ts | ||
user-splash-controller.ts | ||
user.test.ts | ||
user.ts |