-
Notifications
You must be signed in to change notification settings - Fork 4
feat: update to latest common for new methods, major bump #104
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
β¦lingSafe to address naming collision with new base method
@@ -62,13 +60,6 @@ private EppoClient( | |||
banditAssignmentCache); | |||
} | |||
|
|||
/** Stops the client from polling Eppo for updated flag and bandit configurations */ | |||
public static void stopPolling() { |
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.
stopPolling is now a method on the EppoClient instance, so it can't be overridden by a static method.
I do not expect this will be a high friction change for developers, if a change is required at all (fewer devs will use stopPolling
than will use startPolling
).
build.gradle
Outdated
@@ -11,7 +11,7 @@ java { | |||
} | |||
|
|||
group = 'cloud.eppo' | |||
version = '4.0.1-SNAPSHOT' | |||
version = '5.0.0' |
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.
major bump as the static method stopPolling
has been removed.
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.
π Makes sense!
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.
Looks great!
Agree stopPolling()
likely is only used in test environments and whatnot
build.gradle
Outdated
@@ -11,7 +11,7 @@ java { | |||
} | |||
|
|||
group = 'cloud.eppo' | |||
version = '4.0.1-SNAPSHOT' | |||
version = '5.0.0' |
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.
π Makes sense!
@@ -30,7 +30,7 @@ repositories { | |||
} | |||
|
|||
dependencies { | |||
api 'cloud.eppo:sdk-common-jvm:3.6.0' | |||
api 'cloud.eppo:sdk-common-jvm:3.8.0' |
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.
π
@@ -257,6 +263,15 @@ public void testClientMakesDefaultAssignmentsAfterFailingToInitialize() { | |||
} | |||
} | |||
|
|||
@Test | |||
public void testGetConfiguration() { |
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.
πͺ
Configuration configuration = eppoClient.getConfiguration(); | ||
assertNotNull(configuration); | ||
assertNotNull(configuration.getFlag("numeric_flag")); | ||
assertEquals(VariationType.NUMERIC, configuration.getFlagType("numeric_flag")); |
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.
π₯
Eppo Internal
ποΈ Fixes FF-3454
π DD
getConfiguration
startPolling
andstopPolling
as instance methods onEppoClient
Breaking Change
The static method
EppoClient.stopPolling()
has been removed in favour of using the instance methodstopPolling()
.