Skip to content

RUM-10348: Remove feature name argument from APIs to set/remove feature context update listener#2729

Merged
0xnm merged 1 commit into
nogorodnikov/rum-8170/feature-context-syncfrom
nogorodnikov/rum-10348/remove-feature-name-argument-from-add-remove-featurecontextupdate-receiver
Jun 16, 2025
Merged

RUM-10348: Remove feature name argument from APIs to set/remove feature context update listener#2729
0xnm merged 1 commit into
nogorodnikov/rum-8170/feature-context-syncfrom
nogorodnikov/rum-10348/remove-feature-name-argument-from-add-remove-featurecontextupdate-receiver

Conversation

@0xnm

@0xnm 0xnm commented Jun 13, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR removes featureName argument from FeatureSdkCore.setFeatureContextUpdateReceiver and FeatureSdkCore.removeFeatureContextUpdateReceiver APIs, because it is not needed anymore after feature context handling is reworked.

FeatureContextUpdateReceiver type is broadcast type anyway.

Note: there is some inconsistency in the receiver vs listener usage and setFeatureContextUpdateReceiver API instead of addFeatureContextUpdateReceiver API when there is removeFeatureContextUpdateReceiver API, but changing this is not a point of this change.

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)

@0xnm
0xnm requested review from a team as code owners June 13, 2025 15:42
@codecov-commenter

codecov-commenter commented Jun 13, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.83%. Comparing base (7b83fcd) to head (c382035).
⚠️ Report is 52 commits behind head on nogorodnikov/rum-8170/feature-context-sync.

Additional details and impacted files
@@                              Coverage Diff                               @@
##           nogorodnikov/rum-8170/feature-context-sync    #2729      +/-   ##
==============================================================================
- Coverage                                       69.87%   69.83%   -0.05%     
==============================================================================
  Files                                             824      824              
  Lines                                           30947    30934      -13     
  Branches                                         5190     5188       -2     
==============================================================================
- Hits                                            21624    21600      -24     
+ Misses                                           7859     7855       -4     
- Partials                                         1464     1479      +15     
Files with missing lines Coverage Δ
.../com/datadog/android/api/feature/FeatureSdkCore.kt 50.00% <ø> (ø)
...n/com/datadog/android/core/internal/DatadogCore.kt 77.18% <100.00%> (+0.41%) ⬆️
...tadog/android/core/internal/NoOpInternalSdkCore.kt 8.54% <ø> (ø)
...in/com/datadog/android/core/internal/SdkFeature.kt 93.72% <ø> (+1.90%) ⬆️
...lin/com/datadog/android/rum/internal/RumFeature.kt 92.18% <100.00%> (-0.28%) ⬇️
...android/rum/internal/vitals/VitalReaderRunnable.kt 95.00% <100.00%> (ø)
...oid/sessionreplay/internal/SessionReplayFeature.kt 98.26% <100.00%> (-0.58%) ⬇️
...replay/internal/SessionReplayRumContextProvider.kt 90.91% <100.00%> (ø)
.../android/webview/internal/rum/WebViewRumFeature.kt 100.00% <100.00%> (ø)

... and 39 files with indirect coverage changes

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

Base automatically changed from nogorodnikov/rum-10347/avoid-polling-for-rumcontext-in-vital-runnable to nogorodnikov/rum-8170/feature-context-sync June 16, 2025 16:43
@0xnm
0xnm merged commit 1b90579 into nogorodnikov/rum-8170/feature-context-sync Jun 16, 2025
24 of 25 checks passed
@0xnm
0xnm deleted the nogorodnikov/rum-10348/remove-feature-name-argument-from-add-remove-featurecontextupdate-receiver branch June 16, 2025 16:43
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