-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUMM-2423 Add the Sesion Replay MASK_ALL/ALLOW_ALL privacy strategies #1035
RUMM-2423 Add the Sesion Replay MASK_ALL/ALLOW_ALL privacy strategies #1035
Conversation
4efca7e
to
51760c2
Compare
ALLOW_ALL, | ||
|
||
/** | ||
* Masks all the elements. All the characters in texts will be replaced by X, images will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a native speaker, but can we use plural form texts
here? @fuzzybinary can you check?
) : TextWireframeMapper(viewWireframeMapper) { | ||
|
||
override fun resolveTextValue(textView: TextView): String { | ||
return String(CharArray(textView.text.length) { CHARACTER_MASK }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: should we keep spaces at least as is? how browser SR does when applying this mask?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure we can do this as it will affect layout. It is kind of a wait and see situations. After some tests on different apps probably we will apply some adjustments.
right = this.totalPaddingEnd.densityNormalized(pixelsDensity).toLong() | ||
top = textView.totalPaddingTop.densityNormalized(pixelsDensity).toLong(), | ||
bottom = textView.totalPaddingBottom.densityNormalized(pixelsDensity).toLong(), | ||
left = textView.totalPaddingStart.densityNormalized(pixelsDensity).toLong(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't we have any issues with RTL layout where start is on the right? How SR handles RTL btw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not there yet ;)
@ParameterizedTest | ||
@MethodSource("textTypefaces") | ||
fun `M resolve a TextWireframe W map() { TextView with fontStyle }`( | ||
typeface: Typeface, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: let's rename to fakeTypeface
for the consistency and avoid a possible confusion when this
is not specified explicitly.
51760c2
to
539775c
Compare
Codecov Report
@@ Coverage Diff @@
## feature/session-replay-vo #1035 +/- ##
=============================================================
+ Coverage 83.22% 83.32% +0.10%
=============================================================
Files 323 327 +4
Lines 10424 10454 +30
Branches 1734 1737 +3
=============================================================
+ Hits 8675 8710 +35
+ Misses 1210 1208 -2
+ Partials 539 536 -3
|
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)