-
Notifications
You must be signed in to change notification settings - Fork 19
[FME-4230] Events - Updated Segments #689
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: FME-4229-events-killedFlag
Are you sure you want to change the base?
[FME-4230] Events - Updated Segments #689
Conversation
SonarQube Quality Gate |
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.
In general we should add some tests to verify the metadata is generated and passed in to the downstream components as expected.
splitEventsManager.notifyInternalEvent(.splitsUpdated) | ||
func notifyUpdated(flagsList: [String]) { | ||
let eventMetadata = EventMetadata(type: .FLAGS_UPDATED, data: flagsList.description) | ||
splitEventsManager.notifyInternalEvent(.splitsUpdated, metadata: eventMetadata) |
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.
Let's add a test to verify the built eventMetadata that gets to the splitEventsManager
.
func notifyFeatureFlagsUpdated(flagsList: [String]) { | ||
featureFlagsSynchronizer.notifyUpdated(flagsList: flagsList) | ||
} | ||
|
||
func notifySegmentsUpdated(forKey key: String) { | ||
byKeySynchronizer.notifyMySegmentsUpdated(forKey: key) | ||
func notifySegmentsUpdated(forKey key: String, _ metadata: EventMetadata? = nil) { | ||
byKeySynchronizer.notifyMySegmentsUpdated(forKey: key, metadata) | ||
} | ||
|
||
func notifyLargeSegmentsUpdated(forKey key: String) { | ||
byKeySynchronizer.notifyMyLargeSegmentsUpdated(forKey: key) | ||
func notifyLargeSegmentsUpdated(forKey key: String, _ metadata: EventMetadata? = nil) { | ||
byKeySynchronizer.notifyMyLargeSegmentsUpdated(forKey: key, metadata) |
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.
We should add some tests to verify data gets to the specific synchronizers.
iOS SDK
What did you accomplish?
Segments updated notification.
How do we test the changes introduced in this PR?
Extra Notes