-
Notifications
You must be signed in to change notification settings - Fork 108
[FEATURE] EventStreamResponse optimization #238
Copy link
Copy link
Closed
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerenhancementNew feature or requestNew feature or request
Description
Requirements
When multiple flags are updated simultaneously flagd sends multiple configuration_change events with the following structure:
{
"type": "configuration_change",
"data": {
"type": "delete",
"source": "file:config/samples/example_flags.json",
"flagKey": "myBoolFlag"
}
}
These events should be consolidated into one single configuration change event.
for example:
{
"type": "configuration_change",
"data": {
"flags": {
"myBoolFlag": {
"type": "delete",
"source": "file:config/samples/example_flags.json"
},
"myStringFlag": {
"type": "update",
"source": "file:config/samples/example_flags.json"
}
}
}
}
These changes should be made in the updateState method found in pkg/runtime/runtime.go
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerenhancementNew feature or requestNew feature or request