[Flags] feat: Add Openfeature Flags to test app.#3130
Conversation
|
🎯 Code Coverage 🔗 Commit SHA: 8f5ccaf | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/flags-ofeat #3130 +/- ##
=======================================================
- Coverage 70.87% 70.86% -0.01%
=======================================================
Files 899 899
Lines 33138 33138
Branches 5592 5592
=======================================================
- Hits 23485 23483 -2
+ Misses 8091 8089 -2
- Partials 1562 1566 +4 🚀 New features to boost your workflow:
|
91c7644 to
2b93324
Compare
|
|
||
| // Set evaluation context on OpenFeatureAPI (provider forwards to FlagsClient) | ||
| val preferences = Preferences.defaultPreferences(this) | ||
| val userId = preferences.getUserId() ?: "anonymous-${System.currentTimeMillis()}" |
There was a problem hiding this comment.
On a scale anonymous-${System.currentTimeMillis()} would lead to the two different users having a same ID in case this was called the same timestamp.
So maybe it is better just to use UUID.
There was a problem hiding this comment.
Agreed. Changed to uuid and added some more explanatory comments for developers
| if (BuildConfig.DD_OVERRIDE_RUM_URL.isNotBlank()) { | ||
| useCustomEndpoint(BuildConfig.DD_OVERRIDE_RUM_URL) | ||
| } | ||
| private fun createRumConfiguration(): RumConfiguration = RumConfiguration.Builder(BuildConfig.DD_RUM_APPLICATION_ID) |
There was a problem hiding this comment.
nit: seems like it is unnecessary change
…/OpenFeatureFragment.kt Co-authored-by: Nikita Ogorodnikov <[email protected]>
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
This PR is rejected because it was updated |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
[email protected] cancelled this merge request build |
|
/merge --cancel |
|
View all feedbacks in Devflow UI.
|
|
thanks, and sorry @0xnm |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
devflow unqueued this merge request: It did not become mergeable within the expected time |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
|
What does this PR do?
This PR adds a screen for the OpenFeature Flagging Feature
Motivation
Allows testing and verification of the module.
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)