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

Issue 29873561: Issue 6920 - Only parse metadata from the top of the file (Closed)

Created:
Sept. 3, 2018, 5:57 p.m. by Sebastian Noack
Modified:
Sept. 13, 2018, 3:40 p.m.
Visibility:
Public.

Description

Issue 6920 - Only parse metadata from the top of the file

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Fixed typo and moved logic to parse_filterlist() #

Patch Set 3 : Documented behavior for parse_line(), simplified end-of-metadata semantics #

Total comments: 2

Patch Set 4 : Close metadata on everything but headers or comments #

Total comments: 2

Patch Set 5 : Test 'Last modified' case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -34 lines) Patch
M abp/filters/parser.py View 1 2 3 5 chunks +30 lines, -10 lines 0 comments Download
M tests/test_parser.py View 1 2 3 4 3 chunks +17 lines, -16 lines 0 comments Download
M tests/test_rpy.py View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 14
Sebastian Noack
Sept. 3, 2018, 5:59 p.m. (2018-09-03 17:59:07 UTC) #1
Vasily Kuznetsov
Hi Sebastian, Thanks for working on this. The code looks good but I had a ...
Sept. 4, 2018, 10:03 a.m. (2018-09-04 10:03:31 UTC) #2
Vasily Kuznetsov
On 2018/09/04 10:03:31, Vasily Kuznetsov wrote: > It seems that allowing comments inside of the ...
Sept. 4, 2018, 10:19 a.m. (2018-09-04 10:19:32 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29873561/diff/29873574/abp/filters/parser.py File abp/filters/parser.py (right): https://codereview.adblockplus.org/29873561/diff/29873574/abp/filters/parser.py#newcode315 abp/filters/parser.py:315: return _parse_line(line_text, True)[0] On 2018/09/04 10:03:30, Vasily Kuznetsov wrote: ...
Sept. 4, 2018, 4:01 p.m. (2018-09-04 16:01:04 UTC) #4
Vasily Kuznetsov
Hi Sebastian! I'm not too happy about the complicated behavior where we close metadata on ...
Sept. 4, 2018, 4:49 p.m. (2018-09-04 16:49:51 UTC) #5
Sebastian Noack
On 2018/09/04 16:49:51, Vasily Kuznetsov wrote: > I'm not too happy about the complicated behavior ...
Sept. 4, 2018, 6:33 p.m. (2018-09-04 18:33:34 UTC) #6
Vasily Kuznetsov
Cool, I like this new version! What do you think about includes (see comment below)? ...
Sept. 4, 2018, 7:50 p.m. (2018-09-04 19:50:58 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29873561/diff/29874645/abp/filters/parser.py File abp/filters/parser.py (right): https://codereview.adblockplus.org/29873561/diff/29874645/abp/filters/parser.py#newcode338 abp/filters/parser.py:338: elif isinstance(result, (EmptyLine, Filter)): On 2018/09/04 19:50:56, Vasily Kuznetsov ...
Sept. 4, 2018, 8:23 p.m. (2018-09-04 20:23:33 UTC) #8
rhowell
Looks pretty good to me. Just one minor suggestion for the test.
Sept. 5, 2018, 2:49 a.m. (2018-09-05 02:49:52 UTC) #9
rhowell
https://codereview.adblockplus.org/29873561/diff/29874658/tests/test_parser.py File tests/test_parser.py (right): https://codereview.adblockplus.org/29873561/diff/29874658/tests/test_parser.py#newcode167 tests/test_parser.py:167: result = parse_filterlist(['[Adblock Plus 1.1]', It might be good ...
Sept. 5, 2018, 2:50 a.m. (2018-09-05 02:50:06 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29873561/diff/29874658/tests/test_parser.py File tests/test_parser.py (right): https://codereview.adblockplus.org/29873561/diff/29874658/tests/test_parser.py#newcode167 tests/test_parser.py:167: result = parse_filterlist(['[Adblock Plus 1.1]', On 2018/09/05 02:50:06, rhowell ...
Sept. 5, 2018, 9:09 a.m. (2018-09-05 09:09:52 UTC) #11
Vasily Kuznetsov
LGTM
Sept. 5, 2018, 10:18 a.m. (2018-09-05 10:18:50 UTC) #12
rhowell
LGTM
Sept. 5, 2018, 4:29 p.m. (2018-09-05 16:29:08 UTC) #13
rhowell
Sept. 5, 2018, 4:29 p.m. (2018-09-05 16:29:12 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld