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

Issue 236070044: Add initial rules_parser. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by zwr
Modified:
8 years, 9 months ago
Reviewers:
nednguyen, klm
Base URL:
https://github.com/chromium/web-page-replay.git@master
Visibility:
Public.

Description

Add initial rules_parser. BUG=

Patch Set 1 #

Total comments: 11

Patch Set 2 : changed format from ast to json #

Total comments: 16

Patch Set 3 : Fixed for reply 16 #

Patch Set 4 : Undo the "rules applied in order" doc #

Patch Set 5 : Added replay calls to load rules #

Total comments: 8

Patch Set 6 : Fixed per reply20 #

Patch Set 7 : Minor fix for reply20 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -31 lines) Patch
A documentation/Rules.md View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download
M httpproxy.py View 1 2 3 4 7 chunks +15 lines, -7 lines 0 comments Download
M httpproxy_test.py View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M replay.py View 1 2 3 4 5 6 4 chunks +20 lines, -4 lines 0 comments Download
A + rules/__init__.py View 1 2 chunks +3 lines, -19 lines 0 comments Download
A rules/log_url.py View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A rules/rule.py View 1 chunk +40 lines, -0 lines 0 comments Download
A rules_parser.py View 1 2 3 4 5 1 chunk +167 lines, -0 lines 0 comments Download
A rules_parser_test.py View 1 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 25
nednguyen
9 years ago (2015-05-15 21:31:36 UTC) #1
nednguyen
9 years ago (2015-05-15 21:31:57 UTC) #2
nednguyen
Sorry for long wait time. I have some concern about the overall design goal as ...
8 years, 11 months ago (2015-06-08 17:26:43 UTC) #3
zwr
https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md File documentation/Rules.md (right): https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md#newcode56 documentation/Rules.md:56: import rules Well, rules should be in a module, ...
8 years, 11 months ago (2015-06-09 15:27:42 UTC) #4
nednguyen
https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md File documentation/Rules.md (right): https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md#newcode56 documentation/Rules.md:56: import rules On 2015/06/09 15:27:42, zwr wrote: > Well, ...
8 years, 11 months ago (2015-06-09 15:57:10 UTC) #5
zwr
https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md File documentation/Rules.md (right): https://codereview.appspot.com/236070044/diff/1/documentation/Rules.md#newcode56 documentation/Rules.md:56: import rules I want an invalid rules file to ...
8 years, 11 months ago (2015-06-09 18:22:35 UTC) #6
nednguyen
https://codereview.appspot.com/236070044/diff/1/rules_parser.py File rules_parser.py (right): https://codereview.appspot.com/236070044/diff/1/rules_parser.py#newcode26 rules_parser.py:26: By design, only the above 'rules' import and primitive ...
8 years, 11 months ago (2015-06-09 20:22:09 UTC) #7
zwr
https://codereview.appspot.com/236070044/diff/1/rules_parser.py File rules_parser.py (right): https://codereview.appspot.com/236070044/diff/1/rules_parser.py#newcode26 rules_parser.py:26: By design, only the above 'rules' import and primitive ...
8 years, 11 months ago (2015-06-09 20:26:44 UTC) #8
zwr
On 2015/06/09 20:26:44, zwr wrote: > https://codereview.appspot.com/236070044/diff/1/rules_parser.py > File rules_parser.py (right): > > https://codereview.appspot.com/236070044/diff/1/rules_parser.py#newcode26 > ...
8 years, 11 months ago (2015-06-09 22:03:40 UTC) #9
zwr
Offline design doc: https://docs.google.com/document/d/1DKRenYTzFIUJ5T5Tg8vYpnliy4omAUkBRMQaNt8qIgE I'll update documentation/Rules.md once we've settled on a design.
8 years, 11 months ago (2015-06-09 22:04:29 UTC) #10
nednguyen
Thanks for putting up the doc! I will review this as soon as possible. On ...
8 years, 11 months ago (2015-06-09 22:05:19 UTC) #11
klm
Hi Ned, Zoe is going to be out for a month starting next week. Is ...
8 years, 11 months ago (2015-06-23 13:39:54 UTC) #12
nednguyen
Yes, I will keep this in mind. Feel free to ping me through chat if ...
8 years, 11 months ago (2015-06-23 21:46:57 UTC) #13
nednguyen
https://codereview.appspot.com/236070044/diff/1/rules_parser.py File rules_parser.py (right): https://codereview.appspot.com/236070044/diff/1/rules_parser.py#newcode26 rules_parser.py:26: By design, only the above 'rules' import and primitive ...
8 years, 11 months ago (2015-06-23 22:10:45 UTC) #14
zwr
Hi, I'm back from my 4-week leave. I've changed the rules file from Python to ...
8 years, 9 months ago (2015-07-28 19:53:01 UTC) #15
nednguyen
https://codereview.appspot.com/236070044/diff/20001/rules/log_url.py File rules/log_url.py (right): https://codereview.appspot.com/236070044/diff/20001/rules/log_url.py#newcode39 rules/log_url.py:39: def ApplyRule(self, return_value, request, _): Instead of _, you ...
8 years, 9 months ago (2015-07-28 20:23:53 UTC) #16
zwr
Hi, I've added the minimal replay.py and httpproxy.py integration to this review, to better point ...
8 years, 9 months ago (2015-07-29 20:28:26 UTC) #17
nednguyen
On 2015/07/29 20:28:26, zwr wrote: > Hi, I've added the minimal replay.py and httpproxy.py integration ...
8 years, 9 months ago (2015-07-29 21:37:21 UTC) #18
zwr
Replied in original places https://codereview.appspot.com/236070044/diff/20001/rules/log_url.py File rules/log_url.py (right): https://codereview.appspot.com/236070044/diff/20001/rules/log_url.py#newcode39 rules/log_url.py:39: def ApplyRule(self, return_value, request, _): ...
8 years, 9 months ago (2015-07-29 21:47:01 UTC) #19
nednguyen
I don't understand the part about why you want to avoid "from rules import rule" ...
8 years, 9 months ago (2015-07-29 21:51:21 UTC) #20
zwr
On 2015/07/29 21:51:21, nednguyen wrote: > I don't understand the part about why you want ...
8 years, 9 months ago (2015-07-30 22:13:34 UTC) #21
zwr
https://codereview.appspot.com/236070044/diff/80001/documentation/Rules.md File documentation/Rules.md (right): https://codereview.appspot.com/236070044/diff/80001/documentation/Rules.md#newcode85 documentation/Rules.md:85: On 2015/07/29 21:51:21, nednguyen wrote: > Add comments about ...
8 years, 9 months ago (2015-07-30 22:14:16 UTC) #22
nednguyen
On 2015/07/30 22:13:34, zwr wrote: > On 2015/07/29 21:51:21, nednguyen wrote: > > I don't ...
8 years, 9 months ago (2015-07-30 22:21:19 UTC) #23
nednguyen
lgtm
8 years, 9 months ago (2015-07-30 22:21:25 UTC) #24
zwr
8 years, 9 months ago (2015-07-31 14:42:32 UTC) #25
Thanks, I've created a pull request: 
https://github.com/chromium/web-page-replay/pull/52
Sign in to reply to this message.

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