Skip to content
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

Search engine updates #7494

Merged
merged 6 commits into from
Jan 7, 2021
Merged

Search engine updates #7494

merged 6 commits into from
Jan 7, 2021

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Dec 22, 2020

Adds Ecosia to the following markets:
USA (US), UK (GB), France (FR), Germany (DE), Netherlands (NL), Belgium (BE), Switzerland (CH), Sweden (SE)

Fixes brave/brave-browser#13283

Submitter Checklist:

  • There is a ticket for my issue.
  • Used Github auto-closing keywords in the commit message.
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed).
  • Requested a security/privacy review as needed.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

See brave/brave-browser#13283

@bsclifton bsclifton requested a review from a team as a code owner December 22, 2020 22:45
@bsclifton bsclifton self-assigned this Dec 22, 2020
@bsclifton
Copy link
Member Author

@deeppandya anything needed on Android to add this new option to the list?

@deeppandya
Copy link
Contributor

@deeppandya anything needed on Android to add this new option to the list?

@bsclifton we would need new icons for ecosia for search engine onboarding in android. @jamesmudgett or @karenkliu can you help with it ?

Copy link
Member

@simonhong simonhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ Works great!

@bsclifton
Copy link
Member Author

bsclifton commented Dec 24, 2020

Pre-merge checklist:

  • need to update desktop w/ referral ID
  • need to update P3A to be able to track this (forgot)
  • Android implementation needs icon and work for onboarding screen
  • Android implementation needs to remove Yahoo

@bsclifton bsclifton changed the title Add Ecosia as a default search alternative Search engine updates Dec 28, 2020
@bsclifton bsclifton requested a review from iefremov as a code owner December 28, 2020 07:50
} else if (type == SEARCH_ENGINE_YANDEX) {
answer = SearchEngineP3A::kYandex;
} else if (type == SEARCH_ENGINE_ECOSIA) {
Copy link
Contributor

@iefremov iefremov Jan 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should also bump the metric id version?
n/m, now I see it is done

@iefremov
Copy link
Contributor

iefremov commented Jan 5, 2021

will need updating https://github.com/brave/brave-browser/wiki/P3A

@bsclifton bsclifton force-pushed the bsc-ecosia branch 2 times, most recently from f355224 to 8c1efaf Compare January 7, 2021 08:54
@bsclifton bsclifton requested a review from pes10k January 7, 2021 08:55
@bsclifton
Copy link
Member Author

@pes10k can you please check out the latest commit? If it looks good, maybe you can give me an approval 😄
8c1efaf

@@ -553,7 +553,7 @@ const scheduleQueuePump = (hide1pContent: boolean, generichide: boolean) => {
}, { timeout: maxTimeMSBeforeStart })
}

const vettedSearchEngines = ['duckduckgo', 'qwant', 'bing', 'startpage', 'yahoo', 'onesearch', 'google', 'yandex']
const vettedSearchEngines = ['duckduckgo', 'qwant', 'bing', 'startpage', 'yahoo', 'onesearch', 'google', 'yandex', 'ecosia']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think yahoo should be removed from here, right?

@SergeyZhukovsky , just a heads up to make sure the Android work you're doing stays in sync with the above changes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good, I added ecosia as well

@pes10k
Copy link
Contributor

pes10k commented Jan 7, 2021

@bsclifton just one small change requested, but otherwise the parts im familiar with look good to me!

@bsclifton
Copy link
Member Author

@pes10k updated 😄 Please see 2020a47

@pes10k
Copy link
Contributor

pes10k commented Jan 7, 2021

@bsclifton looks great!

@bsclifton
Copy link
Member Author

CI looks good and we have approvals 😄 We might have a follow up to this - but will create a separate issue/PR for that

@bsclifton bsclifton merged commit 8158d17 into master Jan 7, 2021
@bsclifton bsclifton deleted the bsc-ecosia branch January 7, 2021 23:06
@bsclifton bsclifton added this to the 1.20.x - Nightly milestone Jan 7, 2021
@kjozwiak
Copy link
Member

kjozwiak commented Jan 12, 2021

Verification PASSED on Win 10 x64 using the following build:

Case 1 - Verify changes in the Default search engines list

USA USA USA USA
SEUSA1 SEUSA2 SEUSA3 SEUSA4
UK UK UK UK
image image image image
France France France (Default Quant) France
image image image image

Note: ensured that Qwant was still the default search engine in France

Germany Germany Germany (Default DDG) Germany
image image image image

Note: ensured that DDG was still the default search engine in Germany

Netherlands Netherlands Netherlands Netherlands
image image image image
Belgium Belgium Belgium Belgium
image image image image
Switzerland Switzerland Switzerland Switzerland
image image image image
Sweden Sweden Sweden Sweden
image image image image

Case 2 - Verify folks w/ Yahoo set don't lose their setting

Case 1 - Canada

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the default SE as Startpage
  • upgraded to 1.20.73 CR: 88.0.4324.79 and ensured that Startpage was still set as the default SE
    • checked both brave://settings/search & brave://settings/searchEngines
  • ensured that Ecosia wasn't being listed under brave://settings/search & brave://settings/searchEngines
  • ensured that Yahoo was removed from both brave://settings/search & brave://settings/searchEngines

Case 2 - USA

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the default SE as Yahoo
  • upgraded to 1.20.73 CR: 88.0.4324.79 and ensured that Yahoo was still set as the default SE
    • checked both brave://settings/search & brave://settings/searchEngines
  • ensured that Ecosia was being listed under brave://settings/search & brave://settings/searchEngines

Case 3 - France

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the default SE as Qwant (Default)
  • upgraded to 1.20.73 CR: 88.0.4324.79 and ensured that Qwant was still set as the default SE
    • checked both brave://settings/search & brave://settings/searchEngines
  • ensured that Ecosia was being listed under brave://settings/search & brave://settings/searchEngines
    • ensured that Yahoo was removed from both brave://settings/search & brave://settings/searchEngines

Case 3 - Verify the Ecosia referral IDs used are correct

Searched via the omnibox when Ecosia was set as the default search engine and ensured that tt=e8eb07a6 as per https://github.com/brave/internal/wiki/Search-engine-integrations

Ensured that directly going to Ecosia and initiating a search doesn't use the referral code as per the following:

@kjozwiak
Copy link
Member

kjozwiak commented Jan 13, 2021

Verification PASSED on Samsung S10+ running Android 10 using the following build:

Case 1 - Verify changes in the Default search engines list

USA USA USA USA
Screenshot_20210112-211049_Settings Screenshot_20210112-211223_Brave - Nightly Screenshot_20210112-211241_Brave - Nightly Screenshot_20210112-211246_Brave - Nightly
UK UK UK UK
Screenshot_20210112-212313_Settings Screenshot_20210112-212457_Brave - Nightly Screenshot_20210112-212507_Brave - Nightly Screenshot_20210112-212512_Brave - Nightly
France France (Default Quant) France (Default Quant) France
Screenshot_20210112-213240_Settings Screenshot_20210112-213149_Brave - Nightly Screenshot_20210112-213202_Brave - Nightly Screenshot_20210112-213207_Brave - Nightly

Note: ensured that Qwant was still the default search engine in France

Belgium Belgium Belgium Belgium
Screenshot_20210112-215904_Settings Screenshot_20210112-215033_Brave - Nightly Screenshot_20210112-215051_Brave - Nightly Screenshot_20210112-215046_Brave - Nightly
Switzerland Switzerland Switzerland Switzerland
Screenshot_20210112-220213_Settings Screenshot_20210112-220259_Brave - Nightly Screenshot_20210112-220325_Brave - Nightly Screenshot_20210112-220350_Brave - Nightly
Sweden Sweden Sweden Sweden
Screenshot_20210112-220927_Settings Screenshot_20210112-221106_Brave - Nightly Screenshot_20210112-221116_Brave - Nightly Screenshot_20210112-221121_Brave - Nightly

Case 2 - Verify folks w/ Yahoo set don't lose their setting <--- FAILED

Case 1 - Canada

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the following default SE's
    • Standard Tab --> Startpage
    • Incognito Tab --> Bing
  • upgraded to 1.20.74 CR: 88.0.4324.79 and ensured that both Startpage & Bing were still set as the default SE
  • ensured that Ecosia wasn't being listed under both Standard Tab & Incognito Tab
  • ensured that Yahoo was removed from both Standard Tab & Incognito Tab

Case 2 - USA

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the following default SE's
    • Standard Tab --> Yahoo
    • Incognito Tab --> Yahoo
  • upgraded to 1.20.74 CR: 88.0.4324.79 and ensured that both Yahoo was set as the default SE
  • ensured that Ecosia was being listed under both Standard Tab & Incognito Tab
  • ensured that Yahoo was removed from both Standard Tab & Incognito Tab

Case 3 - France

  • downloaded 1.20.65 CR: 88.0.4324.51 and set the following default SE's
    • Standard Tab --> Qwant
    • Incognito Tab --> Qwant
  • upgraded to 1.20.74 CR: 88.0.4324.79 and ensured that both Qwant was set as the default SE
  • ensured that Ecosia was being listed under both Standard Tab & Incognito Tab
  • ensured that Yahoo was removed from both Standard Tab & Incognito Tab

Case 3 - Verify the Ecosia referral IDs used are correct

Searched via the omnibox when Ecosia was set as the default search engine and ensured that tt=42b8ae98 as per https://github.com/brave/internal/wiki/Search-engine-integrations

https://www.ecosia.org/search?tt=42b8ae98&q={brave+browser}
https://www.ecosia.org/search?tt=42b8ae98&q={bat+token}

Ensured that directly going to Ecosia and initiating a search doesn't use the referral code as per the following:

@kjozwiak
Copy link
Member

kjozwiak commented Jan 13, 2021

@bsclifton heads up re: Germany. The onboarding modal doesn't appear on Android due to brave/brave-browser#11079. Believe a decision was made to leave it in that state as it would be difficult to change due to DDG being default in Germany. CCing @aekeus.

Also found brave/brave-browser#13531 while going through verifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updated pre-populated search engine list
8 participants