1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/src/lib/routes/admin-api
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
..
project fix: make new variant api validate name uniqueness (#1126) 2021-11-24 14:22:28 +01:00
addon.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
api-def.json Feature/setup typescript 2021-02-12 11:42:00 +01:00
api-token-controller.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
archive.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
bootstrap-controller.ts fix: add member and toggle count to project list (#918) 2021-08-19 13:25:36 +02:00
client-metrics.ts feat/metricsV2 (#1005) 2021-10-08 10:09:22 +02:00
config.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
config.ts feat: Disable password based login (#1046) 2021-10-29 10:25:42 +02:00
context.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
context.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
email.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
email.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
environments-controller.ts feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
event.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
events.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
feature-type.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
feature.ts task: Ban changes to variants through feature (#1130) 2021-11-25 14:53:58 +01:00
index.ts send splash data in the user object 2021-11-09 20:39:13 +01:00
metrics.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
metrics.ts fix: Cleanup new features API with env support (#929) 2021-09-13 10:23:57 +02:00
state.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
strategy.test.ts chore: mute expected test errors 2021-10-29 11:22:40 +02:00
strategy.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
tag-type.ts Add UPDATE and DELETE TAG_TYPE permissions (#951) 2021-09-24 09:01:15 +02:00
tag.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
user-admin.ts fix: add enpoint for fetching a single user (#1074) 2021-10-28 14:24:09 +02:00
user-feedback-controller.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
user-splash-controller.ts fix: remove req.body from the splash object when update 2021-11-12 12:44:33 +01:00
user.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user.ts fix: styling 2021-11-09 20:55:23 +01:00