-
Notifications
You must be signed in to change notification settings - Fork 32
Rename UserExperimentRecord to UserProfile. #35
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
Conversation
@@ -458,8 +458,8 @@ public Builder withErrorHandler(ErrorHandler errorHandler) { | |||
return this; | |||
} | |||
|
|||
public Builder withUserExperimentRecord(UserExperimentRecord userExperimentRecord) { | |||
this.userExperimentRecord = userExperimentRecord; | |||
public Builder withUserExperimentRecord(UserProfile userProfile) { |
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.
withUserProfile
} | ||
|
||
/** | ||
* Gives implementations of {@link UserExperimentRecord} a chance to remove records | ||
* Gives implementations of {@link UserProfile} a chance to remove records | ||
* of experiments that are deleted or not running. | ||
*/ | ||
public void cleanUserExperimentRecords() { |
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.
cleanUserProfiles
@@ -103,12 +103,12 @@ public void withDefaultErrorHandler() throws Exception { | |||
|
|||
@Test | |||
public void withUserExperimentRecord() throws Exception { |
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.
withUserProfile
@@ -447,106 +447,106 @@ public void bucketUserNotInOverlappingGroupExperiment() throws Exception { | |||
|
|||
/** | |||
* Verify that {@link Bucketer#bucket(Experiment,String)} saves a variation of an experiment for a user | |||
* when a {@link UserExperimentRecord} is present. | |||
* when a {@link UserProfile} is present. | |||
*/ | |||
@Test public void bucketUserSaveActivationWithUserExperimentRecord() throws Exception { |
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.
UserProfile
} | ||
|
||
/** | ||
* Verify that {@link Bucketer#bucket(Experiment,String)} logs correctly | ||
* when a {@link UserExperimentRecord} is present and fails to save an activation. | ||
* when a {@link UserProfile} is present and fails to save an activation. | ||
*/ | ||
@Test public void bucketUserSaveActivationFailWithUserExperimentRecord() throws Exception { |
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.
UserProfile
@@ -562,16 +562,16 @@ public void nullUserExperimentRecordWhenCleaning() { | |||
|
|||
/** | |||
* Verify {@link Bucketer#cleanUserExperimentRecords()} handles a null returned from |
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.
UserProfile
@@ -586,19 +586,19 @@ public void nullUserExperimentRecords() { | |||
@Test | |||
public void cleanRemovesRecordsOfExperimentsThatNoLongerExist() { |
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.
Profiles
@@ -608,19 +608,19 @@ public void cleanRemovesRecordsOfExperimentsThatNoLongerExist() { | |||
@Test | |||
public void cleanRemovesRecordsOfExperimentsThatAreNotRunning() { |
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.
Profiles
* | ||
* @param bucketValue the expected bucket value holder | ||
* @return the mock bucket algorithm | ||
*/ | ||
private Bucketer mockUserExperimentRecordAlgorithm(final AtomicInteger bucketValue, final UserExperimentRecord userExperimentRecord) { | ||
return new Bucketer(validProjectConfigV2(), userExperimentRecord) { | ||
private Bucketer mockUserExperimentRecordAlgorithm(final AtomicInteger bucketValue, final UserProfile userProfile) { |
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.
UserProfile
LGTM |
@optimizely/fullstack-devs