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

Issue 3002903002: [pinpoint] Refactor Quest Generator. (Closed)

Created:
3 years, 4 months ago by dtu
Modified:
3 years, 4 months ago
Reviewers:
perezju, shatch, sullivan
CC:
catapult-reviews_chromium.org, perf-dashboard-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[pinpoint] Refactor Quest Generator. Although it appeared more organized to separate the argument validation, Quest generation, and property collection in the QuestGenerator object, it quickly became more complex as more conditional logic was added, since that had to be duplicated across the three concerns. Having a single linear code path leads to less code duplication. Review-Url: https://codereview.chromium.org/3002903002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/6497b94a07fe6251a473ad1743a1444e7b0e1787

Patch Set 1 #

Patch Set 2 : quest_parser module #

Total comments: 15

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -262 lines) Patch
M dashboard/dashboard/pinpoint/handlers/jobs_test.py View 2 chunks +2 lines, -9 lines 0 comments Download
M dashboard/dashboard/pinpoint/handlers/new.py View 1 2 3 chunks +17 lines, -15 lines 0 comments Download
A dashboard/dashboard/pinpoint/handlers/quest_generator.py View 1 2 1 chunk +111 lines, -0 lines 0 comments Download
A dashboard/dashboard/pinpoint/handlers/quest_generator_test.py View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
M dashboard/dashboard/pinpoint/models/job.py View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D dashboard/dashboard/pinpoint/models/quest_generator.py View 1 chunk +0 lines, -111 lines 0 comments Download
D dashboard/dashboard/pinpoint/models/quest_generator_test.py View 1 chunk +0 lines, -126 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
dtu
Wdyt of this alternative to QuestGenerator?
3 years, 4 months ago (2017-08-17 22:32:42 UTC) #3
dtu
On 2017/08/17 22:32:42, dtu wrote: > Wdyt of this alternative to QuestGenerator? I can add ...
3 years, 4 months ago (2017-08-17 22:33:09 UTC) #4
perezju
On 2017/08/17 22:33:09, dtu wrote: > Although it appeared more organized to separate the > ...
3 years, 4 months ago (2017-08-18 09:24:05 UTC) #5
dtu
On 2017/08/18 09:24:05, perezju wrote: > On 2017/08/17 22:33:09, dtu wrote: > > Although it ...
3 years, 4 months ago (2017-08-21 23:26:39 UTC) #6
perezju
On 2017/08/21 23:26:39, dtu wrote: > On 2017/08/18 09:24:05, perezju wrote: > > On 2017/08/17 ...
3 years, 4 months ago (2017-08-22 09:43:33 UTC) #7
dtu
Here it is, in its own module with tests. Also considering creating a Quest.ParseArgs(), so ...
3 years, 4 months ago (2017-08-23 00:22:23 UTC) #8
perezju
lgtm w/few nits and comments > Also considering creating a Quest.ParseArgs(), so that each > ...
3 years, 4 months ago (2017-08-23 08:59:59 UTC) #9
perezju
https://codereview.chromium.org/3002903002/diff/20001/dashboard/dashboard/pinpoint/handlers/quest_parser.py File dashboard/dashboard/pinpoint/handlers/quest_parser.py (right): https://codereview.chromium.org/3002903002/diff/20001/dashboard/dashboard/pinpoint/handlers/quest_parser.py#newcode29 dashboard/dashboard/pinpoint/handlers/quest_parser.py:29: return arguments, quests On 2017/08/23 08:59:59, perezju wrote: > ...
3 years, 4 months ago (2017-08-23 09:16:11 UTC) #10
dtu
https://codereview.chromium.org/3002903002/diff/20001/dashboard/dashboard/pinpoint/handlers/new_test.py File dashboard/dashboard/pinpoint/handlers/new_test.py (right): https://codereview.chromium.org/3002903002/diff/20001/dashboard/dashboard/pinpoint/handlers/new_test.py#newcode162 dashboard/dashboard/pinpoint/handlers/new_test.py:162: pass On 2017/08/23 08:59:58, perezju (OOO back on 30 ...
3 years, 4 months ago (2017-08-24 23:17:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/3002903002/40001
3 years, 4 months ago (2017-08-24 23:18:06 UTC) #14
commit-bot: I haz the power
3 years, 4 months ago (2017-08-24 23:45:03 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698