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

Issue 114560043: Create rules to match urls

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by mruthven
Modified:
10 years, 7 months ago
Reviewers:
slamm, wrightt, slamm1
Base URL:
https://github.com/maryruthven/web-page-replay.git@master
Visibility:
Public.

Description

removing hacks removing old wrap removing whit space wpr hacks BUG=

Patch Set 1 #

Patch Set 2 : reverting files #

Patch Set 3 : httpclient #

Patch Set 4 : reverting deterministic #

Patch Set 5 : remove path_for_matching #

Patch Set 6 : fixing httparchive tostring #

Patch Set 7 : putting path_for_matching back in #

Patch Set 8 : removing whitespace #

Patch Set 9 : syncing src #

Patch Set 10 : style #

Patch Set 11 : style #

Patch Set 12 : removing weird log #

Patch Set 13 : modify rules #

Patch Set 14 : Adding path_for_matching to generalize paths #

Patch Set 15 : removing some logging #

Patch Set 16 : generalize paths #

Patch Set 17 : Removing extra whitespace #

Patch Set 18 : adding flag for rules #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : Load json rules from file #

Patch Set 22 : modifying rules #

Patch Set 23 : #

Patch Set 24 : #

Total comments: 60

Patch Set 25 : #

Patch Set 26 : #

Patch Set 27 : #

Patch Set 28 : #

Patch Set 29 : adding comments #

Patch Set 30 : #

Patch Set 31 : Fixing parsing #

Patch Set 32 : modifying rules #

Patch Set 33 : requestMatches -> urlMatches #

Patch Set 34 : adding isinstance checks #

Total comments: 38

Patch Set 35 : Changing instance checks and rules #

Patch Set 36 : fixing errors #

Total comments: 12

Patch Set 37 : removing rules #

Total comments: 28

Patch Set 38 : modifying the callback rules #

Patch Set 39 : Fix callback replacement #

Total comments: 1

Patch Set 40 : add TODO #

Patch Set 41 : remove log #

Patch Set 42 : change names #

Patch Set 43 : #

Patch Set 44 : style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -48 lines) Patch
M certutils.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +4 lines, -3 lines 0 comments Download
M customhandlers.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M httparchive.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 8 chunks +17 lines, -9 lines 0 comments Download
M httparchive_test.py View 2 3 4 5 6 7 9 10 11 12 13 14 15 16 2 chunks +4 lines, -4 lines 0 comments Download
M httpclient.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 7 chunks +49 lines, -3 lines 0 comments Download
M httpproxy.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 8 chunks +75 lines, -12 lines 0 comments Download
M platformsettings.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +6 lines, -6 lines 0 comments Download
M replay.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 2 chunks +29 lines, -8 lines 0 comments Download
A rules.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +15 lines, -0 lines 0 comments Download
M sslproxy.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 17
mruthven
Add rules to modify request paths and responses to get around certain archive lookup errors. ...
11 years, 3 months ago (2014-08-05 19:47:33 UTC) #1
slamm
Is there a document that describes this change? I want to think a bit about ...
11 years, 3 months ago (2014-08-06 21:58:55 UTC) #2
wrightt
Re: the design, see my notes in: https://docs.google.com/a/google.com/document/d/19ACPb_bS7W691IlXiqlksfLukhbv0sfjJgABwX16_Ow/edit#heading=h.gpfmqfsugs04 https://codereview.appspot.com/114560043/diff/400001/certutils.py File certutils.py (right): https://codereview.appspot.com/114560043/diff/400001/certutils.py#newcode149 certutils.py:149: if ...
11 years, 3 months ago (2014-08-07 20:08:42 UTC) #3
wrightt
more rule-language tweaking https://codereview.appspot.com/114560043/diff/400001/json_rules.txt File json_rules.txt (right): https://codereview.appspot.com/114560043/diff/400001/json_rules.txt#newcode1 json_rules.txt:1: [ as noted in replay.py, allow ...
11 years, 3 months ago (2014-08-07 22:59:23 UTC) #4
mruthven
https://codereview.appspot.com/114560043/diff/400001/certutils.py File certutils.py (right): https://codereview.appspot.com/114560043/diff/400001/certutils.py#newcode97 certutils.py:97: On 2014/08/06 21:58:54, slamm wrote: > These edits are ...
11 years, 2 months ago (2014-08-11 18:29:18 UTC) #5
mruthven
11 years, 2 months ago (2014-08-11 18:29:21 UTC) #6
wrightt
looking good, notes below! https://codereview.appspot.com/114560043/diff/580001/httparchive.py File httparchive.py (right): https://codereview.appspot.com/114560043/diff/580001/httparchive.py#newcode467 httparchive.py:467: more_undesirable_keys=None): rename to "additional_undesirable_keys"? (to ...
11 years, 2 months ago (2014-08-12 16:01:39 UTC) #7
mruthven
https://codereview.appspot.com/114560043/diff/580001/httparchive.py File httparchive.py (right): https://codereview.appspot.com/114560043/diff/580001/httparchive.py#newcode467 httparchive.py:467: more_undesirable_keys=None): On 2014/08/12 16:01:38, wrightt wrote: > rename to ...
11 years, 2 months ago (2014-08-12 20:44:05 UTC) #8
mruthven
I removed all the example rules in this review. I will do a follow up ...
11 years, 2 months ago (2014-08-14 19:36:43 UTC) #9
wrightt
https://codereview.appspot.com/114560043/diff/620001/httparchive.py File httparchive.py (right): https://codereview.appspot.com/114560043/diff/620001/httparchive.py#newcode488 httparchive.py:488: self.trimmed_headers = self._TrimHeaders(headers, additional_undesirable_keys) wrap 80 chars. https://codereview.appspot.com/114560043/diff/620001/replay.py File ...
11 years, 2 months ago (2014-08-14 20:10:02 UTC) #10
slamm1
I am having a little trouble processing this change (more sleep would help). It feels ...
11 years, 2 months ago (2014-08-15 00:05:40 UTC) #11
wrightt
> It feels wrong to add "path_for_matching" to the archive. It seems like > that ...
11 years, 2 months ago (2014-08-15 14:38:55 UTC) #12
mruthven
I generalized replace callbacks. So in the rules you can specify which group to replace ...
11 years, 2 months ago (2014-08-15 18:32:16 UTC) #13
mruthven
I generalized replace callbacks. So in the rules you can specify which group to replace ...
11 years, 2 months ago (2014-08-15 18:32:21 UTC) #14
wrightt
LGTM, only a couple notes below. https://codereview.appspot.com/114560043/diff/620001/replay.py File replay.py (right): https://codereview.appspot.com/114560043/diff/620001/replay.py#newcode135 replay.py:135: with open(options.json_rules, 'r') ...
11 years, 2 months ago (2014-08-15 19:44:40 UTC) #15
mruthven
https://codereview.appspot.com/114560043/diff/640001/httparchive.py File httparchive.py (right): https://codereview.appspot.com/114560043/diff/640001/httparchive.py#newcode466 httparchive.py:466: is_ssl=False, path_for_matching=None, On 2014/08/15 00:05:40, slamm1 wrote: > path_for_matching ...
11 years, 2 months ago (2014-08-15 21:38:41 UTC) #16
wrightt
10 years, 11 months ago (2014-12-02 18:19:09 UTC) #17
Steve, ping? I somehow thought we pushed this months ago... :( I can rebase to the latest master & submit a new CR. More generally, design feedback? I can maybe do a little cleanup this quarter, but anything significant would have to wait until next quarter.
Sign in to reply to this message.

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