- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28.9k
[SPARK-29504][WebUI] Toggle full job description on click #26222
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
[SPARK-29504][WebUI] Toggle full job description on click #26222
Conversation
| $(".description-input").dblclick(function() { | ||
| $(this).removeClass("description-input").addClass("description-input-full"); | ||
| }); | ||
| }); | 
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.
We supported this feature before. https://github.com/apache/spark/pull/25374/files#diff-c794386db0ef43c8090b67c83cf6b950L81-L89
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.
@wangyum yes. It was present. But
https://github.com/apache/spark/pull/25374/files
removed additonal-metrics.js whch had the function for this double click event.
So this feature was broken.
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.
Could you update your changes to
$(function() {
    // Show/hide full job description on click event.	
    $(".description-input").click(function() {	
        $(this).toggleClass("description-input-full");	
    });
});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.
@wangyum i have changed. could you check
| ok to test | 
| Test build #112540 has finished for PR 26222 at commit  
 | 
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.
Looks reasonable if it restores previous functionality
| @PavithraRamachandran I took a quick try with the code changes in this PR and it doesn't work. Could you double confirm that? Also, I think the PR title and description should be updated. For the  | 
| @gengliangwang i rebuilt in my local setup and tested again. Its working .i rechecked | 
| @PavithraRamachandran Sorry my browser loaded the cached script. I try  | 
| @PavithraRamachandran I have updated the PR title and description for you. | 
| @gengliangwang thank you . Could you merge? | 
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, merging to master
| @PavithraRamachandran sorry I think the fix should be ported into branch-2.4 as well, since the regression exists in branch-2.4 #25484 | 
On clicking job description in jobs page, the description was not shown fully. Add the function for the click event on description. when there is a long description of a job, it cannot be seen fully in the UI. The feature was added in apache#24145 But it is missed after apache#25374 Before change:  After change: on Double click over decription  No Manually test Closes apache#26222 from PavithraRamachandran/jobs_description_tooltip. Authored-by: Pavithra Ramachandran <[email protected]> Signed-off-by: Gengliang Wang <[email protected]>
What changes were proposed in this pull request?
On clicking job description in jobs page, the description was not shown fully.
Add the function for the click event on description.
Why are the changes needed?
when there is a long description of a job, it cannot be seen fully in the UI.
The feature was added in #24145
But it is missed after #25374
Before change:


After change: on Double click over decription
Does this PR introduce any user-facing change?
No
How was this patch tested?
Manually test