Skip to content

Add ignoredServices to DuplicateRegistrationDetector#311

Closed
skorulis-ap wants to merge 1 commit intomainfrom
skorulis/ignore-duplicates
Closed

Add ignoredServices to DuplicateRegistrationDetector#311
skorulis-ap wants to merge 1 commit intomainfrom
skorulis/ignore-duplicates

Conversation

@skorulis-ap
Copy link
Copy Markdown
Contributor

@skorulis-ap skorulis-ap commented Oct 28, 2025

This allows DuplicateRegistrationDetector to be run in some CI tests to prevent anything slipping into main.

@skorulis-ap skorulis-ap marked this pull request as ready for review October 28, 2025 00:08
@skorulis-ap skorulis-ap requested a review from bradfol October 28, 2025 00:08

public init(
ignoredServices: [Any.Type] = [],
duplicateWasDetected: ((Key) -> Void)? = nil
Copy link
Copy Markdown
Contributor

@bradfol bradfol Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The detector currently keeps all duplicates on the detectedKeys array. Right now cash-ios is just checking duplicateDetection.detectedKeys.isEmpty but we could be ignoring keys from that list with the existing APIs. Thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works. Will close this PR and do it that way

@bradfol bradfol deleted the skorulis/ignore-duplicates branch October 29, 2025 17:36
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