Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29633713: Issue 6077 - Create script to modify the list of search engines dynamically (Closed)

Created:
Dec. 8, 2017, 3:37 p.m. by jens
Modified:
Jan. 11, 2018, 1:19 p.m.
Reviewers:
diegocarloslima, anton
CC:
René Jeschke
Visibility:
Public.

Description

[repository: https://hg.adblockplus.org/mozharness/] This patch set adds the function transform_search_engines_list() to transform_locales and extends the functionality of _transform_locale(). It filters and resorts the list of provided searchengines for each locale in order to match our requirements. These changes depend on https://codereview.adblockplus.org/29633555/

Patch Set 1 #

Total comments: 11

Patch Set 2 : refactored _transform_locales() #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -16 lines) Patch
M mozharness/abb/transform_locales.py View 1 2 4 chunks +208 lines, -16 lines 0 comments Download

Messages

Total messages: 8
jens
Dec. 8, 2017, 3:42 p.m. (2017-12-08 15:42:46 UTC) #1
anton
On 2017/12/08 15:42:46, jens wrote: LGTM
Dec. 12, 2017, 6:53 a.m. (2017-12-12 06:53:51 UTC) #2
diegocarloslima
https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py File mozharness/abb/transform_locales.py (right): https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py#newcode37 mozharness/abb/transform_locales.py:37: _I10N_PATH = os.path.join("abb-build", "l10n") This var should be named ...
Dec. 13, 2017, 10:44 a.m. (2017-12-13 10:44:43 UTC) #3
diegocarloslima
https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py File mozharness/abb/transform_locales.py (right): https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py#newcode382 mozharness/abb/transform_locales.py:382: for loc in locales: On 2017/12/13 10:44:42, diegocarloslima wrote: ...
Dec. 13, 2017, 10:55 a.m. (2017-12-13 10:55:29 UTC) #4
jens
On 2017/12/13 10:55:29, diegocarloslima wrote: > https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py > File mozharness/abb/transform_locales.py (right): > > https://codereview.adblockplus.org/29633713/diff/29633714/mozharness/abb/transform_locales.py#newcode382 > ...
Dec. 19, 2017, 4:49 p.m. (2017-12-19 16:49:52 UTC) #5
diegocarloslima
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/transform_locales.py File mozharness/abb/transform_locales.py (right): https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/transform_locales.py#newcode38 mozharness/abb/transform_locales.py:38: _LISTJSON_PATH = os.path.join(_LOCALES_PATH, "search", "list.json") This seems to cause ...
Jan. 3, 2018, 2:25 p.m. (2018-01-03 14:25:07 UTC) #6
jens
On 2018/01/03 14:25:07, diegocarloslima wrote: > https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/transform_locales.py > File mozharness/abb/transform_locales.py (right): > > https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/transform_locales.py#newcode38 > ...
Jan. 10, 2018, 2:25 p.m. (2018-01-10 14:25:06 UTC) #7
diegocarloslima
Jan. 10, 2018, 7:26 p.m. (2018-01-10 19:26:26 UTC) #8
On 2018/01/10 14:25:06, jens wrote:
> On 2018/01/03 14:25:07, diegocarloslima wrote:
> >
>
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/tran...
> > File mozharness/abb/transform_locales.py (right):
> > 
> >
>
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/tran...
> > mozharness/abb/transform_locales.py:38: _LISTJSON_PATH =
> > os.path.join(_LOCALES_PATH, "search", "list.json")
> > This seems to cause an error, since _LOCALES_PATH wasn't defined yet
> > 
> >
>
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/tran...
> > mozharness/abb/transform_locales.py:176: 
> > 2 new lines here... seems that it should be just one
> > 
> >
>
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/tran...
> > mozharness/abb/transform_locales.py:196: 
> > 3 new lines here... seems that it should be just one
> > 
> >
>
https://codereview.adblockplus.org/29633713/diff/29644606/mozharness/abb/tran...
> > mozharness/abb/transform_locales.py:371: data['locales'].update({locale:
> > {'default': {'visibleDefaultEngines': data['locales']
> > This line is too big to be in compliance with PEP8. I suggest you to put the
> > whole code into http://pep8online.com to check if it meets with PEP8
> requirements
> 
> Seems like I did not upload the latest version. All the things you commented
on
> are already fixed. I'll upload a new patch set

LGTM

Powered by Google App Engine
This is Rietveld