-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-29570][WEBUI] Improve tooltip for Executor Tab for Shuffle Write,Blacklisted,Logs,Threaddump columns #26263
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
Conversation
…te,Blacklisted,Logs,Threaddump columns
### What changes were proposed in this pull request?
All tooltips message will display in center.
### Why are the changes needed?
Some time tooltips will hide the data of column and tooltips display position will be inconsistent in UI.
### Does this PR introduce any user-facing change?
yes.
### How was this patch tested?
Manual test.
Authored-by: Ankit Raj Boudh <ankitrajboudh@gmail.com>
|
@srowen please help me to review this PR |
|
How about we standardize on "auto" everywhere? is that the default? It's good to standardize but I think we can let the browser decide, as the right placement will depend on where the elements show in the window. |
|
I think that's also fine, I will change to auto. |
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
Fixed review comments given by srowen,changed data-placement from top to auto.
|
@srowen, I have fixed the review comments,please check. |
srowen
left a comment
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.
Are these all the data-placement occurrences?
| val headerSpan = tooltip.map { case (title, left) => | ||
| if (left) { | ||
| /* Place the shuffle write tooltip on the left (rather than the default position | ||
| /* Place the shuffle write tooltip on the auto (rather than the default position |
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.
Nit: we need to reword this comment: "Place the tooltip automatically rather than on top because..."
Actually you don't need the if-else here anymore?
It might be worth double-checking that the auto placement on this element works 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.
@07ARB I think we can make one more change here to simplify.
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.
@srowen, auto is not working properly ,tooltips will display always in top-left corner of browser (chrome).

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.
That's weird! OK then let's standardize on anything that displays reasonably everywhere. I think a few of these worked differently on purpose to avoid display issues though; maybe we leave any special logic as-is.
…te,Blacklisted,Logs,Threaddump columns
### What changes were proposed in this pull request?
All tooltips message will display in center.
### Why are the changes needed?
Some time tooltips will hide the data of column and tooltips display position will be inconsistent in UI.
### Does this PR introduce any user-facing change?
yes.
### How was this patch tested?
Manual test.
Authored-by: Ankit Raj Boudh
srowen
left a comment
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.
Generally I'm just wondering if it results in tooltip placement that is not worse in all cases. Standardization is good; in some cases a different placement might still be needed.
| the tooltip is wider than the column, so it doesn't fit on top. */ | ||
| <span data-toggle="tooltip" data-placement="left" title={title}> | ||
| val headerSpan = if (null != tooltip && !tooltip.isEmpty) { | ||
| <span data-toggle="tooltip" data-placement="top" title={tooltip}> |
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.
This is an example of a case where the placement appears to be on purpose. How does this look before and after?
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.
ok i will give you the screenshot
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.
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.
@srowen , please check this if you still feel it's not require then we can close this PR.
|
Display tooltip at center is standard. Looks good to me. |
|
Test build #4917 has finished for PR 26263 at commit
|
|
Test build #4918 has finished for PR 26263 at commit
|
|
Failure test cases not related to this PR. |
|
Test build #4922 has finished for PR 26263 at commit
|
|
Test build #4923 has finished for PR 26263 at commit
|
|
Test build #4927 has finished for PR 26263 at commit
|
|
Test build #4926 has finished for PR 26263 at commit
|
|
Merged to master |
|
@srowen , Thank you for your guidance and i really feel good working with you. |


What changes were proposed in this pull request?
All tooltips message will display in centre.
Why are the changes needed?
Some time tooltips will hide the data of column and tooltips display position will be inconsistent in UI.
Does this PR introduce any user-facing change?
yes.
How was this patch tested?
Manual test.