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

chore: add variation name property to BKTEvaluation #12

Merged
merged 3 commits into from
Jul 3, 2023

Conversation

cre8ivejp
Copy link
Member

@cre8ivejp cre8ivejp commented Jun 29, 2023

Things done.

  • Removed the deprecated Variation object
  • Added the variation name to the BKTEvaluation object
  • Updated e2e tests

let reason: Reason
var variationValue: String
Copy link
Member Author

Choose a reason for hiding this comment

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

Because of unit tests, this var was mutable. I changed the tests so we can make it immutable.

@@ -42,8 +42,9 @@ final class BucketeerE2ETests: XCTestCase {
assertEvaluation(actual: actual, expected: .init(
id: "feature-ios-e2e-string:2:bucketeer-ios-user-id-1",
featureId: FEATURE_ID_STRING,
featureVersion: 2,
featureVersion: 3,
Copy link
Member Author

@cre8ivejp cre8ivejp Jun 29, 2023

Choose a reason for hiding this comment

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

Because I added the variation name on the console UI, it increased the feature version.
Same for the other e2e tests.

@cre8ivejp cre8ivejp merged commit fb02f5a into main Jul 3, 2023
@cre8ivejp cre8ivejp deleted the chore-evaluation branch July 3, 2023 07:06
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.

1 participant