1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/src/lib/routes
Christopher Kolstad 5cdb3f665a
task: Ban changes to variants through feature (#1130)
* 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>
2021-11-25 14:53:58 +01:00
..
admin-api task: Ban changes to variants through feature (#1130) 2021-11-25 14:53:58 +01:00
auth fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
client-api feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
api-def.ts fix: convert api-def.js to tyoescript 2021-09-14 20:07:05 +02:00
backstage.test.ts
backstage.ts
controller.ts fix: Cleanup new features API with env support (#929) 2021-09-13 10:23:57 +02:00
health-check.test.ts chore: mute expected test errors 2021-10-29 11:22:40 +02:00
health-check.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
index.test.ts
index.ts fix: convert api-def.js to tyoescript 2021-09-14 20:07:05 +02:00
logout.test.ts
logout.ts
unleash-types.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
util.ts task: Ban changes to variants through feature (#1130) 2021-11-25 14:53:58 +01:00