-
-
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
Allow formatted markup for node descriptions #6511
Conversation
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 is a nice approach, but I'd recommend to stick to what's already in place.
For description input we're using a codemirror box, like seen on job or user descriptions, with optional syntax support, if enabled in the security realm.
Elevating a jenkins-input to be able to render HTML breaks with the existing handling for these kinds of text input.
I try to find some example. There is editableDescrption page but it does not work on this page. Because this page has an extra config page. Has you some idea? |
Changing the input from a textbox to a textarea in hudson.slaves.DumbSlave.configure-entries.jelly pointing the markup formatter to codemirror does generate named box. |
So editable config description works too. The button to 'swicht temporally offline' is moved too. So it has the same look like in configure job page. |
How does this look in matrix-project? I think that renders node descriptions and should be adapted. Did you check whether project history explains why nodes have plain text |
Nope, I was just angry, because we can not use longer description. We want to fill the description dynamically to get some node specific info when is started / used. Ex:
So we need bigger description field. But I will try to find the reason. It was also terrible for me to fix it, because you true anywhere else it is |
So I have try to find the reason, It looks that it was just "for ever". When you agree, I would create new Jira issue for that. So we can "fix" it little later. I prefer to set the 'nodeDescription' to obsolete, but this can not be decided by me. |
@mPokornyETM Thanks! To clarify, I'm not opposed to this change per se, just wondering whether there's a good reason for the discrepancy in both field name and behavior. I expect we'll merge this or a variant in the end, solving your problem. Re matrix-project, I was surprised by your answer and checked, and while looks like there would be an agent description rendered there, there's no support for that -- everything is treated as a label, not as an agent name, internally: https://github.com/jenkinsci/matrix-project-plugin/blob/7aea491852f39b51379a2f6f2dd490f7d191441e/src/main/java/hudson/matrix/LabelAxis.java#L90-L99 |
@daniel-beck Ah sorry that was misunderstanding from my side. I think it renders some hove the Please allow me one question. What shall be done to finish this PR? |
At the moment, needs more reviews from others, and consequently some patience from you. If anything is missing from this PR, that'll be brought up in reviews. |
thanks, I am patient enough, but I am excited, Like a small child |
To clarify, the comment you quoted was about the phrasing, not the presentation. Thanks for taking care of the margin! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
I merged the physical conflicts but now there is a logical conflict:
|
@daniel-beck thx for caring. |
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.
@mPokornyETM Sorry for the delay here!
TBH I'm trying to figure out what is blocking this. I got assigned after providing early feedback. I provided a suggestion addressing early problems, which you integrated. That had open TODOs that needed resolving, but those have been resolved and the TODOs removed.
Is it just that I didn't unassign myself, so nobody else went near this? I'll try to see whether changing that gets others to take a look 😃 (as a substantial co-author I'm unsure whether I should be approving this.)
core/src/main/resources/jenkins/model/Jenkins/MasterComputer/index-top.properties
Outdated
Show resolved
Hide resolved
Please take a moment and address the merge conflicts of your pull request. Thanks! |
…ndex-top.properties Co-authored-by: Daniel Beck <[email protected]>
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.
/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! |
See JENKINS-XXXXX.
Proposed changelog entries
Before
After
Proposed upgrade guidelines
No
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeThere are no changes in java code.
@Restricted
or have@since TODO
Javadoc, as appropriate.There are no changes in java code.
There are no changes in java code.
Desired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).