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

Fix optional property layout of inline help #211

Merged
merged 1 commit into from
May 31, 2022

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented May 31, 2022

On Jenkins 2.346 and later the new UI layout breaks with the current way this plugin uses optional properties. The inline help icon is misaligned and it doesn't work when clicking on it.

image

f:optionalProperty doesn't support the help attribute, however the
underlying f:optionalBlock does. This adds a local copy of
optionalProperty with the help attribute which fixes the layout.

I filed in parallel jenkinsci/jenkins#6615 to fix this at core level and allow removing the local tag copy later.

Capture d’écran 2022-05-31 à 09 16 04

Submitter checklist

  • JIRA issue is well described
  • Appropriate autotests or explanation to why this change has no tests

f:optionalProperty doesn't support the help attribute, however the
underlying f:optionalBlock does. This adds a local copy of
optionalProperty with the help attribute which fixes the layout.
</table>
</f:entry>

<!-- TODO replace with f:optionalProperty once the plugin relies on a version of Jenkins with https://github.com/jenkinsci/jenkins/pull/6615 -->
Copy link
Member Author

Choose a reason for hiding this comment

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

@Vlatombe
Copy link
Member Author

cc @kuisathaverat

@kuisathaverat
Copy link

it is similar to jenkinsci/ssh-agents-plugin#283, on the SSH Build Plugin was resolved by enclosing everything into an entry.

@kuisathaverat kuisathaverat merged commit c7a2b39 into jenkinsci:main May 31, 2022
@Vlatombe Vlatombe deleted the optionalProperty-help branch May 31, 2022 08:15
@Vlatombe
Copy link
Member Author

Vlatombe commented Jun 1, 2022

@kuisathaverat Looks like CD release did not happen. Can you relaunch it?

@kuisathaverat
Copy link

I have to review what are the "interested" labels, bug, fix, bugfix are not that kind of label 🤷‍♂️

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.

2 participants