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

Issue 29674584: Issue 5549 - Implement missing error handlings for custom filter lists (Closed)

Created:
Jan. 19, 2018, 11:46 a.m. by a.giammarchi
Modified:
Nov. 7, 2018, 3 p.m.
Visibility:
Public.

Description

Irrelevant at this point.

Patch Set 1 #

Patch Set 2 : fixed linting typos #

Total comments: 18

Patch Set 3 : applied required changes #

Patch Set 4 : fixed extra typo in css #

Patch Set 5 : enabled testing via ?filterError=true #

Total comments: 20

Patch Set 6 : changes as requested #

Total comments: 1

Patch Set 7 : removed filterError flag + added better way to check invalid filters #

Patch Set 8 : using convertObject #

Total comments: 7

Patch Set 9 : applied almost all changes #

Patch Set 10 : put loadCustomFilters back #

Total comments: 15

Patch Set 11 : applied changes #

Patch Set 12 : applied changes #

Patch Set 13 : changed custom-filters-edit-area to custom-filters-control as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -48 lines) Patch
M README.md View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M background.js View 1 2 3 4 5 6 3 chunks +55 lines, -12 lines 0 comments Download
M desktop-options.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -7 lines 0 comments Download
M desktop-options.js View 1 2 3 4 5 6 7 8 9 11 7 chunks +51 lines, -18 lines 0 comments Download
M locale/en_US/desktop-options.json View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M messageResponder.js View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M skin/desktop-options.css View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +71 lines, -7 lines 0 comments Download

Messages

Total messages: 26
a.giammarchi
I am sure there will be something to adjust and I am going to investigate ...
Jan. 19, 2018, 11:49 a.m. (2018-01-19 11:49:27 UTC) #1
saroyanm
Thanks for giving a go to this issue Andrea, it was laying around for a ...
Jan. 23, 2018, 3:26 p.m. (2018-01-23 15:26:06 UTC) #2
a.giammarchi
answered here and there. https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.html File desktop-options.html (right): https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.html#newcode32 desktop-options.html:32: <body data-tab="general" dir="rtl"> On 2018/01/23 ...
Jan. 23, 2018, 3:43 p.m. (2018-01-23 15:43:19 UTC) #3
a.giammarchi
https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js#newcode668 desktop-options.js:668: const info = errors.map(error => lines[error.lineno - 1]); On ...
Jan. 23, 2018, 3:59 p.m. (2018-01-23 15:59:25 UTC) #4
saroyanm
https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js#newcode670 desktop-options.js:670: editFilters.textContent = info.join("\n"); On 2018/01/23 15:43:18, a.giammarchi wrote: > ...
Jan. 23, 2018, 5:37 p.m. (2018-01-23 17:37:19 UTC) #5
saroyanm
https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29677632/desktop-options.js#newcode668 desktop-options.js:668: const info = errors.map(error => lines[error.lineno - 1]); On ...
Jan. 24, 2018, 9:05 a.m. (2018-01-24 09:05:49 UTC) #6
a.giammarchi
I should've fixed all the issues. I am investigating about the testing part. I need ...
Jan. 24, 2018, 4:10 p.m. (2018-01-24 16:10:28 UTC) #7
a.giammarchi
thanks to both reviewers for hints and patience. ?filterError=true now shows an error at line ...
Jan. 25, 2018, 12:57 p.m. (2018-01-25 12:57:25 UTC) #8
saroyanm
Mostly some details and suggestions. https://codereview.adblockplus.org/29674584/diff/29679590/background.js File background.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/background.js#newcode344 background.js:344: if (params.filterError) Suggestion: copy ...
Jan. 29, 2018, 11:44 a.m. (2018-01-29 11:44:49 UTC) #9
a.giammarchi
answered inline https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js#newcode654 desktop-options.js:654: const filters = E("custom-filters-raw"); On 2018/01/29 11:44:48, ...
Jan. 29, 2018, 1:09 p.m. (2018-01-29 13:09:02 UTC) #10
saroyanm
https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js#newcode666 desktop-options.js:666: const lines = filtersValue.split(/\n+|\n\s+\n/); On 2018/01/29 13:09:02, a.giammarchi wrote: ...
Jan. 29, 2018, 2:30 p.m. (2018-01-29 14:30:50 UTC) #11
a.giammarchi
answered again https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/desktop-options.js#newcode666 desktop-options.js:666: const lines = filtersValue.split(/\n+|\n\s+\n/); On 2018/01/29 14:30:49, ...
Jan. 29, 2018, 3:01 p.m. (2018-01-29 15:01:10 UTC) #12
a.giammarchi
asked some extra clarification https://codereview.adblockplus.org/29674584/diff/29679590/background.js File background.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/background.js#newcode344 background.js:344: if (params.filterError) On 2018/01/29 11:44:48, ...
Jan. 29, 2018, 5:36 p.m. (2018-01-29 17:36:32 UTC) #13
saroyanm
Published the meeting notes. And a question to @Thomas https://codereview.adblockplus.org/29674584/diff/29679590/background.js File background.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/background.js#newcode344 background.js:344: ...
Jan. 30, 2018, 12:03 p.m. (2018-01-30 12:03:45 UTC) #14
Thomas Greiner
https://codereview.adblockplus.org/29674584/diff/29679590/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29674584/diff/29679590/messageResponder.js#newcode275 messageResponder.js:275: errors.push({ On 2018/01/30 12:03:44, saroyanm wrote: > @Thomas, can ...
Jan. 30, 2018, 1:08 p.m. (2018-01-30 13:08:59 UTC) #15
a.giammarchi
On 2018/01/30 13:08:59, Thomas Greiner wrote: > @Andrea If you want you should be able ...
Jan. 30, 2018, 1:13 p.m. (2018-01-30 13:13:34 UTC) #16
a.giammarchi
removed the need for filterError=true, added better filter validation mock (write bad CSS to make ...
Jan. 30, 2018, 1:16 p.m. (2018-01-30 13:16:43 UTC) #17
saroyanm
Comments are ready. Thanks Andrea for tackling the Mock implementation, that makes testing much more ...
Feb. 2, 2018, 12:30 p.m. (2018-02-02 12:30:59 UTC) #18
a.giammarchi
updated - still missing: errors under buttons https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js File desktop-options.js (left): https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js#oldcode1162 desktop-options.js:1162: (filters) => ...
Feb. 2, 2018, 1:09 p.m. (2018-02-02 13:09:53 UTC) #19
saroyanm
https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js File desktop-options.js (left): https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js#oldcode1162 desktop-options.js:1162: (filters) => On 2018/02/02 13:09:53, a.giammarchi wrote: > On ...
Feb. 2, 2018, 1:44 p.m. (2018-02-02 13:44:26 UTC) #20
a.giammarchi
On 2018/02/02 13:44:26, saroyanm wrote: > https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js > File desktop-options.js (left): > > https://codereview.adblockplus.org/29674584/diff/29684628/desktop-options.js#oldcode1162 > ...
Feb. 2, 2018, 2:31 p.m. (2018-02-02 14:31:44 UTC) #21
saroyanm
Almost ready. mainly details and nits. https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html File desktop-options.html (right): https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html#newcode303 desktop-options.html:303: <a class="i18n_options_customFilters_learn" id="link-filters-2" ...
Feb. 2, 2018, 4:57 p.m. (2018-02-02 16:57:21 UTC) #22
a.giammarchi
done some change https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html File desktop-options.html (right): https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html#newcode303 desktop-options.html:303: <a class="i18n_options_customFilters_learn" id="link-filters-2" target="_blank"></a> On 2018/02/02 ...
Feb. 2, 2018, 5:22 p.m. (2018-02-02 17:22:02 UTC) #23
saroyanm
Replied to the comments. https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html File desktop-options.html (right): https://codereview.adblockplus.org/29674584/diff/29687636/desktop-options.html#newcode303 desktop-options.html:303: <a class="i18n_options_customFilters_learn" id="link-filters-2" target="_blank"></a> On ...
Feb. 2, 2018, 5:58 p.m. (2018-02-02 17:58:59 UTC) #24
a.giammarchi
applied all required changes. I hope this is good now. Since AFAIK this is also ...
Feb. 5, 2018, 9:07 a.m. (2018-02-05 09:07:07 UTC) #25
a.giammarchi
Feb. 5, 2018, 9:07 a.m. (2018-02-05 09:07:09 UTC) #26
applied all required changes. I hope this is good now.

Since AFAIK this is also blocked by the release due language changes I'll put
this on hold waiting for the right time to merge.

Thanks for reviewing.

Powered by Google App Engine
This is Rietveld