-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1839487 Add new suggested_index columns to quicksuggest #786
base: main
Are you sure you want to change the base?
Bug 1839487 Add new suggested_index columns to quicksuggest #786
Conversation
cc @ncloudioj @quiiver, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -90,6 +90,14 @@ | |||
"description": "The source of the suggestion, either “remote-settings” or “merino”. See bug 1839487", | |||
"type": "string" | |||
}, | |||
"suggested_index": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for having this be non-relative when we already have the global position
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's helpful to consider a couple different uses of "relative":
suggested_index
can be relative to the Firefox Suggest group (suggested_index_relative_to_group = true
) or to the whole results list (suggested_index_relative_to_group = false
), although the latter might also be referred to as "global" or "non-relative"suggested_index
can be relative the beginning of the group/list or the end. Positive values are relative to the beginning, negative to the end
In practice suggested_index
is helpful when:
- It's relative to the Firefox Suggest group, or
- It's relative to the end of the results list
In contrast, if it's relative to the start of the results list, then it's practically the same as position
, modulo the different bases (1-based vs. 0-based). The only time it would be really different is when there are fewer results in the list than the suggested index, e.g. there are only 3 results but the suggested index is 9. But in practice we never use large suggested indexes relative to the whole list. We only ever use a value of 1, for top picks.
All that said, the reason we added these was to support the proposed second treatment branch of higher-placement sponsored suggestions where they're shown at the top of the Suggest section. We would be able to distinguish that case by checking suggested_index = 0
and suggested_index_relative_to_group = true
. In general we'd be able to distinguish any other placements we'd want to experiment with. Now that we aren't doing that second branch, at least not right now, we don't actually need these values and so we could just remove them.
https://bugzilla.mozilla.org/show_bug.cgi?id=1855338
Checklist for reviewer:
./.github/push-to-trigger-integration <username>:<branchname>
For glean changes:
templates/include/glean/CHANGELOG.md
For modifications to schemas in restricted namespaces (see
CODEOWNERS
):