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

Issue 29934588: Issue 7094 - Encapsulate management of subscription filters (Closed)

Created:
Nov. 2, 2018, 10:34 p.m. by Manish Jethani
Modified:
Nov. 21, 2018, 5:10 a.m.
Reviewers:
hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Reworked #

Patch Set 3 : Simplify patch #

Total comments: 5

Patch Set 4 : Pass old filters to disconnectSubscriptionFilters #

Patch Set 5 : Add tests #

Patch Set 6 : Update tests #

Patch Set 7 : Lazy initialize and clean up filter text lookup #

Total comments: 4

Patch Set 8 : Update JSDoc #

Patch Set 9 : Remove hasFilter and related code #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -78 lines) Patch
M lib/filterListener.js View 1 2 2 chunks +21 lines, -10 lines 0 comments Download
M lib/filterStorage.js View 1 2 3 7 8 7 chunks +36 lines, -23 lines 0 comments Download
M lib/iniParser.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M lib/subscriptionClasses.js View 1 2 3 4 5 6 7 8 5 chunks +112 lines, -8 lines 3 comments Download
M lib/synchronizer.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/filterListener.js View 1 3 chunks +14 lines, -6 lines 0 comments Download
M test/filterStorage.js View 1 4 chunks +22 lines, -10 lines 0 comments Download
M test/filterStorage_readwrite.js View 1 2 chunks +9 lines, -8 lines 0 comments Download
M test/subscriptionClasses.js View 1 2 3 4 5 6 7 8 3 chunks +104 lines, -1 line 0 comments Download
M test/synchronizer.js View 1 3 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 10
Manish Jethani
Nov. 2, 2018, 10:35 p.m. (2018-11-02 22:35:07 UTC) #1
Manish Jethani
Patch Set 3 Patch Set 1 was different, Patch Set 2 including the concept of ...
Nov. 17, 2018, 9:41 p.m. (2018-11-17 21:41:09 UTC) #2
Manish Jethani
Patch Set 4: Pass old filters to disconnectSubscriptionFilters
Nov. 17, 2018, 10:16 p.m. (2018-11-17 22:16:12 UTC) #3
Manish Jethani
Patch Set 5: Add tests Patch Set 6: Update tests
Nov. 17, 2018, 11:41 p.m. (2018-11-17 23:41:12 UTC) #4
Manish Jethani
Patch Set 7: Lazy initialize and clean up filter text lookup https://codereview.adblockplus.org/29934588/diff/29945605/lib/filterStorage.js File lib/filterStorage.js (right): ...
Nov. 18, 2018, 2:25 a.m. (2018-11-18 02:25:51 UTC) #5
Manish Jethani
Patch Set 8: Update JSDoc
Nov. 18, 2018, 2:28 a.m. (2018-11-18 02:28:10 UTC) #6
Manish Jethani
Patch Set 9: Remove hasFilter and related code hasFilter() is not needed until we do ...
Nov. 18, 2018, 10:23 p.m. (2018-11-18 22:23:12 UTC) #7
hub
https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionClasses.js File lib/subscriptionClasses.js (right): https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionClasses.js#newcode69 lib/subscriptionClasses.js:69: _filterText: null, shouldn't this be named `_filtersText` since it ...
Nov. 19, 2018, 5:47 p.m. (2018-11-19 17:47:50 UTC) #8
Manish Jethani
https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionClasses.js File lib/subscriptionClasses.js (right): https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionClasses.js#newcode69 lib/subscriptionClasses.js:69: _filterText: null, On 2018/11/19 17:47:49, hub wrote: > shouldn't ...
Nov. 20, 2018, 12:19 a.m. (2018-11-20 00:19:39 UTC) #9
hub
Nov. 20, 2018, 7:30 p.m. (2018-11-20 19:30:19 UTC) #10
LGTM

https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionCla...
File lib/subscriptionClasses.js (right):

https://codereview.adblockplus.org/29934588/diff/29946561/lib/subscriptionCla...
lib/subscriptionClasses.js:69: _filterText: null,
On 2018/11/20 00:19:39, Manish Jethani wrote:
> On 2018/11/19 17:47:49, hub wrote:
> > shouldn't this be named `_filtersText` since it is many filters?
> > 
> > Also would be consistent with `_filters`
> 
> I thought about calling it _filtersText but that sounds wrong in English.
Maybe
> _filterTextList or _filterTextArray? Though I find it clear enough to just
call
> it _filterText, since text is both singular and plural and it maps nicely to
the
> generator function filterText()

my bad. let's leave it at that.

Powered by Google App Engine
This is Rietveld