Add support for scores in the Firefox Suggest Merino integration
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
People
(Reporter: adw, Assigned: adw)
References
Details
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
25.20 KB,
patch
|
RyanVM
:
approval-mozilla-release+
|
Details | Diff | Splinter Review |
The Jira ticket for Merino integration says we should prefer remote settings suggestions over Merino suggestions, but I misread or misremembered that and did it backwards. Nan, mythmon, and I talked about it, and we decided we should go ahead and support a simple scoring system for suggestions so we can decide server-side which type of suggestion should take precedence.
Assignee | ||
Comment 1•3 years ago
|
||
This looks for a score
property in suggestions from both Merino and remote
settings and picks the suggestion with the highest score. The score is intended
to be normalized -- i.e., in the range [0, 1] -- but currently it doesn't
matter. As discussed, I hardcoded a score of 0.2 for remote settings
suggestions.
When Merino returns multiple suggestions, currently we're just picking the first
one, but now we can pick the one with the highest score without any extra work,
so I went ahead and made sure we handle that now.
Also, this is robust against Merino not including a score
in the response. In
that case we'll prefer the remote settings suggestion if there is one, and we'll
use the Merino suggestion if there's not.
Finally I added some new test tasks that aren't specifically related to scoring:
testing cases where either Merino or remote settings returns suggestions but not
both. I noticed I missed those cases earlier.
Comment 3•3 years ago
|
||
bugherder |
Assignee | ||
Comment 4•3 years ago
|
||
qe-verify- because this is a relatively low-level change that doesn't need to be individually manually verified.
Assignee | ||
Comment 5•3 years ago
|
||
[Tracking Requested - why for this release]: Some urgent Firefox Suggest patches we want to uplift to a 92 dot release depend on this bug.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Approval Request Comment
[Feature/Bug causing the regression]: Firefox Suggest offline/online rollouts (this bug is not directly related but code that is directly related depends on it)
[User impact if declined]: Needed for important rollouts on 93 and 92
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: No, low-level change with no visible changes
[List of other uplifts needed for the feature/fix]: See uplift coordination spreadsheet
[Is the change risky?]: Low risk relative to other uplifts needed in the patch stack
[Why is the change risky/not risky?]: This patch slightly modifies the Firefox Suggest integration with Merino, which is preffed off. No visible changes.
[String changes made/needed]:
Comment 8•3 years ago
|
||
Comment on attachment 9240787 [details] [diff] [review]
92/mozilla-release patch
Approved for 92.0.1.
Comment 9•3 years ago
|
||
bugherder uplift |
Description
•