-
Notifications
You must be signed in to change notification settings - Fork 31
Split m.mac.fire.window.configuration.daily into individual pixels by parameter #2213
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
Splits the previous aggregated fire window configuration daily pixel into three distinct pixels, each representing a specific configuration flag, removing parameterized payloads in favor of explicit pixel name variants.
- Replaces single dailyFireWindowConfiguration pixel with three dedicated enum cases.
- Adjusts AppDelegate to fire three separate daily pixels instead of one aggregated pixel with parameters.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
macOS/DuckDuckGo/Statistics/GeneralPixel.swift | Replaced aggregated enum case and dynamic params with three discrete pixel cases and name generation logic. |
macOS/DuckDuckGo/Application/AppDelegate.swift | Updated to fire the new three daily configuration pixels individually. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
return "m_mac_fire_window_configuration_open_fire_window_by_default_is_\(openFireWindowByDefault ? "enabled" : "disabled")" | ||
|
||
case .dailyFireWindowConfigurationFireAnimationEnabled(fireAnimationEnabled: let fireAnimationEnabled): | ||
return "m_mac_fire_window_configuration_fire_animation_is_\(fireAnimationEnabled ? "enabled" : "disabled")" |
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.
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.
LGTM
Task/Issue URL: https://app.asana.com/1/137249556945/project/1201048563534612/task/1211634786160239?focus=true
Tech Design URL:
CC:
Description
To use long term stats from the aggregate table we need to move from using pixel with parameters to individual pixels.
Scope of changes:
m.mac.fire.window.configuration.daily
that contains 3 parameters (fire_animation_enabled, open_fire_window_by_default, startup_fire_window)m_mac_fire_window_configuration_startup_fire_window_is_enabled_daily
m_mac_fire_window_configuration_startup_fire_window_is_disabled_daily
m_mac_fire_window_configuration_open_fire_window_by_default_is_enabled_daily
m_mac_fire_window_configuration_open_fire_window_by_default_is_disabled_daily
m_mac_fire_window_configuration_fire_animation_is_enabled_daily
m_mac_fire_window_configuration_fire_animation_is_disabled_daily
Testing Steps
Impact and Risks
None: Internal tooling, documentation
What could go wrong?
Pixel changes, problems with dashboards.
Quality Considerations
Notes to Reviewer
Internal references:
Definition of Done | Engineering Expectations | Tech Design Template
Note
Replaces the single parameterized fire window configuration daily pixel with three distinct per-setting pixels and updates AppDelegate to fire each daily.
GeneralPixel.dailyFireWindowConfiguration(...)
with three explicit events:dailyFireWindowConfigurationStartupFireWindowEnabled(startupFireWindow: Bool)
→ namesm_mac_fire_window_configuration_startup_fire_window_is_enabled|disabled
dailyFireWindowConfigurationOpenFireWindowByDefaultEnabled(openFireWindowByDefault: Bool)
→ names..._open_fire_window_by_default_is_enabled|disabled
dailyFireWindowConfigurationFireAnimationEnabled(fireAnimationEnabled: Bool)
→ names..._fire_animation_is_enabled|disabled
AppDelegate
):fireDailyFireWindowConfigurationPixel()
withfireDailyFireWindowConfigurationPixels()
and fire the three new pixels daily onapplicationDidBecomeActive
.Written by Cursor Bugbot for commit 99c8abd. This will update automatically on new commits. Configure here.