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

Issue 2023283002: [polymer] Rewrite the analysis tab view (Closed)

Created:
4 years, 6 months ago by charliea (OOO until 10-5)
Modified:
4 years, 6 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
git@github.com:zeptonaut/catapult.git@polymer10_rewrite_tab_view2
Target Ref:
refs/heads/polymer10-migration
Project:
catapult
Visibility:
Public.

Description

[polymer] Rewrite the analysis tab view The analysis tab view has been creating all sorts of problems for the polymer migration due to some fairly complex update logic that it uses. This rewrite aims to simplify that logic with a simpler interface and implementation. The changed interface required several changes to the analysis view itself. Most of these changes should be no-ops, with two notable exceptions: 1) We now create new subviews each time that we need them instead of caching subviews when they aren't in use. This came mostly from the fact that I couldn't think of any real advantages of caching them, as they aren't expensive to create in the first place. 2) We no longer save the tab scroll position. This seems like something that, if we find we need, we can add back in without too much hassle. BUG=catapult:#2285 NOPRESUBMIT=true NOTRY=true Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/f4e0af7e64128c86c5576b9534d8052f7e054dca

Patch Set 1 : #

Total comments: 27

Patch Set 2 : Code review #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -816 lines) Patch
M tracing/tracing/ui/analysis/alert_sub_view.html View 1 chunk +1 line, -0 lines 0 comments Download
M tracing/tracing/ui/analysis/analysis_view.html View 1 3 chunks +88 lines, -127 lines 0 comments Download
M tracing/tracing/ui/analysis/analysis_view_test.html View 1 5 chunks +3 lines, -7 lines 0 comments Download
M tracing/tracing/ui/base/tab_view.html View 1 1 chunk +83 lines, -393 lines 3 comments Download
M tracing/tracing/ui/base/tab_view_test.html View 1 1 chunk +92 lines, -289 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
charliea (OOO until 10-5)
https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/analysis/alert_sub_view.html File tracing/tracing/ui/analysis/alert_sub_view.html (right): https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/analysis/alert_sub_view.html#newcode9 tracing/tracing/ui/analysis/alert_sub_view.html:9: <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> found that this import line was ...
4 years, 6 months ago (2016-06-01 15:29:42 UTC) #4
petrcermak
LGTM with a couple of comments once Annie and/or Kari are happy. I suspect we ...
4 years, 6 months ago (2016-06-01 16:47:10 UTC) #5
aiolos (Not reviewing)
https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/base/tab_view.html File tracing/tracing/ui/base/tab_view.html (right): https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/base/tab_view.html#newcode109 tracing/tracing/ui/base/tab_view.html:109: this.$.subView.removeChild(this.selectedSubView_); Is there a reason you aren't using Polymer.dom ...
4 years, 6 months ago (2016-06-01 16:47:37 UTC) #7
charliea (OOO until 10-5)
https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/analysis/analysis_view.html File tracing/tracing/ui/analysis/analysis_view.html (right): https://codereview.chromium.org/2023283002/diff/40001/tracing/tracing/ui/analysis/analysis_view.html#newcode83 tracing/tracing/ui/analysis/analysis_view.html:83: if (!numEvents) On 2016/06/01 16:47:09, petrcermak wrote: > I'd ...
4 years, 6 months ago (2016-06-01 17:33:03 UTC) #11
aiolos (Not reviewing)
lgtm https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base/tab_view.html File tracing/tracing/ui/base/tab_view.html (right): https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base/tab_view.html#newcode115 tracing/tracing/ui/base/tab_view.html:115: You *might* need to flush the dom here, ...
4 years, 6 months ago (2016-06-01 17:40:46 UTC) #12
charliea (OOO until 10-5)
https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base/tab_view.html File tracing/tracing/ui/base/tab_view.html (right): https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base/tab_view.html#newcode115 tracing/tracing/ui/base/tab_view.html:115: On 2016/06/01 17:40:46, aiolos wrote: > You *might* need ...
4 years, 6 months ago (2016-06-01 18:08:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023283002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2023283002/90001
4 years, 6 months ago (2016-06-01 18:09:33 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:90001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/f4e0af7e64128c86c5576b9534d8052f7e054dca
4 years, 6 months ago (2016-06-01 18:09:42 UTC) #19
aiolos (Not reviewing)
4 years, 6 months ago (2016-06-01 18:19:58 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base...
File tracing/tracing/ui/base/tab_view.html (right):

https://codereview.chromium.org/2023283002/diff/90001/tracing/tracing/ui/base...
tracing/tracing/ui/base/tab_view.html:115: 
On 2016/06/01 18:08:47, charliea wrote:
> On 2016/06/01 17:40:46, aiolos wrote:
> > You *might* need to flush the dom here, depending on how quickly
> this.$.subView
> > is accessed afterward.
> 
> Acknowledged. I think my preference here is to only flush it if I find that
for
> some reason it's necessary.

sgtm.

Powered by Google App Engine
This is Rietveld 408576698