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

Update cat plugin to use new JSON cat api #9153

Merged
merged 1 commit into from
Aug 24, 2018

Conversation

ixdy
Copy link
Member

@ixdy ixdy commented Aug 24, 2018

The Cat API was recently updated with a completely new and seemingly incompatible API.

The browse/vote interface no longer exists, so source_url was removed from the response. It also seems that CATegories are no longer supported. I've removed this functionality from the cat plugin.

On the plus side, it now supports json, which is moderately nicer than XML.

Fixes #9135.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2018
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. area/prow Issues or PRs related to prow labels Aug 24, 2018
@ixdy
Copy link
Member Author

ixdy commented Aug 24, 2018

I've tested this with -human.

@bobcatfish
Copy link
Contributor

bobcatfish commented Aug 24, 2018

Thank god 😭

@ixdy
Copy link
Member Author

ixdy commented Aug 24, 2018

/woof

@k8s-ci-robot
Copy link
Contributor

@ixdy: dog image

In response to this:

/woof

Instructions 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.

@@ -39,10 +38,7 @@ var human = flag.Bool("human", false, "Enable to run additional manual tests")
var category = flag.String("category", "", "Request a particular category if set")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -354,17 +308,9 @@ func TestCats(t *testing.T) {
state: "open",
action: github.GenericCommentActionCreated,
body: "/meow clothes",
shouldComment: true,
shouldComment: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is a regression in ux a better response here would be to treat this as equivalent to /meow and leave a comment teaching the person that categories are no longer supported.

Then after a few months switch to this behavior.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cat now chomps if you request a category

@fejta
Copy link
Contributor

fejta commented Aug 24, 2018

thanks!

@ixdy
Copy link
Member Author

ixdy commented Aug 24, 2018

/assign @fejta

Copy link
Contributor

@fejta fejta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 24, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fejta, ixdy

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 3f00a50 into kubernetes:master Aug 24, 2018
@ixdy
Copy link
Member Author

ixdy commented Aug 24, 2018

apparently categories, source URL, voting, etc are still supported, just the docs are wrong. not sure we should deploy this after all.

@fejta
Copy link
Contributor

fejta commented Aug 24, 2018

Maybe keep the switch to the json api? (but without the change in category behavior)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants