Closed
Bug 1024757
Opened 11 years ago
Closed 11 years ago
Translation opportunity FHR should include languages not in the supported list
Categories
(Firefox :: Translations, defect)
Firefox
Translations
Tracking
()
VERIFIED
FIXED
Firefox 33
People
(Reporter: Felipe, Assigned: Felipe)
References
Details
(Whiteboard: p=1 s=33.1 [qa!])
Attachments
(1 file, 1 obsolete file)
9.78 KB,
patch
|
mikedeboer
:
review+
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
The proper definition of the translation opportunity metric that we want to measure is any language not in the user's target language, independent of us showing the infobar (because that language is supported) or not.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Flags: firefox-backlog+
Whiteboard: p=1 [qa+]
Comment 2•11 years ago
|
||
Hi Felipe, I didn't receive a notification if you would be taking Bug 1024757 this iteration?
Flags: needinfo?(felipc)
![]() |
||
Comment 3•11 years ago
|
||
Marco, can you include this in the current iteration?
Thanks!
Flags: needinfo?(felipc) → needinfo?(mmucci)
![]() |
||
Comment 4•11 years ago
|
||
Comment on attachment 8439650 [details] [diff] [review]
Patch
Review of attachment 8439650 [details] [diff] [review]:
-----------------------------------------------------------------
r=me _if_ the question I asked below can be answered with 'nay'.
Thanks for this one!
::: browser/components/translation/Translation.jsm
@@ +49,2 @@
> return;
> + }
nit: no need for braces for this single line block.
@@ +53,3 @@
> TranslationHealthReport.recordTranslationOpportunity(aData.detectedLanguage);
> +
> + if (this.supportedSourceLanguages.indexOf(aData.detectedLanguage) == -1) {
Question: do want to measure this separately, or can this information be filtered easily when analyzing the data?
It's just that an additional datapoint to filter the translation-opportunities with seems easier to me than to keep a list around and filter the numbers manually.
@@ +53,5 @@
> TranslationHealthReport.recordTranslationOpportunity(aData.detectedLanguage);
> +
> + if (this.supportedSourceLanguages.indexOf(aData.detectedLanguage) == -1) {
> + return;
> + }
nit: same.
Attachment #8439650 -
Flags: review?(mdeboer) → review+
![]() |
||
Comment 5•11 years ago
|
||
Oh, and don't forget a nice commit message! ;)
Comment 6•11 years ago
|
||
Added to Iteration 33.1
Flags: needinfo?(mmucci)
Whiteboard: p=1 [qa+] → p=1 s=33.1 [qa+]
Assignee | ||
Comment 7•11 years ago
|
||
I checked your suggestion with the Metrics people and they preferred a separate list for unsupported languages as you suggested.
Attachment #8439650 -
Attachment is obsolete: true
Attachment #8442857 -
Flags: review?(mdeboer)
![]() |
||
Comment 8•11 years ago
|
||
Comment on attachment 8442857 [details] [diff] [review]
Separate list of unsupported languages
Review of attachment 8442857 [details] [diff] [review]:
-----------------------------------------------------------------
Yikes, looks like my suggestion blew up this patch! But, it's for the best... sorry for the inconvenience ;)
Thanks!
::: browser/components/translation/Translation.jsm
@@ +257,5 @@
> + * The language of the page.
> + */
> + recordMissedTranslationOpportunity: function (language) {
> + this._withProvider(provider => provider.recordMissedTranslationOpportunity(language));
> + },
nit: indentation looks wrong here.
Attachment #8442857 -
Flags: review?(mdeboer) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Np, there was a lot of copy&pasting from the other measurement :)
https://hg.mozilla.org/integration/mozilla-inbound/rev/f480ffb3e0b3
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8442857 [details] [diff] [review]
Separate list of unsupported languages
[Approval Request Comment]
Bug caused by (feature/regressing bug #): This bug is part of the automatic translation feature, which we want to A/B with a subset of Aurora 32 users.
User impact if declined: Page languages that are unsupported by the translation service won't be reported through FHR
Testing completed (on m-c, etc.): landed on inbound
Risk to taking this patch (and alternatives if risky): small
String or IDL/UUID changes made by this patch: none
Attachment #8442857 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 33
Comment 12•11 years ago
|
||
Hi Florin, can a QA contact be assigned for verification of this bug.
Flags: needinfo?(florin.mezei)
Assignee | ||
Comment 13•11 years ago
|
||
How to verify this bug:
- make sure telemetry is enabled
- enable language detection by enabling these two prefs:
browser.translation.detectLanguage
browser.translation.ui.show
Visit a page in a language not on the supported list. e.g., italian, dutch, finnish..
Verify that the FHR payload contains measurements about these languages under the "missed opportunities" counter and list.
Updated•11 years ago
|
Flags: needinfo?(florin.mezei)
QA Contact: bogdan.maris
![]() |
||
Comment 14•11 years ago
|
||
Comment on attachment 8442857 [details] [diff] [review]
Separate list of unsupported languages
Aurora approval granted.
Attachment #8442857 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 15•11 years ago
|
||
status-firefox32:
--- → fixed
status-firefox33:
--- → fixed
Comment 16•11 years ago
|
||
I was able to confirm that the "missedTranslationOpportunityCount" and "missedTranslationOpportunityCountsByLanguage" metrics are working properly on:
* Nightly 33 (2014-06-22),
* Aurora 32 (2014-06-22),
using Windows 7 64-bit, Windows 8.1 64-bit, Mac OS X 10.9.2 and Ubuntu 14.04 LTS 32-bit.
Status: RESOLVED → VERIFIED
Whiteboard: p=1 s=33.1 [qa+] → p=1 s=33.1 [qa!]
Comment 17•11 years ago
|
||
Follow up (on behalf of Felipe): https://hg.mozilla.org/integration/fx-team/rev/577642baa9bf
![]() |
||
Comment 18•11 years ago
|
||
Assignee | ||
Comment 19•11 years ago
|
||
I pushed the follow-up comment to aurora to keep the documentation fully correct there. This is just a documentation file, NPOTB
https://hg.mozilla.org/releases/mozilla-aurora/rev/93046aa1a6e3
You need to log in
before you can comment on or make changes to this bug.
Description
•