1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/lib/addons
David Leek e065e2a455
feat: render segments changes in feature strategy update event messages (#4950)
## 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](http://localhost/projects/default/features/sample-toggle)
in project [default](http://localhost/projects/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)
2023-10-09 09:11:39 +02:00
..
__snapshots__ feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
addon-schema.ts chore: GA (remove flag) for Slack App integration (#4765) 2023-09-21 13:55:58 +01:00
addon.test.ts task: Use make-fetch-happen (#1500) 2022-04-28 10:57:52 +02:00
addon.ts feat: improve slack app addon scalability (#4284) 2023-07-20 13:37:06 +01:00
datadog-definition.ts docs: improve datadog integration docs (#4802) 2023-09-26 11:15:22 +01:00
datadog.test.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
datadog.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
feature-event-formatter-md.test.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
feature-event-formatter-md.ts feat: render segments changes in feature strategy update event messages (#4950) 2023-10-09 09:11:39 +02:00
index.ts fix: datadog addon needs flagResolver (#4806) 2023-09-21 15:07:24 +02:00
installation-definition-schema.ts feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
slack-app-definition.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
slack-app.test.ts fix: simplify channels logic in slack app integration (#4756) 2023-09-18 08:32:37 +01:00
slack-app.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
slack-definition.ts chore: GA (remove flag) for Slack App integration (#4765) 2023-09-21 13:55:58 +01:00
slack.test.ts task: Add customHeaders as possible parameter. (#4139) 2023-07-05 09:42:17 +02:00
slack.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
teams-definition.ts feat: simpler integration filters (#4766) 2023-09-20 09:21:30 +01:00
teams.test.ts task: Add customHeaders as possible parameter. (#4139) 2023-07-05 09:42:17 +02:00
teams.ts feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
webhook-definition.ts feat: implement optional json payload and template (#4752) 2023-09-19 13:08:10 +02:00
webhook.test.ts task: Add customHeaders as possible parameter. (#4139) 2023-07-05 09:42:17 +02:00
webhook.ts task: Add customHeaders as possible parameter. (#4139) 2023-07-05 09:42:17 +02:00