Skip to content

Conversation

@PavithraRamachandran
Copy link
Contributor

@PavithraRamachandran PavithraRamachandran commented Oct 23, 2019

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:
Screenshot from 2019-10-23 11-23-00
After change: on Double click over decription
Screenshot from 2019-10-23 11-20-02

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually test

$(".description-input").dblclick(function() {
$(this).removeClass("description-input").addClass("description-input-full");
});
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Member

@wangyum wangyum Oct 23, 2019

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");	
    });
});

Copy link
Contributor Author

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

@wangyum
Copy link
Member

wangyum commented Oct 23, 2019

ok to test

@SparkQA
Copy link

SparkQA commented Oct 23, 2019

Test build #112540 has finished for PR 26222 at commit c07c0b3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@srowen srowen left a 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

@gengliangwang
Copy link
Member

gengliangwang commented Oct 23, 2019

@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 .click event, it requires only one click, instead of double click.

@PavithraRamachandran
Copy link
Contributor Author

@gengliangwang i rebuilt in my local setup and tested again. Its working .i rechecked

@PavithraRamachandran PavithraRamachandran changed the title [SPARK-29504][WebUI]show full decription when double click on ellipse [SPARK-29504][WebUI]show full decription when .click on ellipse Oct 23, 2019
@gengliangwang
Copy link
Member

@PavithraRamachandran Sorry my browser loaded the cached script. I try cmd + shift + R on my MacBook and it works.

@gengliangwang gengliangwang changed the title [SPARK-29504][WebUI]show full decription when .click on ellipse [SPARK-29504][WebUI] Toggle full job description on click Oct 23, 2019
@gengliangwang
Copy link
Member

@PavithraRamachandran I have updated the PR title and description for you.
If my modification is OK to you, I will merge this one.

@PavithraRamachandran
Copy link
Contributor Author

@gengliangwang thank you . Could you merge?

Copy link
Member

@gengliangwang gengliangwang left a 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

@gengliangwang
Copy link
Member

@PavithraRamachandran sorry I think the fix should be ported into branch-2.4 as well, since the regression exists in branch-2.4 #25484
Could you create a PR to port the change to branch-2.4?

PavithraRamachandran added a commit to PavithraRamachandran/spark that referenced this pull request Oct 31, 2019
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:
![Screenshot from 2019-10-23 11-23-00](https://user-images.githubusercontent.com/51401130/67361914-827b0080-f587-11e9-9181-d49a6a836046.png)
After change: on Double click over decription
![Screenshot from 2019-10-23 11-20-02](https://user-images.githubusercontent.com/51401130/67361936-932b7680-f587-11e9-9e59-d290abed4b70.png)

No

Manually test

Closes apache#26222 from PavithraRamachandran/jobs_description_tooltip.

Authored-by: Pavithra Ramachandran <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants