Skip to content

[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

Open
wants to merge 10 commits into
base: FME-4229-events-killedFlag
Choose a base branch
from

Conversation

MartinCardozo-SDK
Copy link
Contributor

iOS SDK

What did you accomplish?

Segments updated notification.

How do we test the changes introduced in this PR?

Extra Notes

@MartinCardozo-SDK MartinCardozo-SDK changed the title Fme 4230 events updated segment [FME-4230] Events - Updated Segment Logic Jun 12, 2025
@MartinCardozo-SDK MartinCardozo-SDK self-assigned this Jun 12, 2025
Copy link

@MartinCardozo-SDK MartinCardozo-SDK changed the base branch from FME-4222-events-withMetadata to FME-4228-events-updatedFlag June 15, 2025 00:08
@MartinCardozo-SDK MartinCardozo-SDK changed the title [FME-4230] Events - Updated Segment Logic [FME-4230] Events - Updated Segmens Jun 17, 2025
@MartinCardozo-SDK MartinCardozo-SDK changed the title [FME-4230] Events - Updated Segmens [FME-4230] Events - Updated Segments Jun 17, 2025
@MartinCardozo-SDK MartinCardozo-SDK marked this pull request as ready for review June 24, 2025 18:04
@MartinCardozo-SDK MartinCardozo-SDK requested a review from a team as a code owner June 24, 2025 18:04
@MartinCardozo-SDK MartinCardozo-SDK changed the base branch from FME-4228-events-updatedFlag to withMetadata2 June 24, 2025 18:05
@MartinCardozo-SDK MartinCardozo-SDK changed the base branch from withMetadata2 to FME-4229-events-killedFlag June 24, 2025 18:05
Copy link
Contributor

@gthea gthea left a 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)
Copy link
Contributor

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.

Comment on lines +210 to +219
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)
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants