-
Notifications
You must be signed in to change notification settings - Fork 35
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
Tracking pixels for content blocking fetch and lookup #1084
Tracking pixels for content blocking fetch and lookup #1084
Conversation
258f999
to
0961198
Compare
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.
Great job, I've added one comment around a comment that probably was not intended there. :)
I think we also should be looking at how the event you've added are fired for ContentBlockerRulesManagerInitialCompilationTests
can you add that please?
@@ -377,6 +388,9 @@ public class ContentBlockerRulesManager: CompiledRuleListsSource { | |||
unprotectedSitesHash: nil)) | |||
} | |||
|
|||
// if task is main tds task, extract time and iteration count from the result and fire the pixel | |||
// can result be a struct? can we add fields to compliatiotask instead? | |||
// can we sen dpixels from compialtion task? |
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 think this is not an intended change :)
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.
Done
XCTAssertEqual(mockLastCompiledRulesStore.rules.first?.name, mockRulesSource.ruleListName) | ||
XCTAssertEqual(mockLastCompiledRulesStore.rules.first?.trackerData, mockRulesSource.trackerData?.tds) | ||
XCTAssertEqual(mockLastCompiledRulesStore.rules.first?.identifier, newIdentifier) | ||
if expRecompiled.currentFulfillmentCount == 1 { // finished compilation after cold start (using last compiled rules) |
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.
This was not needed for my work, but I noticed that code wasn’t getting called. I moved it up into the block. Please check that this is correct.
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.
Great job!
be2cbbb
to
0f82487
Compare
Please review the release process for BrowserServicesKit here.
Required:
Task/Issue URL: https://app.asana.com/0/1208613456171888/1208801514911204/f
iOS PR: duckduckgo/iOS#3597
macOS PR:
What kind of version bump will this require?: Major/Minor/Patch
Optional:
Tech Design URL:
CC:
Description:
Steps to test this PR:
1.
1.
OS Testing:
Internal references:
Software Engineering Expectations
Technical Design Template