Closed Bug 1903392 Opened 3 months ago Closed 3 months ago

Send Source Language Changes to SelectTranslationsPanel Telemetry

Categories

(Firefox :: Translations, task, P3)

task

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox128 --- verified
firefox129 --- verified

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

Attachments

(2 files)

Description

While our flow-id telemetry can technically tell when the source language was changed from the unsupported-language view based on tracing the events in the flow, it will add extra cost on the data side to do these calculations.

It would be much better to add extra keys to the translate_button event when a user has decidedly changed the incorrectly detected source language and requested a corrected translation.


Steps to implement

  • Add a from_language extra key to the SelectTranslationsPanel translate_button event.
  • Add a to_language extra key to the SelectTranslationsPanel translate_button event.
  • Add a detected_language extra key to the SelectTranslationsPanel translate_button event.

Tests to implement

  • Ensure that these events have coverage in SelectTranslationsPanel telemetry tests.

Adds the ability for the SelectTranslationsPanel to send
telemetry events when the source language is changed and a
translation is requested from the unsupported-language view.

Depends on D214159

Attachment #9408251 - Attachment description: WIP: Bug 1903392 - Send source-language changes to telemetry r=#translations-reviewers! → Bug 1903392 - Send source-language changes to telemetry r=#translations-reviewers!
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee34bff6e97d Send source-language changes to telemetry r=translations-reviewers,gregtatum

Adds the ability for the SelectTranslationsPanel to send
telemetry events when the source language is changed and a
translation is requested from the unsupported-language view.

Original Revision: https://phabricator.services.mozilla.com/D214160

Attachment #9408311 - Flags: approval-mozilla-beta?
Flags: in-testsuite+
Attachment #9408311 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

I can confirm that the onTranslateButton event contains the from_language, to_language and detected_language extra keys.
Verified in Windows10, MacOS11 and Ubuntu22 on Nightly v129.0a1 and Beta v128.0b7.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: