-
-
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-55787] Switch labels from entry to checkbox #3921
Conversation
@oleg-nenashev Why the label? |
My bad. I believe I messed up something while editing label descriptions |
@@ -73,7 +73,7 @@ public void parameterTypes() throws Exception { | |||
System.out.println(o); | |||
HtmlCheckBoxInput booleanParameterInput = (HtmlCheckBoxInput) o; | |||
assertEquals(true, booleanParameterInput.isChecked()); | |||
assertEquals("boolean", ((HtmlElement) DomNodeUtil.selectSingleNode(element, "td[@class='setting-name']")).getTextContent()); | |||
assertEquals("boolean", ((HtmlElement) DomNodeUtil.selectSingleNode(element, "td[@class='setting-main']")).getTextContent()); |
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.
Why does it happen?
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.
In the old style, you have something roughly like:
setting-name | setting-main |
---|---|
Label | [x] |
In the new, it's closer to:
setting-name | setting-main |
---|---|
~ | [x] Label |
@jsoref does something change in the UI? |
@varyvol: yes, as shown in the issue description |
Did you have then the opportunity to run ATH tests? |
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.
Weak +1. I have not checked all the forms, but it looks reasonable in all cases I see.
@varyvol ATH should not be affected if they query forms using the common API. I do not think there is a need to run it here
@jenkinsci/core Few extra reviews will be appreciated |
core/src/main/resources/hudson/model/StringParameterDefinition/config.jelly
Outdated
Show resolved
Hide resolved
Of course plugins should not assume particular core resource paths exist. |
@jglick : https://issues.jenkins-ci.org/browse/JENKINS-57346 ~24 plugins would need to be cleaned up to properly address your concern. And in doing so, that will mean that they'll each essentially be forking content... I'm not 100% certain that's the right choice, but... |
Still needs more approvals from @jenkinsci/core |
@dwnusbaum, @jglick: updated... |
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.
I don't see any obvious problems and the ATH seems to be fine with the changes, so a weak +1 from me.
Probably we should wait for the feedback from @jglick before merging |
bump @jglick . I tentatively plan to merge it on Thursday if there is no negative feedback |
core/src/main/resources/hudson/model/BooleanParameterDefinition/help-boolean-default_zh_CN.html
Show resolved
Hide resolved
https://issues.jenkins-ci.org/browse/JENKINS-59388 reports this as a bug. |
<f:checkbox title="${h.escape(it.name)}" description="${it.formattedDescription}" name="value" checked="${it.value}" readonly="true" /> |
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.
See JENKINS-55787.
This is split from #3895 -- it's independent
Proposed changelog entries
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers