Skip to content
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

Conversation

MarkEWaite
Copy link
Contributor

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.

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.
@MarkEWaite MarkEWaite requested review from stephenc and a user June 2, 2017 17:19
@ghost
Copy link

ghost commented Jun 2, 2017

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.

Copy link
Member

@jglick jglick left a 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.

@jglick
Copy link
Member

jglick commented Jun 2, 2017

So this amends #490 IIUC?

Copy link
Member

@oleg-nenashev oleg-nenashev left a 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);
Copy link
Member

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

Copy link
Contributor Author

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.
@MarkEWaite MarkEWaite force-pushed the master-PRxxx-npe-passing-null-context-to-credentials branch from f7fe8eb to f90a852 Compare June 2, 2017 17:59
@MarkEWaite
Copy link
Contributor Author

Yes, this amends #490. This is the second amendment to that original pull request. The first was 6641628

@MarkEWaite MarkEWaite closed this Jun 2, 2017
@MarkEWaite MarkEWaite reopened this Jun 2, 2017
@MarkEWaite MarkEWaite merged commit 2903c1a into jenkinsci:master Jun 2, 2017
@MarkEWaite MarkEWaite deleted the master-PRxxx-npe-passing-null-context-to-credentials branch June 2, 2017 19:12
@MarkEWaite MarkEWaite added the bugfix Fixes a bug - used by Release Drafter label Jul 13, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug - used by Release Drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants