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

Pixels automatic naming prefixing fixed #810

Merged
merged 6 commits into from
May 8, 2024

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented May 7, 2024

Task/Issue URL: https://app.asana.com/0/1201037661562251/1207238594885159/f
iOS PR: -
macOS PR: https://github.com/duckduckgo/macos-browser/pull/2751
CC: @ayoy @loremattei @diegoreymendez

What kind of version bump will this require?: Patch: 144.0.1

Description

This PR contains few improvements:

  • Added a check on every Pixel name, if the name contains a . an assertionError is fired (in Debug)
  • Added a special pixel event called NonStandardEvent for those legacy Pixels non following the new PixelKit naming conventions, these kinds of pixels will maintain the name without automatic alterations.
  • New unit tests for covering the new event type and Debug event

Internal references:

Software Engineering Expectations
Technical Design Template

@federicocappelli federicocappelli requested a review from ayoy May 7, 2024 22:29
@@ -0,0 +1,92 @@
//
// DebugEvent.swift
Copy link
Member Author

Choose a reason for hiding this comment

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

Just moved in its own file

Copy link
Contributor

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM 👏

@federicocappelli federicocappelli merged commit f34b0a6 into main May 8, 2024
7 checks passed
@federicocappelli federicocappelli deleted the fcappelli/pixelkit_invalid_name_fix branch May 8, 2024 07:57
samsymons added a commit that referenced this pull request May 10, 2024
* main:
  Enable gzip compression for Sync PATCH payloads (#803)
  autofill: send current language in runtime config (#808)
  Password manager survey update (#811)
  on iOS allow bookmarks in top hits (#812)
  Rename tests to avoid conflicts (#813)
  Bat.js fix (fix for installing content blocking rules multiple times) (#779)
  Pixels automatic naming prefixing fixed (#810)
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.

None yet

2 participants