Skip to content

refactor(flags): rename flag names to flag keys#3527

Merged
leoromanovsky merged 1 commit into
developfrom
leo.romanovsky/android-flags-flag-key-naming
Jun 10, 2026
Merged

refactor(flags): rename flag names to flag keys#3527
leoromanovsky merged 1 commit into
developfrom
leo.romanovsky/android-flags-flag-key-naming

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Motivation

Feature flag identifiers are keys, not display names. The Android flags implementation already exposes flagKey in the public FlagsClient API, but some internal processor, mapper, and test code still used flagName terminology.

Changes

  • Rename remaining flagName/flagNames identifiers in dd-sdk-android-flags internals to flagKey/flagKeys.
  • Update exposure processor cache-key field naming and precompute mapper locals.
  • Update feature-flags tests, helpers, assertions, and KDoc to use flag key terminology.

Decisions

  • No behavior changes. This is a naming-only cleanup.
  • No public API changes: the public flags API already uses flagKey.
  • Scoped to features/dd-sdk-android-flags; RUM feature flag evaluation APIs and tests still use their existing name/flagName vocabulary and are left untouched in this PR.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.25%. Comparing base (e0d2f78) to head (ad92293).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3527      +/-   ##
===========================================
+ Coverage    72.18%   72.25%   +0.07%     
===========================================
  Files          965      965              
  Lines        35635    35633       -2     
  Branches      5947     5948       +1     
===========================================
+ Hits         25721    25744      +23     
+ Misses        8296     8273      -23     
+ Partials      1618     1616       -2     
Files with missing lines Coverage Δ
...tadog/android/flags/internal/DatadogFlagsClient.kt 90.00% <100.00%> (ø)
.../android/flags/internal/ExposureEventsProcessor.kt 100.00% <100.00%> (ø)
.../flags/internal/repository/net/PrecomputeMapper.kt 97.44% <100.00%> (ø)

... and 35 files with indirect coverage changes

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

@datadog-official

This comment has been minimized.

@leoromanovsky
leoromanovsky marked this pull request as ready for review June 10, 2026 20:32
@leoromanovsky
leoromanovsky requested review from a team as code owners June 10, 2026 20:32
@dd-octo-sts-aad58d

Copy link
Copy Markdown

🐑 PR Shepherd is maintaining this PR

I watch your PR and automatically fix CI failures, rebase your branch, handle flaky tests, and push it to the merge queue when it's ready.

More about what I do → Guide

To pause me on this PR, add the flow-skip label.

@leoromanovsky
leoromanovsky requested a review from typotter June 10, 2026 20:32
@leoromanovsky
leoromanovsky merged commit 8b031cb into develop Jun 10, 2026
28 checks passed
@leoromanovsky
leoromanovsky deleted the leo.romanovsky/android-flags-flag-key-naming branch June 10, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants