-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add environment ID support for hooks. #81
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
Conversation
@@ -84,7 +85,7 @@ internal DataSourceUpdatesImpl( | |||
StateSince = DateTime.Now, | |||
LastError = null | |||
}; | |||
_status = new StateMonitor<DataSourceStatus, StateAndError>(initialStatus, MaybeUpdateStatus, _log); | |||
_status = new StateMonitor<DataSourceStatus, StateAndError>(initialStatus, MaybeUpdateStatus, _log); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a whitespace change.
#region IDataSourceUpdatesHeaders methods | ||
public bool InitWithHeaders(FullDataSet<ItemDescriptor> allData, IEnumerable<KeyValuePair<string, IEnumerable<string>>> headers) | ||
{ | ||
ImmutableDictionary<DataKind, ImmutableDictionary<string, ItemDescriptor>> oldData = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the method body is from the original init.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. Putting this in a comment to avoid accidental merge as the description says this is pending other work.
🤖 I have created a release *beep* *boop* --- ## [8.7.0](LaunchDarkly.ServerSdk-v8.6.0...LaunchDarkly.ServerSdk-v8.7.0) (2025-03-20) ### Features * Add environment ID support for hooks. ([#81](#81)) ([49149f2](49149f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR pipes the support for the environment ID header from the event source, through the data sources, and into the data store, and then exposes it to the evaluation series hook context.
Each step can optionally support the environment ID/headers for compatibility.
This PR will be held for back-end support and testing.