Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #26089 - Record metrics for save credit card prompt shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru2909 authored and mergify[bot] committed Jul 22, 2022
1 parent b4cf80a commit 2345eb2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7484,6 +7484,22 @@ credit_cards:
metadata:
tags:
- Autofill
save_prompt_shown:
type: event
description: |
The autofill save prompt is shown.
bugs:
- https://github.com/mozilla-mobile/fenix/issues/26089
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/26095
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 118
metadata:
tags:
- Autofill

addresses:
saved:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ internal class ReleaseMetricController(
CreditCards.savePromptCreate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED ->
CreditCards.savePromptUpdate.record(NoExtras())
Component.FEATURE_PROMPTS to CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN ->
CreditCards.savePromptShown.record(NoExtras())

Component.FEATURE_PROMPTS to AddressAutofillDialogFacts.Items.AUTOFILL_ADDRESS_FORM_DETECTED ->
Addresses.formDetected.record(NoExtras())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ class MetricControllerTest {
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_PROMPT_DISMISSED to CreditCards.autofillPromptDismissed,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_CREATED to CreditCards.savePromptCreate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_UPDATED to CreditCards.savePromptUpdate,
CreditCardAutofillDialogFacts.Items.AUTOFILL_CREDIT_CARD_SAVE_PROMPT_SHOWN to CreditCards.savePromptShown,
)

itemsToEvents.forEach { (item, event) ->
Expand Down

0 comments on commit 2345eb2

Please sign in to comment.