Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable and enable strategies - frontend #3582

Merged
merged 20 commits into from Apr 26, 2023
Merged

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Apr 21, 2023

image

@vercel
Copy link

vercel bot commented Apr 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2023 9:52am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2023 9:52am

andreas-unleash and others added 10 commits April 21, 2023 14:43
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
filter out disabled strategies

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
filter out disabled strategies by default.
return disabled strategies for the UI and the playground

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.
A few non blocking comments:

  • I'd add the 2 new flags to our hosted instance (even before you start work on a new feature)
  • Disabling last strategy doesn't disable a toggle - is it by design?
  • For all new code I write I try to increase test coverage. Maybe after merging this PR try to add at least one cypress tests for the Change Request user journey?
  • In future PRs I'd split logical changes like changing a title and disabling strategy at least into 2 separate PRs if not more. It makes it easier for the reviewers.

@Tymek Tymek merged commit 3bb09c5 into main Apr 26, 2023
8 of 10 checks passed
@Tymek Tymek deleted the feat/disable-strategy-frontend branch April 26, 2023 09:41
@sjaanus
Copy link
Contributor

sjaanus commented Apr 27, 2023

  • For all new code I write I try to increase test coverage. Maybe after merging this PR try to add at least one cypress tests for the Change Request user journey?

@kwasniew we agreed to avoid adding Cypress tests for the use cases that are not essential to the core functionality of the application. These tests tend to have a high maintenance overhead and can be flaky, which diminishes their value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants