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

Add failing test for reason change #10

Closed
wants to merge 1 commit into from
Closed

Add failing test for reason change #10

wants to merge 1 commit into from

Conversation

edvinerikson
Copy link
Contributor

I just wanted to highlight a behaviour in the SDK that isn't ideal for our use case.

Essentially we rely on the change:<flag-key> event to know when we should run variationDetail to get the latest flag details. However, this event is not triggered when the reason property changes. As such, we can't know if the reason we currently have is the most recent one. I guess we can workaround this by polling variationDetail, but I find that to defeat the purpose of the change event.

@edvinerikson
Copy link
Contributor Author

Perhaps it would be possible to add a new change event change-detail:<flag-key> which contains the data you would get by calling variationDetail? The change:<flag-key> seems tailored to the regular variation api.

@eli-darkly
Copy link
Contributor

I believe I understand the desired use case, and that might be a good idea, but I'm going to close this PR because it isn't actually a pull request for code that can merged into the SDK on its own. Anything that would, if merged, cause the build to fail should not be a PR.

@eli-darkly eli-darkly closed this Feb 5, 2020
LaunchDarklyCI pushed a commit that referenced this pull request Feb 12, 2020
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