Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Issue 1025673004: Extract actions from WebUI JS (Closed)

Created:
5 years, 9 months ago by michaelpg
Modified:
5 years, 1 month ago
Reviewers:
Ilya Sherman, Dan Beam
CC:
chromium-reviews, asvitkine+watch_chromium.org, stevenjb
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract actions from WebUI JS Similar to how we extract actions from C++ calls to UserMetricsAction, extract actions from JS calls to coreOptionsUserMetricsAction via chrome.send. Committed: https://crrev.com/1b6c3e7b9c10309d3a9503ebd4f33ec5e0197b4e Cr-Commit-Position: refs/heads/master@{#358888}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Now with 100% more tests #

Total comments: 3

Patch Set 3 : This one. #

Patch Set 4 : quoted_re #

Total comments: 2

Patch Set 5 : remove CPP postfix #

Total comments: 8

Patch Set 6 : dbeam + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -10 lines) Patch
M tools/metrics/actions/extract_actions.py View 1 2 3 4 5 6 chunks +40 lines, -5 lines 0 comments Download
M tools/metrics/actions/extract_actions_test.py View 1 2 3 4 5 2 chunks +77 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
michaelpg
PTAL. I don't write much Python, but it worked!
5 years, 9 months ago (2015-03-20 21:31:57 UTC) #4
Ilya Sherman
Thanks! LGTM % one comment: https://codereview.chromium.org/1025673004/diff/40001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/40001/tools/metrics/actions/extract_actions.py#newcode66 tools/metrics/actions/extract_actions.py:66: ([^']+?) # A sequence ...
5 years, 9 months ago (2015-03-20 21:57:39 UTC) #5
michaelpg
On 2015/03/20 21:57:39, Ilya Sherman wrote: > Thanks! LGTM % one comment: > > https://codereview.chromium.org/1025673004/diff/40001/tools/metrics/actions/extract_actions.py ...
5 years, 9 months ago (2015-03-20 22:14:29 UTC) #6
Dan Beam
excuse the drive-by https://codereview.chromium.org/1025673004/diff/60001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/60001/tools/metrics/actions/extract_actions.py#newcode517 tools/metrics/actions/extract_actions.py:517: return nit: shouldn't this be 2\s ...
5 years, 9 months ago (2015-03-20 22:43:56 UTC) #7
Ilya Sherman
(Still LGTM) https://codereview.chromium.org/1025673004/diff/60001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/60001/tools/metrics/actions/extract_actions.py#newcode74 tools/metrics/actions/extract_actions.py:74: QUOTED_STRING_RE = re.compile(r'[\'\"](.+?)[\'\"]') Optional nit: I think ...
5 years, 9 months ago (2015-03-20 22:52:08 UTC) #8
michaelpg
In Patch 2 I used the QUOTED_STRING_RE for checking JS actions, making the USER_METRICS_ACTION_RE_JS a ...
5 years, 9 months ago (2015-03-20 23:27:28 UTC) #9
Ilya Sherman
On 2015/03/20 23:27:28, michaelpg wrote: > In Patch 2 I used the QUOTED_STRING_RE for checking ...
5 years, 9 months ago (2015-03-20 23:53:23 UTC) #10
Ilya Sherman
On 2015/03/20 23:53:23, Ilya Sherman wrote: > On 2015/03/20 23:27:28, michaelpg wrote: > > In ...
5 years, 9 months ago (2015-03-20 23:58:24 UTC) #11
michaelpg
On 2015/03/20 23:58:24, Ilya Sherman wrote: > On 2015/03/20 23:53:23, Ilya Sherman wrote: > > ...
5 years, 9 months ago (2015-03-21 00:44:06 UTC) #12
michaelpg
5 years, 9 months ago (2015-03-21 00:44:50 UTC) #13
Ilya Sherman
On 2015/03/21 00:44:06, michaelpg wrote: > On 2015/03/20 23:58:24, Ilya Sherman wrote: > > On ...
5 years, 9 months ago (2015-03-21 00:55:56 UTC) #14
Ilya Sherman
Erm, hit reply before actually looking at the code. Code LGTM, though please add test ...
5 years, 9 months ago (2015-03-21 00:57:22 UTC) #15
michaelpg
Look what I found gathering dust... I added some more test coverage and adjusted QUOTED_RE ...
5 years, 1 month ago (2015-11-02 22:01:42 UTC) #18
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/1025673004/diff/140001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/140001/tools/metrics/actions/extract_actions.py#newcode45 tools/metrics/actions/extract_actions.py:45: USER_METRICS_ACTION_RE_CPP = re.compile(r""" nit: This regex says ...
5 years, 1 month ago (2015-11-02 23:31:02 UTC) #19
Dan Beam
https://codereview.chromium.org/1025673004/diff/140001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/140001/tools/metrics/actions/extract_actions.py#newcode45 tools/metrics/actions/extract_actions.py:45: USER_METRICS_ACTION_RE_CPP = re.compile(r""" On 2015/11/02 23:31:02, Ilya Sherman wrote: ...
5 years, 1 month ago (2015-11-02 23:44:24 UTC) #20
michaelpg
On 2015/11/02 23:31:02, Ilya Sherman wrote: > LGTM, thanks. > > https://codereview.chromium.org/1025673004/diff/140001/tools/metrics/actions/extract_actions.py > File tools/metrics/actions/extract_actions.py ...
5 years, 1 month ago (2015-11-02 23:47:55 UTC) #21
Ilya Sherman
On 2015/11/02 23:47:55, michaelpg wrote: > On 2015/11/02 23:31:02, Ilya Sherman wrote: > > LGTM, ...
5 years, 1 month ago (2015-11-02 23:54:57 UTC) #22
Dan Beam
On 2015/11/02 23:54:57, Ilya Sherman wrote: > On 2015/11/02 23:47:55, michaelpg wrote: > > On ...
5 years, 1 month ago (2015-11-03 01:10:12 UTC) #23
Dan Beam
lgtm with suggestions https://codereview.chromium.org/1025673004/diff/160001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/160001/tools/metrics/actions/extract_actions.py#newcode63 tools/metrics/actions/extract_actions.py:63: # Name of the C++ function. ...
5 years, 1 month ago (2015-11-03 01:18:19 UTC) #25
michaelpg
dbeam, ptal, thanks! https://codereview.chromium.org/1025673004/diff/160001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/1025673004/diff/160001/tools/metrics/actions/extract_actions.py#newcode63 tools/metrics/actions/extract_actions.py:63: # Name of the C++ function. ...
5 years, 1 month ago (2015-11-10 18:17:07 UTC) #29
Dan Beam
bitchin', lgtm
5 years, 1 month ago (2015-11-10 18:26:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025673004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1025673004/220001
5 years, 1 month ago (2015-11-10 19:47:48 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:220001)
5 years, 1 month ago (2015-11-10 20:05:52 UTC) #34
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 20:06:50 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1b6c3e7b9c10309d3a9503ebd4f33ec5e0197b4e
Cr-Commit-Position: refs/heads/master@{#358888}

Powered by Google App Engine
This is Rietveld 408576698