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

Feature: Day Parting #6668

Closed
wants to merge 2 commits into from
Closed

Feature: Day Parting #6668

wants to merge 2 commits into from

Conversation

yachtcaptain23
Copy link
Contributor

Day Parting, which is described in
bat-native-ads/data/resources/catalog-scheme.json
is now added as a filter rule. Any existing fields with empty parting
will not be filtered.

The major note for server-side devs and reviewers is that the dow
field will store the C++ version of day of week as a string of integers,
where 0 is Sunday and 6 is Saturday. This is done to compress the catalog size
for multiple days using the same time period.

Closes brave/brave-browser#5234

Submitter Checklist:

Test Plan:

Tests added.
Will add test plan soon

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

Copy link
Collaborator

@tmancey tmancey left a comment

Choose a reason for hiding this comment

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

Discussed needed changes with @yachtcaptain23

@yachtcaptain23 yachtcaptain23 force-pushed the feature/day_parting branch 2 times, most recently from bd092b4 to b3873a0 Compare October 8, 2020 23:24
Day Parting, which is described in
bat-native-ads/data/resources/catalog-scheme.json
is now added as a filter rule. Any existing fields with empty parting
will not be filtered.

The major note for server-side devs and reviewers is that the `dow`
field will store the C++ version of day of week as a string of integers,
where 0 is Sunday and 6 is Saturday. This is done to compress the catalog size
for multiple days using the same time period.
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.

Support day-parting for Brave Ads
2 participants