-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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-44640 - Fix NPE checking legacy git SCM URL #499
JENKINS-44640 - Fix NPE checking legacy git SCM URL #499
Conversation
Credential tracking is intended to track relevant and valuable use of the credential, not something as simple as using that credential in a form validation. Form validation is valuable for the user experience of the administrator, but it is not valuable enough to track the credential use in validating the form.
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. |
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.
Or simply delete the comment block; Git history suffices.
So this amends #490 IIUC? |
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 for me 🐝
// action (like poll the repository, clone the repository, publish a change | ||
// to the repository). | ||
// | ||
// CredentialsProvider.track(item, credential); |
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'd remove this line. The comment should suffice to prevent others trying to add back
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 think I misinterpreted your "remove this line" to instead remove the entire block. I'll bring back the comment block and remove only the commented call to CredentialsProvider.track()
The comment is sufficient to explain why the implementation call is not used.
f7fe8eb
to
f90a852
Compare
Credential tracking is intended to track relevant and valuable use of
the credential, not something as simple as using that credential in a
form validation.
Form validation is valuable for the user experience of the
administrator, but it is not valuable enough to track the credential
use in validating the form.
Requesting @reviewbybees and by @stephenc to confirm that I've
correctly understood the vision for credential tracking.