1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01:00
unleash.unleash/src/lib/routes/admin-api
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
..
project Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
user Change PAT primary key from string to number (#2163) 2022-10-10 13:35:12 +03:00
addon.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
api-token.ts task: Make operations on the API Token store auditable. (#2531) 2022-11-28 10:56:34 +01:00
archive.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
client-metrics.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
config.test.ts refactor: move segment limits to env vars (#1642) 2022-06-02 10:44:45 +02:00
config.ts Feat/unleash flags embedded proxy (#1974) 2022-08-26 15:16:29 +02:00
constraints.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
context.test.ts feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
context.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
email.test.ts
email.ts refactor: add OpenAPI schema to feature types controller (#1684) 2022-06-09 13:17:13 +02:00
environments.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
event.ts feat: add count to event list (#2036) 2022-09-02 08:35:31 +02:00
events.test.ts Feat/exp flag loader (#1961) 2022-08-26 08:22:42 +02:00
favorites.ts Add favorite events (#2572) 2022-11-30 14:26:17 +02:00
feature-type.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
feature.ts skip change request (#2598) 2022-12-05 15:38:17 +01:00
index.ts feat: favorite feature and project (#2582) 2022-12-02 09:16:03 +02:00
instance-admin.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
metrics.test.ts task: add OpenApi spec to metrics route (#1725) 2022-06-21 09:12:40 +02:00
metrics.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
playground.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
playground.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
public-signup.test.ts Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
public-signup.ts Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
state.ts Fix(export API): accept true and false as param values (#2349) 2022-11-08 15:25:02 +01:00
strategy.test.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
strategy.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-type.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag.test.ts task: add openapi for tags (#1724) 2022-06-21 08:23:30 +02:00
tag.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
user-admin.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
user-feedback.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
user-splash.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00