Skip to content

[RUM-11290][FO]: Dropping events with blank operation name or key#2835

Merged
satween merged 1 commit into
feature/featureoperationsfrom
tvaleev/feature/RUM-11290-user-input-sanitization
Aug 25, 2025
Merged

[RUM-11290][FO]: Dropping events with blank operation name or key#2835
satween merged 1 commit into
feature/featureoperationsfrom
tvaleev/feature/RUM-11290-user-input-sanitization

Conversation

@satween

@satween satween commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds validation logic for the feature operation event with blank name or operationKey parameter

Motivation

Blank input should be dropped according to RFC as invalid - there is no sense to send event with blank name/ operationKey. Such parameters hard to filter on the platform and in most cases they indicates error in user input .

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)

@satween
satween force-pushed the tvaleev/feature/RUM-11290-user-input-sanitization branch from f794f59 to 6781d12 Compare August 25, 2025 15:21
…erations arguments. Blank values will lead to dropping events
@satween
satween force-pushed the tvaleev/feature/RUM-11290-user-input-sanitization branch from 6781d12 to f616af3 Compare August 25, 2025 15:21
@satween
satween requested a review from 0xnm August 25, 2025 15:21
@codecov-commenter

codecov-commenter commented Aug 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.03%. Comparing base (a46b8f7) to head (f616af3).
⚠️ Report is 390 commits behind head on feature/featureoperations.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/featureoperations    #2835      +/-   ##
=============================================================
- Coverage                      70.10%   70.03%   -0.07%     
=============================================================
  Files                            835      835              
  Lines                          31462    31475      +13     
  Branches                        5279     5284       +5     
=============================================================
- Hits                           22056    22042      -14     
- Misses                          7926     7943      +17     
- Partials                        1480     1490      +10     
Files with missing lines Coverage Δ
.../android/rum/internal/monitor/DatadogRumMonitor.kt 87.17% <100.00%> (+0.19%) ⬆️

... 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.

@satween
satween merged commit 377bfb6 into feature/featureoperations Aug 25, 2025
24 checks passed
@satween
satween deleted the tvaleev/feature/RUM-11290-user-input-sanitization branch August 25, 2025 16:56
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