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

feat: Initial Configuration #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: Initial Configuration #79

wants to merge 3 commits into from

Conversation

typotter
Copy link
Collaborator

@typotter typotter commented Sep 17, 2024

Picks up latest from common package.

@@ -31,7 +31,7 @@ repositories {

dependencies {
// Re-export classes and interfaces that will be used upstream
api 'cloud.eppo:sdk-common-jvm:3.0.2'
api 'cloud.eppo:sdk-common-jvm:3.2.0-SNAPSHOT'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using snapshot until release is cut/pushed

@@ -276,7 +276,7 @@ private void uninitClient() {
private void initBuggyClient() {
try {
EppoClient eppoClient = initClient(DUMMY_FLAG_API_KEY);
Field configurationStoreField = BaseEppoClient.class.getDeclaredField("requestor");
Field configurationStoreField = BaseEppoClient.class.getDeclaredField("configurationStore");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

base implementation changed to access config only through the store.

@typotter typotter changed the title Pick up latest from common package feat: Initial Configuration Sep 25, 2024
@typotter typotter marked this pull request as ready for review September 25, 2024 15:24
Copy link
Collaborator

@aarsilv aarsilv left a comment

Choose a reason for hiding this comment

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

Thanks for sneaking this one in!

@@ -125,6 +139,12 @@ public Builder host(String host) {
return this;
}

/** Sets the initial configuration for the client. */
public Builder initialConfiguration(CompletableFuture<Configuration> initialConfiguration) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥

@aarsilv
Copy link
Collaborator

aarsilv commented Sep 26, 2024

Obviously don't merge & release until common is published and tests pass here 😛

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.

3 participants