Skip to content
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

Adding pixels for tracking content blocking rules fetch/lookup #3589

Merged
merged 6 commits into from
Nov 27, 2024

Conversation

studiosutara
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1208613456171888/1208801514911204/f
Tech Design URL: https://app.asana.com/0/1208613456171888/1208730499188670/f
CC:

Description:

Optional E2E tests:

  • Run PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Steps to test this PR:
1.

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@studiosutara studiosutara force-pushed the smodi/content_blocking_lookup_time_tracking branch 3 times, most recently from 3ecfc39 to 26c95a2 Compare November 25, 2024 19:35
case .contentBlockingNoMatchInLRC:
return "m_content_blocking_no_match_in_lrc"
case .contentBlockingLRCMissing:
return "m_content_blocking_lrc_missing"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be prefixing these with 'm' on macOS, as it gets populated automatically.

Copy link
Collaborator

@bwaresiak bwaresiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@studiosutara studiosutara force-pushed the smodi/content_blocking_lookup_time_tracking branch from 204bcce to 6a61961 Compare November 26, 2024 22:16
@studiosutara studiosutara force-pushed the smodi/content_blocking_lookup_time_tracking branch from 6a61961 to 2809a99 Compare November 27, 2024 16:35
studiosutara added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Nov 27, 2024
<!--
Note: This checklist is a reminder of our shared engineering
expectations.
-->

Please review the release process for BrowserServicesKit
[here](https://app.asana.com/0/1200194497630846/1200837094583426).

**Required**:

Task/Issue URL:
https://app.asana.com/0/1208613456171888/1208801514911204/f
iOS PR: duckduckgo/iOS#3597
macOS PR: duckduckgo/macos-browser#3589
What kind of version bump will this require?: Major

**Optional**:

Tech Design URL:
CC: https://app.asana.com/0/1208613456171888/1208730499188670/f

**Description**:

<!--
Tagging instructions
If this PR isn't ready to be merged for whatever reason it should be
marked with the `DO NOT MERGE` label (particularly if it's a draft)
If it's pending Product Review/PFR, please add the `Pending Product
Review` label.

If at any point it isn't actively being worked on/ready for
review/otherwise moving forward (besides the above PR/PFR exception)
strongly consider closing it (or not opening it in the first place). If
you decide not to close it, make sure it's labelled to make it clear the
PRs state and comment with more information.
-->

**Steps to test this PR**:
1. On first app startup - make sure that lookup rules succeeded and and fetch last compiled rules succeeded pixels are not being fired
2. On subsequent startup - make sure that lookup succeeded pixel is fired when there are not changes to the rules
Refer to the TD linked above for more details

<!--
Before submitting a PR, please ensure you have tested the combinations
you expect the reviewer to test, then delete configurations you *know*
do not need explicit testing.

Using a simulator where a physical device is unavailable is acceptable.
-->

**OS Testing**:

* [ ] iOS 14
* [ ] iOS 15
* [ ] iOS 16
* [ ] macOS 10.15
* [ ] macOS 11
* [ ] macOS 12

---
###### Internal references:
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)

---------

Co-authored-by: Bartek Waresiak <[email protected]>
@studiosutara studiosutara merged commit fb6f424 into main Nov 27, 2024
16 of 20 checks passed
@studiosutara studiosutara deleted the smodi/content_blocking_lookup_time_tracking branch November 27, 2024 20:46
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.

2 participants