8000 [⏳] NT-890 Syncing Optimizely every 10 minutes by eoji · Pull Request #752 · kickstarter/android-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[⏳] NT-890 Syncing Optimizely every 10 minutes #752

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 2 commits into from
Feb 18, 2020
Merged

[⏳] NT-890 Syncing Optimizely every 10 minutes #752

merged 2 commits into from
Feb 18, 2020

Conversation

eoji
Copy link
Contributor
@eoji eoji commented Feb 18, 2020

📲 What

Adding datafile and event dispatch intervals to Optimizely.

🤔 Why

So we get the latest data file and events dispatched every 10 minutes.

🛠 How

Added datafile and event dispatch intervals to Optimizely client with a value of 10 minutes per example: https://docs.developers.optimizely.com/full-stack/docs/initialize-sdk-android#section-example

👀 See

Nothing 2 c

📋 QA

Change your variant and wait...10 minutes.

Story 📖

NT-890

@@ -649,6 +650,8 @@ ExperimentsClientType provideOptimizely(final @ApplicationContext @NonNull Conte

final OptimizelyManager optimizelyManager = OptimizelyManager.builder()
.withSDKKey(optimizelyKey)
.withEventDispatchInterval(60L * 10L)

Choose a reason for hiding this comment

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

What's the default event dispatch interval? 10 minutes seems high, I'd imagine we want to dispatch events fairly frequently?

Copy link
Contributor Author
@eoji eoji Feb 18, 2020

Choose a reason for hiding this comment

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

it's -1 lol

        // -1 will cause the background download to not be initiated.
        private long datafileDownloadInterval = -1L;
        // -1 will cause the background download to not be initiated.
        private long eventDispatchInterval = -1L;

@eoji eoji merged commit 8b09a0d into master Feb 18, 2020
@eoji eoji deleted the NT-890 branch February 18, 2020 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0