mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
70d8f9e58a
## About the changes Add warnings when we detect something might be wrong with the customer configuration, in particular with regard to variants configuration ## Rationale Moving from variants per feature to variants per environment will allow users to have fine-grained permissions and more control over variants on different environments: #2254 But because this requires an additional step of copying variants to other environments, we identified the potential risk of users forgetting to follow this step. To keep them informed about this, we're introducing a warning sign after a toggle is enabled when we detect that: 1. The environment is enabled without variants 2. Other enabled environments have variants This situation would be a problem if you rely on `getVariant` method from the SDK, because without variants you'll receive the default variant. Probably, not what you'd expect after enabling the toggle, but there are situations where this might be correct. Because of the latter, we thought that adding a warning and letting the user handle the situation was the best solution. ## UI sketches ![image (6)](https://user-images.githubusercontent.com/455064/213676353-112639f0-7781-42c0-8c9d-8c7eba316bae.png) ![Screenshot from 2023-01-19 08-55-10](https://user-images.githubusercontent.com/455064/213664639-7b11ff4b-048a-4a36-aa71-7df2f889adff.png) Co-authored-by: Nuno Góis <github@nunogois.com> |
||
---|---|---|
.. | ||
api | ||
helpers | ||
routes | ||
seed | ||
services | ||
stores | ||
custom-auth.test.ts | ||
health.e2e.test.ts |