1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/services
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
..
client-metrics fix: metrics v2 should await for the clearer (#1114) 2021-11-25 14:18:35 +01:00
access-service.ts fix: make hasPermission call handle api tokens (#1041) 2021-10-19 11:34:56 +02:00
addon-schema.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
addon-service-test-simple-addon.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
addon-service.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
addon-service.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
api-token-service.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
context-schema.ts fix: convert schemas to typescript 2021-09-14 20:36:40 +02:00
context-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
email-service.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
email-service.ts Revert "fix: uri encode smtp connection string (#901)" 2021-08-16 10:24:28 +02:00
environment-service.ts fix: disable projects (#1085) 2021-11-04 21:09:52 +01:00
event-service.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
feature-tag-service.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
feature-toggle-service.ts task: Ban changes to variants through feature (#1130) 2021-11-25 14:53:58 +01:00
feature-type-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
health-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
index.ts fix: add migration 2021-11-09 11:52:02 +01:00
project-health-service.ts fix: Stop healthrating from including archived (#1128) 2021-11-25 10:09:23 +01:00
project-schema.ts fix: convert schemas to typescript 2021-09-14 20:36:40 +02:00
project-service.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
reset-token-service.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
session-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
setting-service.ts feat: Disable password based login (#1046) 2021-10-29 10:25:42 +02:00
state-schema.ts feat: rename :global: env to "default" (#947) 2021-09-24 13:55:00 +02:00
state-service-export-v1.json Wip/environments (#880) 2021-07-07 10:46:50 +02:00
state-service.test.ts task: remove displayName from environments (#988) 2021-09-29 10:23:43 +02:00
state-service.ts feat: rename :global: env to "default" (#947) 2021-09-24 13:55:00 +02:00
state-util.ts fix: update mime library method signature to 2.X (#1078) 2021-11-02 23:43:16 +01:00
strategy-schema.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
strategy-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-schema.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-schema.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
tag-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-type-schema.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-type-schema.ts fix: import schema needs to understand :global: env 2021-08-26 22:42:06 +02:00
tag-type-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-feedback-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-service.test.ts feat: Disable password based login (#1046) 2021-10-29 10:25:42 +02:00
user-service.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
user-splash-service.ts fix: return be object instead of array 2021-11-12 13:19:06 +01:00
version-service.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
version-service.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00