Retrurn error if exist duplicate key in filter option#575
Retrurn error if exist duplicate key in filter option#575knative-prow-robot merged 1 commit intoknative:masterfrom
Conversation
|
Hi @MIBc. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
|
The following is the coverage report on the affected files.
|
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MIBc, navidshaikh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
rhuss
left a comment
There was a problem hiding this comment.
thanks, looks good to me !
While we are at it: both methods you changed have quite some overlap. I would prefer to have a single method, which takes another boolean parameter, whether to check for filters to delete. Thinking again, we could even keep the removal of types even for create as a no-op, as you can't easily use filter key with a trailing dash anyway (how would you update those ?). So we could keep a single method for both create & update.
Would you mind to combine these two methods already within this PR ?
|
or then maybe in a next PR ;-) |
|
(was too slow ...) |
|
Sure, I will do. |
|
Yes. I will try. Thanks! |
Fixes #569
Proposed Changes
*Return error if user set duplicate key in
--filteroption. For example,kn trigger create --filter type=bla --filter type=blub test.