-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4984][CORE][WEBUI] Adding a pop-up containing the full job description when it is very long #3819
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
|
Test build #24853 has started for PR 3819 at commit
|
|
Test build #24853 has finished for PR 3819 at commit
|
|
Test FAILed. |
|
Test build #24854 has started for PR 3819 at commit
|
|
Test build #24854 has finished for PR 3819 at commit
|
|
Test PASSed. |
|
This can be turned into a simple mouseover with much less work, no CSS or Javascript. Just display the shortened version, and make the long description the |
|
Hi @srowen, I am not a expert of css/javascript, my question here if do like your suggest(mouseover), can we copy the full sql statement in ui? sometime we want to copy it. |
|
A mouseover can have whatever you like, whatever you can put in a |
|
thanks, i will try with it:) |
|
hi @srowen, i tried like this but i can not copy the "full sql", or i missed something? |
|
@scwf You should be able to put whatever you want in there as the |
|
Sorry, did not get you. Do you mean i put others here( to implement an attribute similar with |
|
I'm suggesting something like replacing with ... when the description is long. This should cause the short description to pop up the full description in a mouseover. Maybe I'm missing something as to why that won't work, but it is a lot simpler at least. |
|
Hi @srowen, this and But this is really much simpler and if you think it's very low probability for user to copy the full desc, i will change it to this simple solution:) |
|
/cc @JoshRosen, can you have a look at this? |
|
Ping @JoshRosen, any comment here? |
|
What do you think about using a styled read-only text form field? Using CSS, we could probably limit the size of what's displayed while still allowing users to double-click to copy the entire field. |
8fe74b0 to
4b55c3b
Compare
|
Test build #25649 has started for PR 3819 at commit
|
|
@JoshRosen Using a read-only text form, the screenshot is like this, also support to copy the description. |
|
Test build #25649 has finished for PR 3819 at commit
|
|
Test PASSed. |
|
Hmm, agree with you, but have not found a easy way to spot truncated description. |
|
Updated @JoshRosen, now use |
|
Test build #25818 has started for PR 3819 at commit
|
|
Test build #25818 has finished for PR 3819 at commit
|
|
Test PASSed. |
|
Ooh, very nice! I didn't know about |
|
I just tried this out in Firefox and it turns out that it won't let you select text from a disabled input element. Apparently this has been a longstanding issue; this bug has been open for 11+ years: https://bugzilla.mozilla.org/show_bug.cgi?id=195361 |
|
I think I found a solution that works in Firefox: replace the |
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.
Why do these all need "!important"? Are there other rules that will take precedence here?
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.
yes, in my debug there is other style will take precedence here. anyway, new version i do not use input and remove "!important"
|
Test build #25868 has started for PR 3819 at commit
|
|
Test build #25868 has finished for PR 3819 at commit
|
|
Test FAILed. |
c5c4822 to
ba02b83
Compare
|
Test build #25869 has started for PR 3819 at commit
|
|
@JoshRosen, yeah, get it, updated. |
|
Test build #25869 has finished for PR 3819 at commit
|
|
Test PASSed. |
|
Ping @JoshRosen is this ok? |
|
Yep, looks good to me. Mind updating the screenshot in the PR description? Do that, ping me, and I'll merge it right away. Thanks! |
|
Ping @JoshRosen updated done |
|
Awesome, thanks! I'm merging this into |
…cription when it is very long In some case the job description will be very long, such as a long sql. refer to apache#3718 This PR add a pop-up for job description when it is long.   Author: wangfei <[email protected]> Closes apache#3819 from scwf/popup-descrip-ui and squashes the following commits: ba02b83 [wangfei] address comments a7c5e7b [wangfei] spot that it's been truncated fbf6162 [wangfei] Merge branch 'master' into popup-descrip-ui 0bca96d [wangfei] remove no use val 4b55c3b [wangfei] fix style issue 353c6f4 [wangfei] pop up the description of job with a styled read-only text form field
|
I think that this feature may no longer be working in recent versions of Spark. Have you tested this recently? |
|
i tested it locally today, seems it is ok. |



In some case the job description will be very long, such as a long sql. refer to #3718
This PR add a pop-up for job description when it is long.