WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
154924
Web Inspector: hook up grid row filtering in the new Timelines UI
https://bugs.webkit.org/show_bug.cgi?id=154924
Summary
Web Inspector: hook up grid row filtering in the new Timelines UI
Matt Baker
Reported
2016-03-02 10:59:17 PST
* SUMMARY Hook up grid row filtering in the new Timelines UI. Previously filtering operated on the content tree outlines maintained by the navigation sidebar panel, which has been removed. Filtering now needs to be performed on grid data. * NOTES This provides an opportunity to improve filtering in timeline views. Where previously only data associated with a record's tree element (usually titles/subtitles) could be queried, we can now use the cell data for the entire grid row.
Attachments
[Patch] Proposed Fix
(51.47 KB, patch)
2016-04-21 16:57 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(59.72 KB, patch)
2016-04-22 18:27 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Video] empty rows after filter
(661.62 KB, video/mp4)
2016-04-23 13:03 PDT
,
Matt Baker
no flags
Details
[Patch] Proposed Fix
(60.62 KB, patch)
2016-04-23 14:25 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(60.87 KB, patch)
2016-04-24 20:01 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(59.19 KB, patch)
2016-04-25 17:00 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-03-02 10:59:52 PST
<
rdar://problem/24934607
>
Matt Baker
Comment 2
2016-04-21 16:57:50 PDT
Created
attachment 276983
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 3
2016-04-21 17:15:46 PDT
Comment on
attachment 276983
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=276983&action=review
> Source/WebInspectorUI/UserInterface/Views/DataGrid.js:1690 > + NodeWasFiltered: "timelinedatagrid-node-was-filtered"
Drop timeline from the string.
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:722 > + let filters = this._filterBarNavigationItem.filterBar.filters; > + this.currentTimelineView.updateFilter(filters);
Nit: Could be one line.
> Source/WebInspectorUI/UserInterface/Views/TimelineView.js:165 > + }); > + this._timelineDataGrid.addEventListener(WebInspector.DataGrid.Event.NodeWasFiltered, (event) => {
Nit: Add newline.
> Source/WebInspectorUI/UserInterface/Views/TimelineView.js:172 > + }); > + this._timelineDataGrid.addEventListener(WebInspector.DataGrid.Event.FilterDidChange, (event) => {
Nit: Add newline.
> Source/WebInspectorUI/UserInterface/Views/TimelineView.js:190 > + if (filters) > + this._dataGrid.filterText = filters.text; > + else > + this._dataGrid.filterDidChange();
I suspect you would want to do: this._dataGrid.filterText = filters ? filters.text : ""; Otherwise the filterText would not clear on DataGird.
Matt Baker
Comment 4
2016-04-21 18:35:47 PDT
Comment on
attachment 276983
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=276983&action=review
> Source/WebInspectorUI/UserInterface/Views/DataGrid.js:352 > + let filterableData = node.displayName();
This is specific to TimelineDataGridNode. I'll make generic in the next revision, will require additional review.
Matt Baker
Comment 5
2016-04-21 18:44:53 PDT
I just noticed that this patch also breaks filtering in the Network tab.
Timothy Hatcher
Comment 6
2016-04-22 09:19:47 PDT
(In reply to
comment #5
)
> I just noticed that this patch also breaks filtering in the Network tab.
Can you make the Network tab use the Data grid filtering?
Matt Baker
Comment 7
2016-04-22 12:47:19 PDT
(In reply to
comment #6
)
> (In reply to
comment #5
) > > I just noticed that this patch also breaks filtering in the Network tab. > > Can you make the Network tab use the Data grid filtering?
I'll look into it. The data in the tree outline should still be filterable, as long as the resource URL is in the array returned by ResourceDataGridNode's override of DataGridNode's filterableData getter.
Matt Baker
Comment 8
2016-04-22 18:27:59 PDT
Created
attachment 277125
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 9
2016-04-23 11:21:29 PDT
Comment on
attachment 277125
[details]
[Patch] Proposed Fix Do we need to make a change to DataGrid _updateVisibleRows to skip hidden rows? I think we will miscalculate what is visible and have empty space at the bottom of the DataGrid if enough rows get filtered out.
Matt Baker
Comment 10
2016-04-23 12:43:48 PDT
(In reply to
comment #9
)
> Comment on
attachment 277125
[details]
> [Patch] Proposed Fix > > Do we need to make a change to DataGrid _updateVisibleRows to skip hidden > rows? I think we will miscalculate what is visible and have empty space at > the bottom of the DataGrid if enough rows get filtered out.
Just reproduced the issue you described. I'll see if changing _updateVisibleRows fixes it.
Matt Baker
Comment 11
2016-04-23 13:03:09 PDT
Created
attachment 277162
[details]
[Video] empty rows after filter
Matt Baker
Comment 12
2016-04-23 14:25:24 PDT
Created
attachment 277164
[details]
[Patch] Proposed Fix
WebKit Commit Bot
Comment 13
2016-04-24 18:12:19 PDT
Comment on
attachment 277164
[details]
[Patch] Proposed Fix Rejecting
attachment 277164
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 277164, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: fs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ... Currently at 199969 = 0db2b28692b6291d8ee66fdbd5a0b09e99d43a44
r199970
= 1a7ecbe733367e42404d6d5eeb41524157119711
r199971
= 246fe5bb32ca14ae29c17ab6d9b1a5b8bc7290b6
r199972
= edb3a07efc64e938eda12dc4186faa0c69ea1602 Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/origin/master. Full output:
http://webkit-queues.webkit.org/results/1215103
Matt Baker
Comment 14
2016-04-24 20:01:02 PDT
Created
attachment 277214
[details]
[Patch] Proposed Fix Fixed merge issue
WebKit Commit Bot
Comment 15
2016-04-24 20:49:50 PDT
Comment on
attachment 277214
[details]
[Patch] Proposed Fix Rejecting
attachment 277214
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 277214, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: /git.webkit.org/WebKit 162ed14..700a0a6 master -> origin/master Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ... Currently at 199973 = 162ed14131662ee9058c79f2fc8fd28db05464d8
r199974
= 700a0a6780b1e02e634a5597319e27e1eb061998 Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/origin/master. Full output:
http://webkit-queues.webkit.org/results/1215646
Matt Baker
Comment 16
2016-04-25 17:00:28 PDT
Created
attachment 277295
[details]
[Patch] Proposed Fix
WebKit Commit Bot
Comment 17
2016-04-25 17:59:52 PDT
Comment on
attachment 277295
[details]
[Patch] Proposed Fix Clearing flags on attachment: 277295 Committed
r200067
: <
http://trac.webkit.org/changeset/200067
>
WebKit Commit Bot
Comment 18
2016-04-25 17:59:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug