Repository navigation
fix(flagsmith)!: upgrade Java client to 8.1.1 - #1880
AllanAlmeida wants to merge 2 commits into
Conversation
Signed-off-by: AllanAlmeida <allan.almeida.cpmb@gmail.com>
32b5976 to
3c83833
Compare
|
Hi @matthewelwell @ajhelsby, just a quick follow-up on this PR when you have a chance. The Flagsmith provider module is passing locally, and the PR is currently waiting for review/CI approval from the fork. Thanks! |
|
Hi @toddbaert, would you mind taking a look at this PR when you have a chance? It has been waiting for review/CI approval for a few weeks. The Flagsmith component owners were already requested, and the provider module is passing locally. Thanks! |
khvn26
left a comment
There was a problem hiding this comment.
Thanks for the contribution @AllanAlmeida!
Can we:
- Change the PR title to:
fix(flagsmith)!: upgrade Java client to 8.1.1
Add the following to PR description / changelog:
### Breaking changes
Upgrading `flagsmith-java-client` from 7.x to 8.x changes local evaluation results. Remote evaluation is unaffected.
- Multivariate values keep their JSON type. Variant values used to be coerced to strings. They now resolve as their native type. Callers that read these flags with `getStringValue` will get the default value with `TYPE_MISMATCH`. Use the matching typed getter instead (`getBooleanValue`, `getIntegerValue`, etc.).
- Multivariate segment overrides are now evaluated. They used to be ignored, so some identities will get different variants.
- Percentage splits skip identities missing the split trait. Identities without the trait no longer match `PERCENTAGE_SPLIT` segments.
|
Thanks for the review, @khvn26! I've updated the PR title and added the exact breaking changes section you provided. The previous CI run expired while awaiting approval; no test jobs ran. I can close and reopen the PR to trigger a fresh run. Could you approve the workflow once it's pending and take another look at the updated PR? Thank you! |
Resolve the Flagsmith POM conflict by retaining the PR's OkHttp JVM and MockWebServer 5.0.0 alignment with Flagsmith 8.1.1.
Summary
flagsmith-java-clientfrom 7.4.3 to 8.1.1.$.identity.identifierfor matching and nonmatching identities.Breaking changes
Upgrading
flagsmith-java-clientfrom 7.x to 8.x changes local evaluation results. Remote evaluation is unaffected.getStringValuewill get the default value withTYPE_MISMATCH. Use the matching typed getter instead (getBooleanValue,getIntegerValue, etc.).PERCENTAGE_SPLITsegments.Validation
./mvnw -B -ntp -pl providers/flagsmith verifywith JDK 21: 36 tests passed; Checkstyle, PMD, SpotBugs, and Spotless passed../mvnw -B -ntp -pl providers/flagsmith dependency:tree -Dincludes=com.squareup.okhttp3: only OkHttp 5 artifacts are resolved.Closes #1816.