New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8260581: IGV: enhance node search #2285
Conversation
Change the default quick search property to "label", to allow users to search by node id or name by default, instead of name only. Re-compute the "label" property every time node labels are updated.
|
@robcasloz The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
/summary |
@robcasloz Setting summary to:
|
Adding an explicit "Recent Searches" category rather than the default, implicit one triggers two issues: - IGV does not show the recent searches when clicking into the search bar. - IGV selects random nodes in the list of matches instead of the top one.
/summary |
@robcasloz Updating existing summary to:
|
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, it looks good to me.
I applied your patch and tested the new features in the IGV. They work as expected. Good to see the search being improved!
src/utils/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/NodeQuickSearch.java
Outdated
Show resolved
Hide resolved
@robcasloz This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 80 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@chhagedorn, @iwanowww) but any other Committer may sponsor as well.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Finally!
Thanks Christian and Vladimir for reviewing! I will wait a couple more days in case anyone else has comments. |
Sort otherwise equally relevant matches by node id, which is by default the first word in node labels. Thanks to Christian Hagedorn for the suggestion and (slightly adapted) patch.
/contributor add @chhagedorn |
@robcasloz |
Commit 981e903 adds a match sorting refinement contributed by @chhagedorn (numeric sorting of same-rank matches), please re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the additional sorting suggestion! Looks good to me.
I applied the patch again and everything works as expected in the IGV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I ran it with your patch. it works as expected.
Thanks again, Christian! |
Thanks for reviewing, Xin! |
/integrate |
@robcasloz |
Please sponsor. |
/sponsor |
@iwanowww @robcasloz Since your change was applied there have been 80 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit ae2c5f0. |
Apply several enhancements to the quick node search functionality:
As an illustration of some of these enhancements, this screenshot shows the behavior of the quick node search functionality before the changes:
and after:
Tested manually on small and large (~10000 nodes) graphs. Thanks to Christian Hagedorn for feedback on several iterations of the enhancements.
As part of the review, please evaluate not just the code changes but also the usability.
Progress
Issue
Reviewers
Contributors
<chagedorn@openjdk.org>
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2285/head:pull/2285
$ git checkout pull/2285