1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/lib/services
Gastón Fournier aa20d2d418
Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591)
## About the changes
This PR addresses some issues when working with variants after migrating
to variants per environment.

**Problem:** since PATCH
`/api/admin/projects/default/features/${featureName}/variants` does not
take into account `featureEnvironments`, when variantsPerEnvironment
gets enabled, this method will override the variants in other
environments (i.e. not doing a patch). This method has to be maintained
because of backward compatibility but it has to be adapted to deal with
variants per environment


https://linear.app/unleash/issue/2-476/when-using-patch-for-variants-without-environments-it-wipes-out

Co-authored-by: Nuno Góis <github@nunogois.com>
2022-12-06 09:47:54 +00:00
..
client-metrics fix: remove 'fixHourMetrics' flag 2022-11-09 22:45:30 +01:00
access-service.test.ts chore: type improvements (#1941) 2022-08-19 10:28:53 +02:00
access-service.ts Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00
addon-schema.ts feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
addon-service-test-simple-addon.ts feat: add OpenAPI validation to a few endpoints (#1409) 2022-04-25 14:17:59 +02:00
addon-service.test.ts fix: addon filtering supports wildcards 2022-07-12 15:53:57 +02:00
addon-service.ts fix: addon filtering supports wildcards 2022-07-12 15:53:57 +02:00
api-token-service.test.ts task: Make operations on the API Token store auditable. (#2531) 2022-11-28 10:56:34 +01:00
api-token-service.ts Feat update token seen at (#2514) 2022-11-29 19:46:40 +00:00
client-spec-service.test.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
client-spec-service.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
context-schema.ts feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
context-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
edge-service.ts Create endpoint that validates tokens for edge (#2039) 2022-09-01 13:26:26 +00:00
email-service.test.ts Hyperlink Injection in People Invitation Emails (#2307) 2022-11-01 10:38:33 +02:00
email-service.ts Hyperlink Injection in People Invitation Emails (#2307) 2022-11-01 10:38:33 +02:00
environment-service.ts feat: Add variants per env (#2471) 2022-11-21 10:37:16 +01:00
event-service.ts feat: add count to event list (#2036) 2022-09-02 08:35:31 +02:00
favorites-service.ts Add favorite events (#2572) 2022-11-30 14:26:17 +02:00
feature-tag-service.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
feature-toggle-service.ts Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
feature-type-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
group-service.ts UX additions to groups SSO syncing (#2200) 2022-10-20 10:47:19 +03:00
health-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
index.ts Favorite project (#2569) 2022-11-30 13:41:53 +02:00
instance-stats-service.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
openapi-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
pat-service.ts fix: limit total of PATs a user can have (#2301) 2022-11-02 08:11:35 +00:00
playground-service.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
project-health-service.ts Make single project endpoint also return all features favorites (#2578) 2022-12-01 09:49:49 +02:00
project-schema.ts fix: convert schemas to typescript 2021-09-14 20:36:40 +02:00
project-service.ts Favorite project (#2569) 2022-11-30 13:41:53 +02:00
proxy-service.ts implement proxy all endpoint (#2460) 2022-11-21 12:57:07 +02:00
public-signup-token-service.ts Hard cap expiry date of public signup token (#2308) 2022-11-01 11:38:18 +02:00
reset-token-service.ts Fix/bcryptjs (#1239) 2022-01-06 20:43:57 +01:00
segment-schema.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
segment-service.ts feat: update strategy segments with edit / create strategy (#2420) 2022-11-16 15:35:39 +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: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
state-schema.ts feat: Add variants per env (#2471) 2022-11-21 10:37:16 +01:00
state-service-export-v1.json Wip/environments (#880) 2021-07-07 10:46:50 +02:00
state-service.test.ts task: continue to return export v3 when variants per env disabled (#2529) 2022-12-01 11:13:49 +00:00
state-service.ts task: continue to return export v3 when variants per env disabled (#2529) 2022-12-01 11:13:49 +00: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 openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +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 openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +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 Fix: prevent password reset email flooding (#2076) 2022-09-28 10:24:43 +02:00
user-service.ts feat: update seen_at pat column (#2516) 2022-11-30 08:10:31 +02:00
user-splash-service.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
version-service.test.ts fix: attempt to unflake version service tests (#2008) 2022-08-31 08:06:25 +02:00
version-service.ts fix: attempt to unflake version service tests (#2008) 2022-08-31 08:06:25 +02:00