Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1901)

Issue 10950045: Determining subscribers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by ana.balica
Modified:
10 years, 10 months ago
Reviewers:
thomas.j.waldmann, waldi
Visibility:
Public.

Description

Determining subscribers

Patch Set 1 #

Total comments: 8

Patch Set 2 : Reduce code duplication in tests #

Total comments: 3

Patch Set 3 : Fix expected_name and user meta setting in the tests #

Patch Set 4 : Fix tests name and use a set literal instead of set([]) #

Total comments: 7

Patch Set 5 : Refactor get_subscribers() and remove extract_users_info() function #

Patch Set 6 : Test get_matched_subscription_patterns() #

Patch Set 7 : Fix got == expected and remove not used imports #

Patch Set 8 : Change get_matched_subscription_patterns() #

Total comments: 7

Patch Set 9 : Fix chaining #

Total comments: 5

Patch Set 10 : Logging re.compile error #

Patch Set 11 : Compile pattern with re.U flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -86 lines) Patch
M MoinMoin/util/_tests/test_subscriptions.py View 1 2 3 4 5 6 2 chunks +41 lines, -70 lines 0 comments Download
M MoinMoin/util/subscriptions.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +41 lines, -16 lines 0 comments Download

Messages

Total messages: 11
Thomas.J.Waldmann
https://codereview.appspot.com/10950045/diff/1/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/1/MoinMoin/util/subscriptions.py#newcode42 MoinMoin/util/subscriptions.py:42: pattern_results = list() results = [] https://codereview.appspot.com/10950045/diff/1/MoinMoin/util/subscriptions.py#newcode54 MoinMoin/util/subscriptions.py:54: :param ...
10 years, 10 months ago (2013-07-14 08:47:13 UTC) #1
Thomas.J.Waldmann
https://codereview.appspot.com/10950045/diff/5001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/10950045/diff/5001/MoinMoin/util/_tests/test_subscriptions.py#newcode39 MoinMoin/util/_tests/test_subscriptions.py:39: meta = dict(locale=u'en') hmm, why first build a dict ...
10 years, 10 months ago (2013-07-17 13:14:07 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/_tests/test_subscriptions.py#newcode60 MoinMoin/util/_tests/test_subscriptions.py:60: assert expected_name in subscribers_names shouldn't it be even [expected_name] ...
10 years, 10 months ago (2013-07-17 13:48:34 UTC) #3
ana.balica
https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/subscriptions.py#newcode50 MoinMoin/util/subscriptions.py:50: def extract_users_info(user_items): On 2013/07/17 13:48:35, Thomas.J.Waldmann wrote: > check ...
10 years, 10 months ago (2013-07-17 15:17:44 UTC) #4
Thomas.J.Waldmann
https://codereview.appspot.com/10950045/diff/36001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/36001/MoinMoin/util/subscriptions.py#newcode38 MoinMoin/util/subscriptions.py:38: with flaskg.storage.indexer.ix[LATEST_REVS].searcher() as searcher: add here: # TODO: check ...
10 years, 10 months ago (2013-07-19 10:56:55 UTC) #5
ana.balica
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode67 MoinMoin/util/subscriptions.py:67: pattern = re.compile(r'{0}'.format(pattern)) Assume the pattern will compile without ...
10 years, 10 months ago (2013-07-19 12:31:12 UTC) #6
waldi
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode67 MoinMoin/util/subscriptions.py:67: pattern = re.compile(r'{0}'.format(pattern)) On 2013/07/19 12:31:12, ana.balica wrote: > ...
10 years, 10 months ago (2013-07-19 12:45:16 UTC) #7
ana.balica
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode67 MoinMoin/util/subscriptions.py:67: pattern = re.compile(r'{0}'.format(pattern)) The user input will pass through ...
10 years, 10 months ago (2013-07-19 13:07:56 UTC) #8
Thomas.J.Waldmann
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode45 MoinMoin/util/subscriptions.py:45: for user in chain.from_iterable(result_iterators)} looks much less complicated now ...
10 years, 10 months ago (2013-07-20 12:29:31 UTC) #9
waldi
On 2013/07/19 13:07:56, ana.balica wrote: > https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py > File MoinMoin/util/subscriptions.py (right): > > https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode67 > ...
10 years, 10 months ago (2013-07-20 12:35:23 UTC) #10
Thomas.J.Waldmann
10 years, 10 months ago (2013-07-20 13:38:33 UTC) #11
ok
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b