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

fix: missing bandit store for precomputedInit #152

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

sameerank
Copy link
Contributor


labels: mergeable

Fixes: #issue

Motivation and Context

Description

How has this been tested?

@@ -650,6 +651,7 @@ export async function precomputedInit(
precomputedFlagStore: memoryOnlyPrecomputedFlagsStore,
requestParameters,
subject,
precomputedBanditStore: memoryOnlyPrecomputedBanditsStore,
Copy link
Contributor Author

@sameerank sameerank Jan 16, 2025

Choose a reason for hiding this comment

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

We already provide this in offlinePrecomputedInit, but it was missing in precomputedInit where we need to provide an empty store to fill when fetching from the precomputed endpoints

js-client-sdk/src/index.ts

Lines 741 to 745 in 90f6515

EppoPrecomputedJSClient.instance = new EppoPrecomputedJSClient({
precomputedFlagStore: memoryOnlyPrecomputedStore,
precomputedBanditStore: memoryOnlyPrecomputedBanditStore,
subject,
});

@sameerank sameerank merged commit b8f579e into main Jan 16, 2025
8 checks passed
@sameerank sameerank deleted the sameeran/missing-bandit-store-for-precomputed-init branch January 16, 2025 22:30
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