configcat / java-sdk

ConfigCat SDK for Java. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
https://configcat.com/docs/sdk-reference/java
MIT License
20 stars 6 forks source link

Default user #16

Closed novalisdenahi closed 1 year ago

novalisdenahi commented 1 year ago

Describe the purpose of your pull request

Added default user option to ConfigCatClient, default user used when no user passed to getValue , getValue, getAllValues, getVariationId, getAllVariationIds, getValueAsync, getAllValuesAsync, getVariationIdAsync, getAllVariationIdsAsync.

The default user can be set with the client builder defaultUser(User) method or with the setDeafultUser(User). The default user can be clear with the clearDefaultUser() method.

Related issues (only if applicable)

Requirement checklist (only if applicable)

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

codecov[bot] commented 1 year ago

Codecov Report

Base: 79.97% // Head: 80.16% // Increases project coverage by +0.18% :tada:

Coverage data is based on head (7b0261c) compared to base (1dcdc8b). Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head 7b0261c differs from pull request most recent head f59e637. Consider uploading reports for the commit f59e637 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #16 +/- ## ============================================ + Coverage 79.97% 80.16% +0.18% - Complexity 286 290 +4 ============================================ Files 26 26 Lines 839 847 +8 Branches 107 107 ============================================ + Hits 671 679 +8 Misses 123 123 Partials 45 45 ``` | [Impacted Files](https://codecov.io/gh/configcat/java-sdk/pull/16?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=configcat) | Coverage Δ | | |---|---|---| | [src/main/java/com/configcat/ConfigCatClient.java](https://codecov.io/gh/configcat/java-sdk/pull/16/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=configcat#diff-c3JjL21haW4vamF2YS9jb20vY29uZmlnY2F0L0NvbmZpZ0NhdENsaWVudC5qYXZh) | `57.99% <100.00%> (+1.28%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=configcat). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=configcat)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.