-
Notifications
You must be signed in to change notification settings - Fork 66
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
Reject submit if api token or cert id are empty #756
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.
/lgtm
/lgtm |
101b195
to
b9555dd
Compare
0a18871
to
b8fb86a
Compare
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.
We already discussed this offline, but for the record (happy to be in the minority of opinion, of course, and this is not blocking): I just don't feel like this adds a huge amount of value to us.
We effectively special-case a single flag's behavior in a bit of a unique/opaque way, in an effort to ensure that the submit flag wasn't "eaten" by another. This feels a bit weird to do.
It's a small change, and so for that reason, I'm not going to block on that opinion that may not be shared. Few comments, otherwise looks okay.
/retest |
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.
Just a few final questions. Otherwise, this looks ok.
Just setting the flags to required on submit doesn't test for whether the flags are actually provided. It only checks for their existence. This code checks that the data is actually provided, and that another flag isn't accidentally accepted as the value. Fixes redhat-openshift-ecosystem#754 Signed-off-by: Brad P. Crochet <brad@redhat.com>
Addressed. |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acornett21, bcrochet, komish, skattoju The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Just setting the flags to required on submit doesn't test for whether
the flags are actually provided. It only checks for their existence.
This code checks that the data is actually provided, and that another
flag isn't accidentally accepted as the value.
Fixes #754
Signed-off-by: Brad P. Crochet brad@redhat.com