Skip to content

RUM-5763: Add TouchPrivacy to Session Replay#2196

Merged
jonathanmos merged 1 commit into
feature/fine-grained-maskingfrom
jmoskovich/rum-5763/touch-privacy
Sep 2, 2024
Merged

RUM-5763: Add TouchPrivacy to Session Replay#2196
jonathanmos merged 1 commit into
feature/fine-grained-maskingfrom
jmoskovich/rum-5763/touch-privacy

Conversation

@jonathanmos

@jonathanmos jonathanmos commented Aug 15, 2024

Copy link
Copy Markdown
Member

What does this PR do?

Adds a public TouchPrivacy api

Possible values for touch:
SHOW - record all touch interactions
HIDE - do not record touch interactions

Default value will be HIDE.

Usage example:

SessionReplayConfiguration.Builder() 
  .setTouchPrivacy(TouchPrivacy.SHOW)

Note: At the moment this will not hide the change in a button background that occurs as a result of a click (or other view hierarchy side effects).

Motivation

Part of the move to fine grained privacy options.

Additional Notes

Anything else we should know when reviewing?

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)

@jonathanmos jonathanmos changed the title Rum-5763: Add TouchPrivacy Rum-5763: Add TouchPrivacy to Session Replay Aug 15, 2024
@jonathanmos jonathanmos changed the title Rum-5763: Add TouchPrivacy to Session Replay RUM-5763: Add TouchPrivacy to Session Replay Aug 15, 2024
@codecov-commenter

codecov-commenter commented Aug 15, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.01%. Comparing base (0b04b79) to head (52c56c2).
Report is 2 commits behind head on feature/fine-grained-masking.

Additional details and impacted files
@@                       Coverage Diff                        @@
##           feature/fine-grained-masking    #2196      +/-   ##
================================================================
+ Coverage                         69.94%   70.01%   +0.07%     
================================================================
  Files                               726      727       +1     
  Lines                             27026    27015      -11     
  Branches                           4543     4535       -8     
================================================================
+ Hits                              18902    18912      +10     
+ Misses                             6842     6834       -8     
+ Partials                           1282     1269      -13     
Files with missing lines Coverage Δ
...com/datadog/android/sessionreplay/SessionReplay.kt 50.00% <100.00%> (+2.38%) ⬆️
...ndroid/sessionreplay/SessionReplayConfiguration.kt 100.00% <100.00%> (ø)
.../com/datadog/android/sessionreplay/TouchPrivacy.kt 100.00% <100.00%> (ø)
.../sessionreplay/internal/DefaultRecorderProvider.kt 93.44% <100.00%> (+0.11%) ⬆️
...oid/sessionreplay/internal/SessionReplayFeature.kt 98.69% <100.00%> (+0.03%) ⬆️
...nreplay/internal/recorder/SessionReplayRecorder.kt 96.90% <100.00%> (+0.07%) ⬆️
...lay/internal/recorder/WindowCallbackInterceptor.kt 100.00% <100.00%> (ø)
...ternal/recorder/callback/RecorderWindowCallback.kt 91.67% <100.00%> (+0.20%) ⬆️

... and 26 files with indirect coverage changes

@jonathanmos
jonathanmos marked this pull request as ready for review August 15, 2024 14:07
@jonathanmos
jonathanmos requested review from a team as code owners August 15, 2024 14:07
@jonathanmos
jonathanmos changed the base branch from develop to feature/fine-grained-masking August 19, 2024 09:06
@jonathanmos
jonathanmos force-pushed the jmoskovich/rum-5763/touch-privacy branch from 6837edc to 79a1010 Compare August 19, 2024 11:31
mariusc83
mariusc83 previously approved these changes Aug 20, 2024

@mariusc83 mariusc83 left a comment

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.

LGTM

@jonathanmos
jonathanmos force-pushed the jmoskovich/rum-5763/touch-privacy branch 2 times, most recently from 5a85ca9 to 4136c1f Compare August 20, 2024 11:06
@jonathanmos
jonathanmos force-pushed the jmoskovich/rum-5763/touch-privacy branch from 4136c1f to 52c56c2 Compare August 22, 2024 07:23

@ambushwork ambushwork left a comment

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.

LGTM!

@jonathanmos
jonathanmos merged commit dc4224a into feature/fine-grained-masking Sep 2, 2024
@jonathanmos
jonathanmos deleted the jmoskovich/rum-5763/touch-privacy branch September 2, 2024 08:29
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.

5 participants