1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-04 01:18:20 +02:00
unleash.unleash/frontend/src/component/feature
andreas-unleash c81de4a5bc
fix: add strategy bug when strategySplittedButton flag is on (#4071)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

Fixes 2 bugs after the recent strategy improvements v2 changes:
- When creating a strategy the `groupId` param of the Gradual Rollout
strategy now populates the groupId (when using default strategy, the
groupId will only be overwritten when it is an empty string ) with the
feature name (as it was before)

- When editing/setting a default strategy for an environment the
`groupId` param should be an empty string, but editable.

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-06-23 07:31:29 +00:00
..
CopyFeature feat: disallow clone toggle on change request enabled (#3383) 2023-03-27 13:21:50 +02:00
CreateFeature refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
CreateFeatureButton Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
EditFeature refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
FeatureForm feat: dark theme v1 (#3298) 2023-03-22 16:37:40 +02:00
FeatureStrategy fix: add strategy bug when strategySplittedButton flag is on (#4071) 2023-06-23 07:31:29 +00:00
FeatureToggleList test: bulk enable display (#3803) 2023-05-18 14:51:49 +02:00
FeatureView Splitted strategy button (#4025) 2023-06-21 15:26:07 +02:00
hooks refactor: remove error class names from input error messages (#1071) 2022-06-07 15:03:40 +02:00
RedirectFeatureView refactor: improve OpenAPI refs (#1005) 2022-05-24 08:37:46 +02:00
StrategyTypes fix: add strategy bug when strategySplittedButton flag is on (#4071) 2023-06-23 07:31:29 +00:00