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

feat: render segments changes in feature strategy update event messages #4950

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Oct 6, 2023

About the changes

Segment changes in predata and data columns were both showing the new segments list

Adds formatting of what's changed with segments to feature strategy update events, so when a user changes the strategy from using constraints, to using segments instead, it's communicated in event updates

results in:

admin updated sample-toggle in project default by updating strategy Sample Strategy in development constraints from [userId is one of (1,2,3)] to empty set of constraints; segments from empty set of segments to (1)

Closes #
#4912

Important files

  • src/lib/services/feature-toggle-service.ts - Segment changes in preData and data
  • src/lib/addons/feature-event-formatter-md.ts - Formatting segments

Discussion points

This is an SR least effort PR - we should plan a task where we look at how to render this list of segments in a more comprehensible way (it's just rendering ids now)

@vercel
Copy link

vercel bot commented Oct 6, 2023

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

2 Ignored Deployments
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Oct 6, 2023 7:14am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Oct 6, 2023 7:14am

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LGTM! I'm worried about very large segments, but let's leave that for later

@daveleek daveleek merged commit e065e2a into main Oct 9, 2023
10 checks passed
@daveleek daveleek deleted the feat/add-segments-changes-to-slack-app branch October 9, 2023 07:11
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

2 participants