-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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-36593] - Make ItemCategory#MIN_TOSHOW restricted #2449
[FIXED JENKINS-36593] - Make ItemCategory#MIN_TOSHOW restricted #2449
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. |
🐝 although this field was introduced in middle of a long process and my recommendation today is to remove it. Really, the service consumer (front-end for example) is who should decide the rendering conditions. |
@oleg-nenashev How a user is able to change this static field? |
@oleg-nenashev I'm considering to remove my bee 😄 |
@recena Non-final static fields can be easily changed. E.g. by invoking |
@oleg-nenashev I don't see the problem in this case. This value is only a default value, as a reference to the developer of |
Just to summarize the problem, public static fields are evil from the API maintenance perspective. Once you introduce and release the field, there is no real way back. For example, you cannot remove this field without a formal binary compatibility breakage in the Jenkins core.
|
@oleg-nenashev I understand what you try to achieve but I hope some day, Jenkins provides a policy to deprecate and remove methods, fields, etc. |
This API deprecation engine originally was in 2.0 scope. I'm not sure if
|
@recena Are you fine with the explanation? |
@oleg-nenashev Sure. |
@reviewbybees done |
* [JENKINS-36593] - ItemCategory#MIN_TOSHOW should be restricted * [JENKINS-36593] - Add Javadoc (cherry picked from commit 4577cf6)
https://issues.jenkins-ci.org/browse/JENKINS-36593
@reviewbybees and esp. @recena