-
Notifications
You must be signed in to change notification settings - Fork 116
Updated Suggest types - Aug/2025 #7965
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,18 @@ RETURNS STRING AS ( | |
WHEN res IN ('rs_amo', 'rust_amo') | ||
THEN 'suggest_add_on' | ||
WHEN res IN ('search_suggest', 'search_history', 'search_suggest_rich') | ||
THEN 'default_partner_search_suggestion' | ||
THEN res -- previously 'default_partner_search_suggestion' | ||
WHEN res IN ('search_engine') | ||
THEN 'search_engine' | ||
WHEN res IN ('rust_yelp', 'ml_yelp') | ||
WHEN res IN ('rust_yelp', 'ml_yelp', 'merino_yelp') | ||
THEN 'yelp_suggestion' | ||
WHEN res IN ('rust_fakespot_amazon', 'rust_fakespot_bestbuy', 'rust_fakespot_walmart') | ||
THEN 'fakespot_suggest' | ||
WHEN res IN ('trending_search', 'trending_search_rich') | ||
THEN 'trending_suggestion' | ||
WHEN res IN ('history') | ||
THEN 'history' | ||
WHEN res IN ('bookmark', 'keyword') | ||
WHEN res IN ('bookmark', 'keyword', 'restrict_keyword_bookmarks') | ||
THEN 'bookmark' | ||
WHEN res IN ('tab') | ||
THEN 'open_tab' | ||
|
@@ -41,7 +41,7 @@ RETURNS STRING AS ( | |
THEN 'wikipedia_enhanced' | ||
WHEN res IN ('dynamic_wikipedia', 'merino_wikipedia') | ||
THEN 'wikipedia_dynamic' | ||
WHEN res IN ('weather') | ||
WHEN res IN ('weather', 'merino_weather') | ||
THEN 'weather' | ||
WHEN res IN ( | ||
'action', | ||
|
@@ -55,6 +55,52 @@ RETURNS STRING AS ( | |
THEN 'pocket_collection' | ||
WHEN res IN ('rs_mdn', 'rust_mdn') | ||
THEN 'mdn' | ||
WHEN res IN ('rust_vpn') | ||
THEN 'vpn' | ||
WHEN res IN ('remote_tab') | ||
THEN 'tabs' | ||
WHEN res IN ('calc') | ||
THEN 'calculator' | ||
WHEN res IN ('tip_onboard', 'tip_redirect', 'tip_persist') | ||
THEN 'tip' | ||
WHEN res IN ('autofill_about') | ||
THEN 'about_autofill' | ||
WHEN res IN ('autofill_adaptive') | ||
THEN 'adaptive_autofill' | ||
WHEN res IN ('unit') | ||
THEN 'unit_converter' | ||
WHEN res IN ('fxsuggest_data_sharing_opt_in') | ||
THEN 'online_suggest_opt_in' | ||
WHEN res IN ('merino_polygon') | ||
THEN 'merino_market_opt_in' | ||
WHEN res IN ('tab_serp') | ||
THEN 'open_tab_to_serp' | ||
WHEN res IN ('merino_market') | ||
THEN 'market' | ||
WHEN res IN ('merino_sports') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is right for online sports, and just to reiterate the opt-in will be |
||
THEN 'sports' | ||
WHEN res IN ('merino_flights') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly here, the opt-in will be |
||
THEN 'flights' | ||
WHEN res IN ('rust_important_dates') | ||
THEN 'important_dates' | ||
WHEN res IN ( | ||
'top_site', | ||
'recent_search', | ||
'history_serp', | ||
'history_semantic', | ||
'history_semantic_serp', | ||
'url', | ||
'tab_to_search', | ||
'tab_semantic', | ||
'tab_semantic_serp', | ||
'clipboard', | ||
'restrict_keyword_history', | ||
'restrict_keyword_tabs', | ||
'restrict_keyword_actions' | ||
) | ||
THEN res | ||
WHEN res LIKE('rust_%_opt_in') | ||
THEN SUBSTR(res, 6) | ||
ELSE 'other' | ||
END | ||
); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
rust_market_opt_in
will be the opt-in for market suggestionsmerino_market
will be online suggestions once the user has opted inWe'll follow that pattern for other opt-in and online suggestions, e.g.,
rust_yelp_opt_in
andmerino_yelp
.