Skip to content
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

[SDK-416] Fix missing disqualification event after global opt-out #4606

Merged
merged 2 commits into from Oct 26, 2021

Conversation

travis79
Copy link
Member

The disqualification events were not being recorded when toggling the global user participation.

The disqualification events were not being recorded when toggling the global user participation.
@travis79 travis79 requested a review from jhugman October 25, 2021 13:19
Copy link
Contributor

@jhugman jhugman left a comment

Choose a reason for hiding this comment

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

This looks good.

Does this need a Swift version too?

assertEquals("Experiment branch must match", "test-branch", enrollmentEventExtras["branch"])
assertNotNull("Experiment enrollment-id must not be null", enrollmentEventExtras["enrollment_id"])
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@@ -490,18 +490,25 @@ open class Nimbus(
internal fun setGlobalUserParticipationOnThisThread(active: Boolean) = withCatchAll {
val enrolmentChanges = nimbusClient.setGlobalUserParticipation(active)
if (enrolmentChanges.isNotEmpty()) {
recordExperimentTelemetryEvents(enrolmentChanges)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok.

@travis79
Copy link
Member Author

Does this need a Swift version too?

No, Swift already handles this correctly. I could add tests in Swift to match the tests I added here, if you like.

@travis79 travis79 force-pushed the sdk-416 branch 3 times, most recently from 65a0909 to 24b5aa3 Compare October 26, 2021 14:14
@codecov-commenter
Copy link

Codecov Report

Merging #4606 (4131c55) into main (1dab6d7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4606   +/-   ##
=======================================
  Coverage   80.69%   80.69%           
=======================================
  Files          48       48           
  Lines        5217     5217           
=======================================
  Hits         4210     4210           
  Misses       1007     1007           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1dab6d7...4131c55. Read the comment docs.

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.

None yet

3 participants