1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/src/lib
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
..
__snapshots__ Remove clone env and sync sso group flags (#2596) 2022-12-05 12:07:15 +02:00
addons Docs(fix): add more (missing) redirects, fix links (#2592) 2022-12-06 09:32:42 +01:00
db Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
error Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
middleware Fix/cors expose ETag (#2594) 2022-12-05 10:04:35 +01:00
openapi Favorite project (#2569) 2022-11-30 13:41:53 +02:00
proxy Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
routes Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
schema feat: Add variants per env (#2471) 2022-11-21 10:37:16 +01:00
services Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
types skip change request (#2598) 2022-12-05 15:38:17 +01:00
util Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
app.test.ts
app.ts fix: adds cors caching (#2522) 2022-11-24 16:14:47 +01:00
create-config.test.ts
create-config.ts Fix/cors expose ETag (#2594) 2022-12-05 10:04:35 +01:00
default-custom-auth-deny-all.ts refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
event-hook.test.ts
event-hook.ts
internals.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
logger.test.ts
logger.ts
metric-events.ts
metrics.test.ts
metrics.ts
server-impl.test.ts
server-impl.ts add back removed permissions and eventType from module exports (#2476) 2022-11-21 10:42:43 +02:00