1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/lib/error
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
..
bad-data-error.ts Wip/environments (#880) 2021-07-07 10:46:50 +02:00
db-error.ts Wip/environments (#880) 2021-07-07 10:46:50 +02:00
feature-has-tag-error.ts feat: add ui-bootstrap endpoint (#790) 2021-04-20 12:32:02 +02:00
incompatible-project-error.ts fix: add constraint for changing project. (#1049) 2021-10-21 10:29:09 +02:00
invalid-operation-error.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
invalid-token-error.ts Reset token (#786) 2021-04-16 15:29:23 +02:00
minimum-one-environment-error.ts fix: disable projects (#1085) 2021-11-04 21:09:52 +01:00
name-exists-error.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
no-access-error.ts feat: Default roles and RBAC permission checker. (#735) 2021-03-11 22:51:58 +01:00
notfound-error.ts feat: add ui-bootstrap endpoint (#790) 2021-04-20 12:32:02 +02:00
operation-denied-error.ts task: Ban changes to variants through feature (#1130) 2021-11-25 14:53:58 +01:00
owasp-validation-error.ts Reset token (#786) 2021-04-16 15:29:23 +02:00
password-undefined.ts fix: handle password being undefined when validating (#809) 2021-04-27 15:35:10 +02:00
used-token-error.ts Reset token (#786) 2021-04-16 15:29:23 +02:00