chore: Sensitive data refactor part 1#2886
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset (and the release label) is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
| * @returns {boolean} whether the element should be captured | ||
| * @returns {boolean} whether the element is marked as no-capture | ||
| */ | ||
| export function shouldCaptureElement(el: Element): boolean { |
There was a problem hiding this comment.
moved to doesCaptureElementHaveSensitiveData in sensitive-data-detection.ts
| * @param {Element} el - element to check | ||
| * @returns {boolean} whether the element should be captured | ||
| */ | ||
| export function isSensitiveElement(el: Element): boolean { |
There was a problem hiding this comment.
moved to isSensitiveElement in sensitive-data-detection.ts
|
Size Change: +1.15 kB (+0.02%) Total Size: 5.75 MB
ℹ️ View Unchanged
|
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
|
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
Problem
Building off #2647 and the feedback at https://posthog.slack.com/archives/C075D3C5HST/p1764603130371689.
Changes
This is part 1 of a refactor of how we handle sensitive data.
It's basically a refactor with (hopefully!) no behavior changes. In summary it:
To be followed by two more PRs for part 2 and 3 of the refactor!
Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file