-
Notifications
You must be signed in to change notification settings - Fork 11
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
Config v6 #44
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #44 +/- ##
============================================
+ Coverage 86.13% 87.98% +1.85%
- Complexity 352 782 +430
============================================
Files 28 35 +7
Lines 981 1890 +909
============================================
+ Hits 845 1663 +818
- Misses 136 227 +91 ☔ View full report in Codecov by Sentry. |
d027e39
to
351bd53
Compare
…g + improve config json deserialization error reporting
75b95da
to
f47f104
Compare
106106c
to
fbb09f8
Compare
…orting of RolloutEvaluator
…ng as NumberFormatter requires a PHP extension
…centageOption properties
…nts tests + add related exception object to EvaluationDetails
src/ConfigJson/Config.php
Outdated
* | ||
* @internal | ||
*/ | ||
public static function fixup(array &$config): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer a more descriptive function name here: like for example inlineSaltAndSegments
Quality Gate failedFailed conditions |
Implements config v6 support.
Features/improvements:
config_v6.json
) and update config modelEvaluationDetails.getMatchedTargetingRule
/getMatchedPercentageOption
properties (rename + set combinations correctly)ConfigCatClient.getKeyAndValue
Tests:
EvaluationDetails.getMatchedTargetingRule
/getMatchedPercentageOption
properties (rename + set combinations correctly)Related improvements/fixes:
We should go to the cache in all polling modes instead of using the in memory variable (see https://trello.com/c/rreKm64A)(PHP SDK doesn't support polling modes)Additional fixes:
Additional improvements:
Throwable
object, also expose itEvaluationDetails
via the newgetErrorException
property.Breaking changes:
getError
property togetErrorMessage
inEvaluationDetails
.getMatchedEvaluationRule
property togetMatchedTargetingRule
and thegetMatchedEvaluationPercentageRule
property togetMatchedPercentageOption
inEvaluationDetails
.ConfigCat\Attributes
to theConfigCat\ConfigJson
namespace and update them to support config JSON schema v6.Requirement checklist (only if applicable)