Skip to content

Bug 2056566 - For enterprise addon install complete event, inherit keys from install event. Add missing key#1179

Merged
jonathanmendez merged 1 commit into
mozilla:enterprise-mainfrom
jonathanmendez:addons-install-metrics
Jul 22, 2026
Merged

Bug 2056566 - For enterprise addon install complete event, inherit keys from install event. Add missing key#1179
jonathanmendez merged 1 commit into
mozilla:enterprise-mainfrom
jonathanmendez:addons-install-metrics

Conversation

@jonathanmendez

Copy link
Copy Markdown
Contributor

Description

Bugzilla: Bug-2056566

A recent change added an extra key site_permission to the addon install metric, causing drift for our enterprise-specific addon install-completed event. I've updated the yaml so that the enterprise event inherits the keys from the regular event, just adding the enterprise-specific addon_name. I've included the new key's data in the recording of the event.

Copilot AI review requested due to automatic review settings July 21, 2026 20:16
@jonathanmendez jonathanmendez added the branch:main PR that should be merged on enterprise-main branch label Jul 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the add-ons manager Glean telemetry definitions and recording so the enterprise-specific install_complete event stays aligned with the standard add-on install event, including the recently-added site_permission extra key.

Changes:

  • Refactors addons_manager.install_complete in metrics.yaml to inherit the same extra_keys map as the core install/update event (plus the enterprise-only addon_name).
  • Records the site_permission extra key in the enterprise install_complete event payload (matching the install event behavior).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
toolkit/mozapps/extensions/metrics.yaml Introduces an anchored extra_keys map for install/update events and merges it into the enterprise install_complete event to prevent key drift.
toolkit/mozapps/extensions/AddonManager.sys.mjs Adds site_permission to the enterprise install-complete telemetry event recording.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5924 to +5925
// will be undefined for non-site permission addons
site_permission: install.newSitePerm,
@jonathanmendez
jonathanmendez merged commit 129181c into mozilla:enterprise-main Jul 22, 2026
78 of 82 checks passed
@jonathanmendez
jonathanmendez deleted the addons-install-metrics branch July 22, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch:main PR that should be merged on enterprise-main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants