Skip to content

Refact: Copying attributes into new copiedAttributes variable #227

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 9 commits into from
Nov 7, 2018

Conversation

mnoman09
Copy link
Contributor

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 694

  • 16 of 18 (88.89%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 89.206%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core-api/src/main/java/com/optimizely/ab/Optimizely.java 16 18 88.89%
Totals Coverage Status
Change from base Build 691: 0.007%
Covered Lines: 2504
Relevant Lines: 2807

💛 - Coveralls

@coveralls
Copy link

coveralls commented Oct 11, 2018

Pull Request Test Coverage Report for Build 750

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 88.681%

Totals Coverage Status
Change from base Build 749: 0.004%
Covered Lines: 2648
Relevant Lines: 2986

💛 - Coveralls

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Is there any reason we don't perform the copy inside of the filterAttributes methods? That way we don't have to be calling two methods all over the place. Maybe the naming could change, @thomaszurkan-optimizely any thoughts?

@@ -818,6 +827,20 @@ public UserProfileService getUserProfileService() {

//======== Helper methods ========//

/**
* Helper function to check that the provided attributes are null if not than it returns a copy
Copy link
Contributor

Choose a reason for hiding this comment

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

This description is wrong =)

Copy link
Contributor

@thomaszurkan-optimizely thomaszurkan-optimizely left a comment

Choose a reason for hiding this comment

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

LGTM

@thomaszurkan-optimizely thomaszurkan-optimizely merged commit f42e3ad into master Nov 7, 2018
@thomaszurkan-optimizely thomaszurkan-optimizely deleted the mnoman/Copyingattributes branch November 7, 2018 17:51
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.

4 participants