-
Notifications
You must be signed in to change notification settings - Fork 168
Add metadata field to FlagDetails and populate allocationKey #2989
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
base: develop
Are you sure you want to change the base?
Changes from 5 commits
0fab565
fe36df2
4e11528
544f0a5
608d7b7
5b7a556
d712e75
e349aec
68057de
e0576a2
db2cda8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1530,7 +1530,8 @@ public struct FlagAssignment: Equatable | |
| public var variation: Variation | ||
| public var reason: String | ||
| public var doLog: Bool | ||
| public init(allocationKey: String, variationKey: String, variation: Variation, reason: String, doLog: Bool) | ||
| public var extraLogging: [String: AnyValue] | ||
| public init(allocationKey: String,variationKey: String,variation: Variation,reason: String,doLog: Bool,extraLogging: [String: AnyValue] = [:]) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There used to be spaces between the function arguments and now there aren't. I wonder if there is some configuration mismatch in the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's still an inconsistency in the formatting here by removing the spaces between the arguments |
||
| public init(from decoder: any Decoder) throws | ||
| public func encode(to encoder: any Encoder) throws | ||
| public enum FlagEvaluationError: Error | ||
|
|
@@ -1543,7 +1544,8 @@ public struct FlagDetails<T>: Equatable where T: Equatable | |
| public var variant: String? | ||
| public var reason: String? | ||
| public var error: FlagEvaluationError? | ||
| public init(key: String,value: T,variant: String? = nil,reason: String? = nil,error: FlagEvaluationError? = nil) | ||
| public var metadata: [String: AnyValue] | ||
| public init(key: String,value: T,variant: String? = nil,reason: String? = nil,error: FlagEvaluationError? = nil,metadata: [String: AnyValue] = [:]) | ||
| public protocol FlagValue: Encodable | ||
| public enum FlagsError: Error | ||
| case networkError(Error) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.