-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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-71252][JENKINS-70793] Multiple form validation fixes #8422
Conversation
validationArea.after(element); | ||
}); | ||
} | ||
validationArea.style.height = "auto"; | ||
|
||
Behaviour.applySubtree(validationArea); | ||
// For errors with additional details, apply the subtree to the expandable details pane |
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.
This line and following are probably obsolete now and can be deleted?
@janfaracik we'll select the next LTS baseline this week. I think this looks like a very promising fix to consider including in Jenkins 2.426 weekly so that it can be included in the Nov 15, 2023 LTS release. Would you be willing to review it? |
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 sensible
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
…sci#8422) * [JENKINS-71252] Show form validation for hidden elements * [JENKINS-70793] Clear all validation output on update --------- Co-authored-by: Daniel Beck <[email protected]> (cherry picked from commit 012fa00)
See JENKINS-71252 and JENKINS-70793.
(The fix for JENKINS-70793 only works with the fix for JENKINS-71252.)
JENKINS-71252
Per https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight,
Requesting review by @janfaracik to understand whether there's any reason to use this over
auto
.JENKINS-70793
https://github.com/jenkinsci/jenkins/pull/6460/files#diff-10922aee3260853be495a09cf3bf13bf5f931bc128e334807e3008ff00b57651R523-R528 looked sus, so I deleted it.
https://github.com/jenkinsci/jenkins/pull/6460/files#r862952504 looks a little concerning, but I was unable to reproduce that with sample plugins. Requesting @timja review just in case.
Testing done
Followed the steps to reproduce in my Jira comment to JENKINS-71252.
Installed @yaroslavafenkin's demo plugin for JENKINS-71252 and confirmed it behaved correctly.
Patched the demo plugin JENKINS-71252 to have a stack trace like described in JENKINS-70793, and tested.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist