Skip to content

[Flags/openfeature] Add openfeature type conversion utilities#3103

Merged
dd-mergequeue[bot] merged 12 commits into
feature/flags-ofeatfrom
typo/flags-data-objects-type-conversions
Jan 7, 2026
Merged

[Flags/openfeature] Add openfeature type conversion utilities#3103
dd-mergequeue[bot] merged 12 commits into
feature/flags-ofeatfrom
typo/flags-data-objects-type-conversions

Conversation

@typotter

@typotter typotter commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the complete type conversion layer for structured flags and OpenFeature integration, including JSON-to-Map utilities and OpenFeature Value converters.

Context

In order to break #2998 down a bit into mergeable chunks, this PR contains the type conversion logic

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@typotter
typotter requested a review from a team as a code owner January 5, 2026 22:09
@typotter
typotter marked this pull request as draft January 5, 2026 22:14
@typotter
typotter force-pushed the typo/flags-data-objects-type-conversions branch from e4ea34a to edb9980 Compare January 5, 2026 22:24
@typotter typotter changed the title feat: Add data objects and type conversion utilities feat: [Flags/openfeature] Add data objects and type conversion utilities Jan 5, 2026
@typotter
typotter changed the base branch from feature/flags-ofeat to typo/FFL-1675-sdk-android-support-global January 6, 2026 07:12
@typotter
typotter force-pushed the typo/flags-data-objects-type-conversions branch from 97a31fb to c506ec5 Compare January 6, 2026 07:19
@typotter
typotter force-pushed the typo/FFL-1675-sdk-android-support-global branch from 33caa77 to 707ac12 Compare January 6, 2026 07:28
@typotter
typotter changed the base branch from typo/FFL-1675-sdk-android-support-global to feature/flags-ofeat January 6, 2026 07:31
@typotter
typotter force-pushed the typo/flags-data-objects-type-conversions branch from d3c25eb to 3319899 Compare January 6, 2026 07:45
@typotter
typotter force-pushed the typo/flags-data-objects-type-conversions branch from 3319899 to 14ad1cb Compare January 6, 2026 07:45
@typotter
typotter marked this pull request as ready for review January 6, 2026 07:49
Comment thread detekt_custom_safe_calls.yml
// region convertMapToValue

@Test
fun `M convert empty Map W convertMapToValue(, mockInternalLogger) {empty map}`() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

unexpected comma after the opening bracket here and below as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread detekt_custom_safe_calls.yml Outdated
@typotter
typotter requested review from 0xnm and jonathanmos January 6, 2026 17:49
@typotter typotter changed the title feat: [Flags/openfeature] Add data objects and type conversion utilities [Flags/openfeature] Add openfeature type conversion utilities Jan 6, 2026
0xnm
0xnm previously approved these changes Jan 7, 2026
0xnm
0xnm previously approved these changes Jan 7, 2026
@typotter

typotter commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Jan 7, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-01-07 15:54:29 UTC ℹ️ Start processing command /merge


2026-01-07 15:54:54 UTC ℹ️ MergeQueue: waiting for PR to be ready

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.
It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-01-07 19:55:12 UTC ⚠️ MergeQueue: This merge request was unqueued

devflow unqueued this merge request: It did not become mergeable within the expected time

@datadog-official

datadog-official Bot commented Jan 7, 2026

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 57.83%
Overall Coverage: 65.88% (+0.06%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e1bc541 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@typotter

typotter commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Jan 7, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-01-07 20:34:15 UTC ℹ️ Start processing command /merge


2026-01-07 20:34:20 UTC ℹ️ MergeQueue: waiting for PR to be ready

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.
It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-01-07 21:26:26 UTC ℹ️ MergeQueue: merge request added to the queue

The expected merge time in feature/flags-ofeat is approximately 1h (p90).


2026-01-07 22:31:26 UTC ℹ️ MergeQueue: This merge request was merged

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.74%. Comparing base (3099ab5) to head (e1bc541).

Files with missing lines Patch % Lines
.../flags/openfeature/internal/adapters/Converters.kt 55.56% 7 Missing and 1 partial ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           feature/flags-ofeat    #3103      +/-   ##
=======================================================
+ Coverage                70.70%   70.74%   +0.04%     
=======================================================
  Files                      895      897       +2     
  Lines                    33030    33074      +44     
  Branches                  5562     5578      +16     
=======================================================
+ Hits                     23352    23397      +45     
- Misses                    8111     8116       +5     
+ Partials                  1567     1561       -6     
Files with missing lines Coverage Δ
...s/openfeature/internal/adapters/ValueConverters.kt 100.00% <100.00%> (ø)
.../flags/openfeature/internal/adapters/Converters.kt 55.56% <55.56%> (ø)

... and 43 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dd-mergequeue
dd-mergequeue Bot merged commit a480f11 into feature/flags-ofeat Jan 7, 2026
27 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the typo/flags-data-objects-type-conversions branch January 7, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants