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

Issue 29907592: Issue 7027 - User FilterStorage.knownSubscriptions in messageResponder.js (Closed)

Created:
Oct. 12, 2018, 4:57 a.m. by Jon Sonesen
Modified:
Oct. 12, 2018, 10:25 a.m.
Reviewers:
Thomas Greiner
Base URL:
https://hg.adblockplus.org/adblockplusui/
Visibility:
Public.

Description

Issue TBD - User FilterStorage.knownSubscriptions in messageResponder.js

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M messageResponder.js View 2 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 4
Jon Sonesen
Oct. 12, 2018, 4:57 a.m. (2018-10-12 04:57:34 UTC) #1
Jon Sonesen
This is what I came up with while trying to test my changes in core. ...
Oct. 12, 2018, 5:02 a.m. (2018-10-12 05:02:35 UTC) #2
Thomas Greiner
Thanks for sharing. We do accept reviews through Rietveld and tickets through Trac so no ...
Oct. 12, 2018, 8:14 a.m. (2018-10-12 08:14:42 UTC) #3
Jon Sonesen
Oct. 12, 2018, 10:25 a.m. (2018-10-12 10:25:09 UTC) #4
On 2018/10/12 08:14:42, Thomas Greiner wrote:
> Thanks for sharing. We do accept reviews through Rietveld and tickets through
> Trac so no need to use GitLab if you prefer it this way.
> 
> In this particular case I'm pretty much done with the change and, while at it,
> also rewrote the code a little bit to avoid the array conversion and multiple
> loops (see
>
https://gitlab.com/ThomasGreiner/adblockplusui/commit/a950df95af6b923c2e9fcd5...).
> I only need to get the review started.
> 
> That being said, I noticed that you're using
> `FilterStorage.knownSubscriptions.values()` instead of
> `FilterStorage.subscriptions()` so I was wondering whether there is a reason
to
> use one over the other.

subscriptions is a generator based on know subscriptions. It actually is better
to use subscriptions. I like you patch much better I'll close this :)

Powered by Google App Engine
This is Rietveld