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

Issue 29935568: Issue 7096 - Make it possible to lazy initialize a filter's subscriptions (Closed)

Created:
Nov. 3, 2018, 9:19 p.m. by Manish Jethani
Modified:
April 7, 2019, 4:44 p.m.
Reviewers:
hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Based on https://codereview.adblockplus.org/29934588/

Patch Set 1 #

Total comments: 2

Patch Set 2 : Small update #

Total comments: 8

Patch Set 3 : Fix typo #

Patch Set 4 : Rebase and refactor #

Total comments: 1

Patch Set 5 : Fix typo #

Patch Set 6 : Rebase #

Patch Set 7 : Use new methods in two more places #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -11 lines) Patch
M lib/filterClasses.js View 1 2 3 3 chunks +28 lines, -7 lines 0 comments Download
M lib/filterListener.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/filterStorage.js View 1 2 3 4 5 6 4 chunks +45 lines, -2 lines 0 comments Download

Messages

Total messages: 13
Manish Jethani
Nov. 3, 2018, 9:20 p.m. (2018-11-03 21:20:01 UTC) #1
Manish Jethani
Patch Set 1 The idea is to have filter objects that are stateless (no instance-specific ...
Nov. 3, 2018, 9:31 p.m. (2018-11-03 21:31:25 UTC) #2
Manish Jethani
Patch Set 2
Nov. 3, 2018, 9:35 p.m. (2018-11-03 21:35:09 UTC) #3
Manish Jethani
To test this, comment out the following line in `lib/iniParser.js` and run the tests: filter.addSubscription(currentSubscription);
Nov. 3, 2018, 9:40 p.m. (2018-11-03 21:40:34 UTC) #4
hub
https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js#newcode101 lib/filterClasses.js:101: // Once set to true, the cannot be set ...
Nov. 10, 2018, 4:33 a.m. (2018-11-10 04:33:21 UTC) #5
Manish Jethani
Patch Set 3: Fix typo https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js#newcode104 lib/filterClasses.js:104: this._subscriptions = this._subscriptions; On ...
Nov. 15, 2018, 10:58 p.m. (2018-11-15 22:58:53 UTC) #6
hub
https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterClasses.js#newcode104 lib/filterClasses.js:104: this._subscriptions = this._subscriptions; On 2018/11/15 22:58:52, Manish Jethani wrote: ...
Nov. 16, 2018, 5:04 p.m. (2018-11-16 17:04:39 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterStorage.js File lib/filterStorage.js (right): https://codereview.adblockplus.org/29935568/diff/29935573/lib/filterStorage.js#newcode138 lib/filterStorage.js:138: if (subscription.filters.indexOf(filter) != -1) On 2018/11/16 17:04:39, hub wrote: ...
Nov. 17, 2018, 7:49 p.m. (2018-11-17 19:49:17 UTC) #8
Manish Jethani
Patch Set 4: Rebase and refactor Patch Set 5: Fix typo Now based on https://codereview.adblockplus.org/29934588/ ...
Nov. 18, 2018, 12:50 a.m. (2018-11-18 00:50:58 UTC) #9
Manish Jethani
Patch Set 6: Rebase
Nov. 18, 2018, 2:32 a.m. (2018-11-18 02:32:16 UTC) #10
Manish Jethani
Patch Set 7: Use new methods in two more places
Nov. 18, 2018, 4:57 a.m. (2018-11-18 04:57:38 UTC) #11
hub
LGTM
Nov. 19, 2018, 6:43 p.m. (2018-11-19 18:43:39 UTC) #12
Manish Jethani
Nov. 20, 2018, 2:53 a.m. (2018-11-20 02:53:32 UTC) #13
On 2018/11/19 18:43:39, hub wrote:
> LGTM

Sorry, I have removed hasFilter() in the base patch, this no longer works as it
is. We might not even need to do it this way. Let's focus on the base patch
first.

Powered by Google App Engine
This is Rietveld