Skip to content

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

Merged
merged 2 commits into from
Dec 6, 2016

Conversation

mikeproeng37
Copy link
Contributor

@optimizely/fullstack-devs

@@ -458,8 +458,8 @@ public Builder withErrorHandler(ErrorHandler errorHandler) {
return this;
}

public Builder withUserExperimentRecord(UserExperimentRecord userExperimentRecord) {
this.userExperimentRecord = userExperimentRecord;
public Builder withUserExperimentRecord(UserProfile userProfile) {
Copy link
Contributor

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() {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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
Copy link
Contributor

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() {
Copy link
Contributor

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() {
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

UserProfile

@vraja2
Copy link
Contributor

vraja2 commented Dec 6, 2016

LGTM

@mikeproeng37 mikeproeng37 merged commit b9c671a into devel Dec 6, 2016
@vraja2 vraja2 deleted the mng/rename-user-profile branch December 6, 2016 21:46
vraja2 pushed a commit that referenced this pull request Dec 9, 2016
vraja2 pushed a commit that referenced this pull request Dec 9, 2016
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