1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy
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
..
FeatureStrategyConstraints
FeatureStrategyCreate fix: add strategy bug when strategySplittedButton flag is on (#4071) 2023-06-23 07:31:29 +00:00
FeatureStrategyEdit fix: strategyId in edit strategy API command endpoint (#3725) 2023-05-09 13:39:28 +00:00
FeatureStrategyEmpty Splitted strategy button (#4025) 2023-06-21 15:26:07 +02:00
FeatureStrategyForm Fix/strategy UI improvements (#3766) 2023-05-16 11:15:59 +00:00
FeatureStrategyIcon
FeatureStrategyIcons
FeatureStrategyMenu feat: plausible for new strategy flow (#4057) 2023-06-22 12:04:36 +03:00
FeatureStrategyProdGuard
FeatureStrategySegment fix: ensure rel=noreferrer on target=_blank (#3755) 2023-05-12 09:51:33 +01:00
FeatureStrategyType
featureStrategy.utils.ts