Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

prepare 4.3.0 release #134

Merged
merged 71 commits into from
Aug 27, 2018
Merged

prepare 4.3.0 release #134

merged 71 commits into from
Aug 27, 2018

Conversation

eli-darkly
Copy link
Contributor

[4.3.0] - 2018-08-27

Added:

  • The new LDClient method allFlagsState() should be used instead of allFlags() if you are passing flag data to the front end for use with the JavaScript SDK. It preserves some flag metadata that the front end requires in order to send analytics events correctly. Versions 2.5.0 and above of the JavaScript SDK are able to use this metadata, but the output of allFlagsState() will still work with older versions.
  • The allFlagsState() method also allows you to select only client-side-enabled flags to pass to the front end, by using the option FlagsStateOption.CLIENT_SIDE_ONLY. (#112)
  • The new LDClient methods boolVariationDetail, intVariationDetail, doubleVariationDetail, stringVariationDetail, and jsonVariationDetail allow you to evaluate a feature flag (using the same parameters as you would for boolVariation, etc.) and receive more information about how the value was calculated. This information is returned in an EvaluationDetail object, which contains both the result value and an EvaluationReason which will tell you, for instance, if the user was individually targeted for the flag or was matched by one of the flag's rules, or if the flag returned the default value due to an error.

Fixed:

  • Fixed a bug in LDUser.Builder that would throw an exception if you initialized the builder by copying an existing user, and then tried to add a custom attribute.

Deprecated:

  • LDClient.allFlags()

eli-darkly and others added 30 commits June 28, 2018 15:01
don't give up permanently after a 400 error
add brief Java compatibility note to readme
evaluate with an explanation - initial implementation
stop using deprecated TestFeatureStore in tests
avoid unnecessary retry after Redis update
…vents

include explanations, if requested, in full feature request events
eli-darkly and others added 25 commits August 20, 2018 11:55
…2124/filter-client-side-flags

# Conflicts:
#	src/main/java/com/launchdarkly/client/LDClientInterface.java
…ithout-reasons

add new version of allFlags() that captures more metadata
add error explanation and logging for malformed flags
…e-flags

add ability to filter for only client-side flags
# Conflicts:
#	gradle.properties
#	src/main/java/com/launchdarkly/client/FeatureFlag.java
#	src/main/java/com/launchdarkly/client/LDClient.java
#	src/test/java/com/launchdarkly/client/LDClientEvaluationTest.java
#	src/test/java/com/launchdarkly/client/LDClientOfflineTest.java
# Conflicts:
#	src/main/java/com/launchdarkly/client/FeatureFlagsState.java
#	src/main/java/com/launchdarkly/client/FlagsStateOption.java
#	src/main/java/com/launchdarkly/client/LDClient.java
#	src/main/java/com/launchdarkly/client/LDClientInterface.java
#	src/test/java/com/launchdarkly/client/FeatureFlagsStateTest.java
#	src/test/java/com/launchdarkly/client/LDClientEvaluationTest.java
#	src/test/java/com/launchdarkly/client/LDClientOfflineTest.java
avoid some inappropriate uses of Guava's ImmutableMap
…easons

# Conflicts:
#	src/main/java/com/launchdarkly/client/FeatureFlagsState.java
don't keep evaluating prerequisites if one fails
add tests for JSON serialization of evaluation reasons
…ith-reasons

evaluation reasons can be included in allFlagsState()
@eli-darkly eli-darkly requested a review from arun251 August 25, 2018 01:08
Copy link
Contributor

@arun251 arun251 left a comment

Choose a reason for hiding this comment

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

👍

@eli-darkly eli-darkly merged commit 5f92f7f into master Aug 27, 2018
eli-darkly added a commit that referenced this pull request Aug 2, 2019
add Redis builder options for password, TLS, database
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants