Skip to content
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

[JENKINS-64972] Help-buttons are not working when they are at the top of draggable div #5316

Merged
merged 2 commits into from Mar 4, 2021

Conversation

benebsiny
Copy link
Contributor

@benebsiny benebsiny commented Feb 26, 2021

See JENKINS-64972.

The 'dd-handle' div will make all events in that div (e.g. click event of a button) not triggered, so I move the help-button out of the 'dd-handle' div.
In order to make the button still at the right of the same line, I use "flex" to realize.

See demo:
After

Proposed changelog entries

  • Fix help-buttons in the draggable section (regression in 2.264)

Proposed upgrade guidelines

N/A

Submitter checklist

  • (If applicable) Jira issue is well described
  • Changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developer, depending on the change). Examples
    • Fill-in the Proposed changelog entries section only if there are breaking changes or other changes which may require extra steps from users during the upgrade
  • Appropriate autotests or explanation to why this change has no tests
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@mention

Maintainer checklist

Before the changes are marked as ready-for-merge:

  • There are at least 2 approvals for the pull request and no outstanding requests for change
  • Conversations in the pull request are over OR it is explicit that a reviewer does not block the change
  • Changelog entries in the PR title and/or Proposed changelog entries are correct
  • Proper changelog labels are set so that the changelog can be generated automatically
  • If the change needs additional upgrade steps from users, upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the PR title. (example)
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

… of draggable div

The 'dd-handle' div will make all events in that div (e.g. click event of a button) not triggered, so I move the help-button out of the 'dd-handle' div.
In order to make the button still at the right of the same line, I use flex to realize.
@MarkEWaite MarkEWaite added the regression-fix Pull request that fixes a regression in one of the previous Jenkins releases label Feb 28, 2021
@MarkEWaite
Copy link
Contributor

I've confirmed that I can see the problem this is describing in Jenkins 2.277.1-rc. I've also confirmed that the change resolves the problem when I cherry-pick the change onto my local copy of the stable-2.277 branch. I don't know the risks associated with the change, but have confirmed that it works as expected with Jenkins 2.277.1-rc plus this patch.

My tests were using a Linux Jenkins and a Google Chrome browser on Windows 10.

@timja timja requested a review from fqueiruga February 28, 2021 18:56
Copy link
Contributor

@fqueiruga fqueiruga left a comment

Choose a reason for hiding this comment

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

These changes could also probably be applied to the f:repeatable widget. One good screen to test both these widgets is the Global Tool Configuration screen.

core/src/main/resources/lib/form/hetero-list.jelly Outdated Show resolved Hide resolved
core/src/main/resources/lib/form/hetero-list.jelly Outdated Show resolved Hide resolved
@oleg-nenashev oleg-nenashev added the bug For changelog: Minor bug. Will be listed after features label Mar 3, 2021
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

I tested the fix as well. I confirm it resolves the issue.
Thanks for the patch @benebsiny !

@oleg-nenashev oleg-nenashev requested a review from a team March 3, 2021 11:53
@timja timja requested a review from fqueiruga March 3, 2021 11:54
@timja timja added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Mar 3, 2021
@timja
Copy link
Member

timja commented Mar 3, 2021

This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@oleg-nenashev oleg-nenashev merged commit 7be7079 into jenkinsci:master Mar 4, 2021
@oleg-nenashev
Copy link
Member

Should we expedite backporting of this fix into 2.277.1 @timja @fqueiruga

@timja
Copy link
Member

timja commented Mar 8, 2021

unsure, it seems quite minor and isn't released in a weekly yet. I wasn't sure if it was worth the added risk

@MarkEWaite
Copy link
Contributor

unsure, it seems quite minor and isn't released in a weekly yet. I wasn't sure if it was worth the added risk

I think it is minor enough that it can wait for 2.277.2 backport or later. Give it some time in the weekly.

@MarkEWaite MarkEWaite mentioned this pull request Mar 23, 2021
33 tasks
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 24, 2021
… of draggable div (jenkinsci#5316)

* [JENKINS-64972] Help-buttons are not working when they are at the top of draggable div

The 'dd-handle' div will make all events in that div (e.g. click event of a button) not triggered, so I move the help-button out of the 'dd-handle' div.
In order to make the button still at the right of the same line, I use flex to realize.

* [JENKINS-64972] Move style to CSS file
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 24, 2021
… of draggable div (jenkinsci#5316)

* [JENKINS-64972] Help-buttons are not working when they are at the top of draggable div

The 'dd-handle' div will make all events in that div (e.g. click event of a button) not triggered, so I move the help-button out of the 'dd-handle' div.
In order to make the button still at the right of the same line, I use flex to realize.

* [JENKINS-64972] Move style to CSS file

(cherry picked from commit 7be7079)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback regression-fix Pull request that fixes a regression in one of the previous Jenkins releases
Projects
None yet
6 participants