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

Issue 2537053003: Changing group reports to use an id for multiple keys. (Closed)

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

Description

Changing group reports to use an id for multiple keys. When a user selects alerts (from the alerts/ page), their keys are sent (via post) to /group_report which replies with an id (a hash of the keys, which maps to the keys in the datastore). Then, we redirect to /group_report?id= which (in the ready: function) posts to /group_report_data with the id and receives the applicable keys (and all the other information from before). Also handles ensuring the correct alerts are selected. Adds corresponding tests. Note, the original ?keys=, ?bug_id=, and ?rev= work as before. BUG=catapult:#2876 Review-Url: https://codereview.chromium.org/2537053003 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/b599da01bca9a4e2accd9e3c4ad6266f92f349ec

Patch Set 1 #

Patch Set 2 : cleaned up coded and added tests #

Total comments: 22

Patch Set 3 : n #

Patch Set 4 : minor text fixes #

Total comments: 4

Patch Set 5 : respose to sullivan@ comments #

Total comments: 3

Patch Set 6 : changed logic to better align with /report #

Patch Set 7 : changed logic to better align with /report #

Total comments: 5

Patch Set 8 : cleaning up code #

Patch Set 9 : added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -28 lines) Patch
M dashboard/dashboard/alerts.py View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M dashboard/dashboard/elements/alerts-table.html View 1 2 3 4 5 6 6 chunks +32 lines, -20 lines 0 comments Download
M dashboard/dashboard/elements/group-report-page.html View 1 2 3 4 5 6 4 chunks +16 lines, -1 line 0 comments Download
M dashboard/dashboard/group_report.py View 1 2 3 4 5 6 7 8 6 chunks +19 lines, -6 lines 0 comments Download
M dashboard/dashboard/group_report_test.py View 1 2 3 4 5 6 7 8 3 chunks +28 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (16 generated)
jessimb
PTAL
4 years ago (2016-11-30 22:18:24 UTC) #8
eakuefner
https://codereview.chromium.org/2537053003/diff/20001/dashboard/dashboard/elements/alerts-table.html File dashboard/dashboard/elements/alerts-table.html (right): https://codereview.chromium.org/2537053003/diff/20001/dashboard/dashboard/elements/alerts-table.html#newcode364 dashboard/dashboard/elements/alerts-table.html:364: params['keys'] = ''; nit: write this as params.keys https://codereview.chromium.org/2537053003/diff/20001/dashboard/dashboard/elements/alerts-table.html#newcode365 ...
4 years ago (2016-12-02 19:04:00 UTC) #9
jessimb
Moved group_report_data to it's own file and cleaned up imports. Addressed the other comments as ...
4 years ago (2016-12-02 20:18:06 UTC) #10
eakuefner
lgtm, +Annie for dashboard/ OWNERS
4 years ago (2016-12-02 21:55:24 UTC) #12
sullivan
I'd strongly prefer that we use the same URI flow/naming that /report uses: /short_uri is ...
4 years ago (2016-12-02 22:28:52 UTC) #13
sullivan
On 2016/12/02 22:28:52, sullivan wrote: > I'd strongly prefer that we use the same URI ...
4 years ago (2016-12-02 22:29:35 UTC) #14
jessimb
I'm not entirely sure what you mean here. Are you referring to how I POST ...
4 years ago (2016-12-05 19:04:50 UTC) #15
jessimb
Response to comments by sullivan@ https://codereview.chromium.org/2537053003/diff/60001/dashboard/dashboard/elements/alerts-table.html File dashboard/dashboard/elements/alerts-table.html (right): https://codereview.chromium.org/2537053003/diff/60001/dashboard/dashboard/elements/alerts-table.html#newcode370 dashboard/dashboard/elements/alerts-table.html:370: function getGraphUri(alerts) { On ...
4 years ago (2016-12-05 19:07:04 UTC) #16
sullivan
Sorry, it took me a long time to get the time to dig through the ...
4 years ago (2016-12-21 20:02:16 UTC) #17
sullivan
Draft comments point out specific places to change. https://codereview.chromium.org/2537053003/diff/80001/dashboard/dashboard/elements/alerts-table.html File dashboard/dashboard/elements/alerts-table.html (right): https://codereview.chromium.org/2537053003/diff/80001/dashboard/dashboard/elements/alerts-table.html#newcode1032 dashboard/dashboard/elements/alerts-table.html:1032: simple_xhr.send('/group_report', ...
4 years ago (2016-12-21 20:05:08 UTC) #18
jessimb
PTAL I have implemented the changes you suggested, and I agree it is much cleaner ...
3 years, 11 months ago (2017-01-05 00:39:24 UTC) #21
sullivan
https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report.py File dashboard/dashboard/group_report.py (right): https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report.py#newcode68 dashboard/dashboard/group_report.py:68: self._ShowAlertsForKeys(keys, sid_method) Since the function is called _ShowAlertsForKeys(), it'd ...
3 years, 11 months ago (2017-01-05 17:38:04 UTC) #24
jessimb
PTAL https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report.py File dashboard/dashboard/group_report.py (right): https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report.py#newcode68 dashboard/dashboard/group_report.py:68: self._ShowAlertsForKeys(keys, sid_method) On 2017/01/05 at 17:38:03, sullivan wrote: ...
3 years, 11 months ago (2017-01-05 18:05:06 UTC) #25
sullivan
https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report_test.py File dashboard/dashboard/group_report_test.py (right): https://codereview.chromium.org/2537053003/diff/120001/dashboard/dashboard/group_report_test.py#newcode99 dashboard/dashboard/group_report_test.py:99: self.assertIn('No anomalies specified', error) On 2017/01/05 18:05:06, jessimb wrote: ...
3 years, 11 months ago (2017-01-05 21:11:09 UTC) #26
jessimb
Added in the test. PTAL
3 years, 11 months ago (2017-01-05 22:12:17 UTC) #27
sullivan
lgtm
3 years, 11 months ago (2017-01-05 22:15:20 UTC) #28
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/2537053003/160001
3 years, 11 months ago (2017-01-05 22:35:07 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 23:15:43 UTC) #34
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698