-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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-72018] Form entries in .repeated-chunk using .show-if-not-only CSS class are not hidden when they are alone #8491
Conversation
…ted-chunk .show-if-not-only ones. Without these CSS classes, form entries using .show-if-not-only class are not hidden when alone.
Effectively reverts #6471. Probably re-introduces the warnings motivating that PR (but for correct behavior, seems the lesser evil). |
Interactive test with Subversion plugin (see screenshots in Jira) passes, but autotests fail. Looks like HTMLUnit may lack support for what's a legal (and quite basic?) selector. Unsure how to go about fixing those, perhaps JTH change to make https://github.com/jenkinsci/jenkins-test-harness/blob/3b9790f39c3106398edda1133833caf9c31532af/src/main/java/org/jvnet/hudson/test/JenkinsRule.java#L2337 more tolerant, reverting parts of jenkinsci/jenkins-test-harness#530, and applying the same change to jenkins/test/src/test/java/jenkins/bugs/Jenkins14749Test.java Lines 77 to 78 in c5fbbbe
Ideally we'd find a way to express the same rule in a manner not resulting in an HTMLUnit warning however. |
Per HtmlUnit/htmlunit-cssparser#36, Awkward that it's documented in
Perhaps
This makes the autotest pass at least (not manually tested). |
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.
(Per previous comment)
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
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.
Works well in interactive testing with Subversion SCM modules in freestyle jobs.
Nesting of selectors looks error-prone, but this basically only restores what we had before the "cleanup", so seems tolerable.
When going from "not only" to "only", the "X" disappears well before the grey circle, but it doesn't look too 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.
nice fix
/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!
Form entries in .repeated-chunk using .show-if-not-only CSS class are not hidden when they are alone, because there are missing CSS class definitions.
See JENKINS-72018.
Testing done
Yes, and adding the missing CSS classes fix the issue.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
@Restricted
or have@since TODO
Javadocs, as appropriate.@Deprecated(since = "TODO")
or@Deprecated(forRemoval = true, since = "TODO")
, if applicable.eval
to ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist
upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidate
to be considered (see query).