-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[FIXED JENKINS-38960] Deprecate getIconFilePathPattern and switch to IconSpec #2590
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
…entially - Such a pity that we don't auto-populate the CSS with the image sources for all the icons
Here is a screenshot showing the New Item page after the change: Points to note:
|
🐝 |
Test failure is unrelated @reviewbybees done |
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.
IMHO it requires some tests of the FreestyleProject logic at least
@@ -189,6 +192,7 @@ public String getCategoryId() { | |||
* @return A string or null if it is not defined. | |||
* | |||
* @since 2.0 | |||
* @deprecated prefer {@link #getIconClassName()} |
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.
🐜 Also must have the @Deprecated
annotation
@@ -203,6 +207,7 @@ public String getIconFilePathPattern() { | |||
* @return A string or null if it is not defined. | |||
* | |||
* @since 2.0 | |||
* @deprecated prefer {@link #getIconClassName()} |
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.
🐜 same
@oleg-nenashev I have added the annotations. w.r.t. adding a test case, I do not think that it should block merging this:
|
@oleg-nenashev you are currently blocking |
👎 I cannot be agreed. I prefer the current way to describe a graphical resource. Please, find here other example. |
|
@recena I will create a PR against the Maven plugin so. This pattern stuff should never have been done that way. The whole point of using the IconSet stuff was to remove the reliance on hardcoded paths... nevermind that the paths you are generating with that way are not cachable by the browser. |
Well, you should create a PR for several plugins, the same way as I did.
Well I have a different PoV.
The information generated by 🐛 for deprecating methods with few months of live |
@recena the method you chosen should never have been exposed in the first place. It basically broke the entire reason for existence of the icon module. I might disagree with how the Icon module does things, but the Icon module is the way we are supposed to do things until somebody files changes against it to switch to another way. I have been filing PRs against all the plugins that I find, e.g. jenkinsci/maven-plugin#84, jenkinsci/workflow-multibranch-plugin#38, etc. Additionally, any code that uses the old way will continue to work. Plugins only need to implement Have you a personal interest in the method that I am deprecating? |
@stephenc As I said before...
This is your opinion. Not mine. |
@stephenc What do you think if we include |
@recena that is a question you should direct at the icon-module maintainer. Please stop blocking this PR because you have issues with the icon-module. At this point in time the icon module is the way that icons are supposed to be referenced. This PR fixes the issue |
@recena I will say that an |
I'm totally disagree with the idea behind of this PR but it seems clear it is very difficult changing some things in Jenkins. |
🐝 but I'll continue with 👎 |
@reviewbybees done |
@stephenc These statements (assertive) do not help to change or to improvement. |
@recena we may both have objections to But until that decision has been reversed by the community/governance board, that decision stands. While that decision stands, code that does not follow I encourage you to petition the community to reverse the |
👎 for merging without waiting for a response from people, who requested changes and bugged the PR |
There was a negative community feedback, which has not been outvoted by @jenkinsci/code-reviewers. IMHO it's a violation of the community process, which may lead to CoC compliance discussion in such way. Please do not do it |
@recena @jenkinsci/code-reviewers Should this PR be reverted? Or is there a chance to get an agreement before the weekly? |
See JENKINS-38960
@jenkinsci/code-reviewers @reviewbybees
/cc @michaelneale I'm wondering if BO is using the now deprecated information
/cc @recena You added the original method, I cannot find in jelly where it is used... and hints/tips as to where else I need to apply fix-up (already fixing some of the SCM-API usage)