1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/test/e2e
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
..
api Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591) 2022-12-06 09:47:54 +00:00
helpers implement proxy all endpoint (#2460) 2022-11-21 12:57:07 +02:00
routes Wip/environments (#880) 2021-07-07 10:46:50 +02:00
seed feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
services Favorite project (#2569) 2022-11-30 13:41:53 +02:00
stores Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00
custom-auth.test.ts Favorite features (#2550) 2022-11-29 16:06:08 +01:00
health.e2e.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00