Bug 201218 - results.webkit.org: Auto-expand single configurations
Summary: results.webkit.org: Auto-expand single configurations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-28 08:08 PDT by Jonathan Bedard
Modified: 2019-08-28 09:43 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.69 KB, patch)
2019-08-28 08:15 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (4.70 KB, patch)
2019-08-28 09:00 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2019-08-28 08:08:52 PDT
When displaying only a single configuration in the results database, we should auto-expand the timelines. This is of particular interest when the configuration is 'All', but it also seems valid behavior if the user has only specified one configuration.
Comment 1 Jonathan Bedard 2019-08-28 08:15:24 PDT
Created attachment 377441 [details]
Patch
Comment 2 Jonathan Bedard 2019-08-28 08:16:26 PDT
I was originally pretty skeptical of this change, but after trying it out, I think this will almost always end up saving clicks.
Comment 3 Aakash Jain 2019-08-28 08:22:35 PDT
Comment on attachment 377441 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377441&action=review

> Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:480
> +        state: {expanded: options.expanded ? options.expanded : false},

Does this work fine if options.expanded is not defined?
I guess if this is always defined then you could have just used options.expanded instead of ternary operator.
Comment 4 Jonathan Bedard 2019-08-28 08:36:50 PDT
(In reply to Aakash Jain from comment #3)
> Comment on attachment 377441 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=377441&action=review
> 
> > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:480
> > +        state: {expanded: options.expanded ? options.expanded : false},
> 
> Does this work fine if options.expanded is not defined?
> I guess if this is always defined then you could have just used
> options.expanded instead of ternary operator.

If options.expand is not defined, than this expression will be 'false'.

With the current code, we probably don't need the ternary operator, but I think it's better to use it so that we're being explicit about what behavior we have if it's undefined.
Comment 5 Aakash Jain 2019-08-28 08:41:00 PDT
rs=me
Comment 6 Jonathan Bedard 2019-08-28 09:00:43 PDT
Created attachment 377447 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2019-08-28 09:42:47 PDT
Comment on attachment 377447 [details]
Patch for landing

Clearing flags on attachment: 377447

Committed r249202: <https://trac.webkit.org/changeset/249202>
Comment 8 WebKit Commit Bot 2019-08-28 09:42:48 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-08-28 09:43:18 PDT
<rdar://problem/54794407>