Skip to content

Add sample for cloudevents-nodejs #2446

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

Conversation

csantanapr
Copy link
Member

Signed-off-by: Carlos Santana [email protected]

Fixes #2445

cc @lance @mattmoor

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label May 12, 2020
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 12, 2020
Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

I'm no node expert, but a couple of drive-by comments.

Thanks for putting this together! 🎉

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

So glad to see some of the upcoming API in use.

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

"files.insertFinalNewline": true in VSCode config should enable auto insert of new line if one doesn’t exist. ;)

@csantanapr
Copy link
Member Author

@mattmoor @lance let me know if this is good for now to merge this PR, I can do another update once the sdk 2.0 is out.

I think I'm done with the last changes, looks good that I can use as starting point to build a cool demo on top using brokers and triggers

Copy link
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Awesome!!! Just couple of nits I think? Thanks!!

@csantanapr
Copy link
Member Author

thanks @vaikas for the quick review, I think I addressed all your comments

@vaikas
Copy link
Contributor

vaikas commented May 13, 2020

/lgtm
/hold
Holding since other folks had comments also, but thanks for doing this!!!

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 13, 2020
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2020
@csantanapr
Copy link
Member Author

Ah its /hold I was looking for a way to put the PR in Draft for wip with /draft or /wip

@lance
Copy link
Member

lance commented May 13, 2020

@csantanapr LGTM

@vaikas
Copy link
Contributor

vaikas commented May 19, 2020

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 19, 2020
@vaikas
Copy link
Contributor

vaikas commented May 19, 2020

/approve

@mattmoor
Copy link
Member

@csantanapr looks like you need another file, see the other PR that landed recently for the right way:

index_test.go:81: Could not verify docs: README.md missing bundle (you need an 'index.md' or '_index.md') in "docs/serving/samples/cloudevents/cloudevents-nodejs"

@mattmoor
Copy link
Member

/unhold

I think the two things this needs are:

  1. the license header
  2. the index.md thing from the test failure

Otherwise I tried it with and without K_SINK and it worked great 🎉

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 20, 2020
@mattmoor
Copy link
Member

We also need to update the table here: https://github.com/knative/docs/blob/master/docs/serving/samples/README.md

@csantanapr
Copy link
Member Author

csantanapr commented May 20, 2020

/hold

Thanks to all for reviewing the PR

I saw the other day from Evan on the refactor for the index.md and the testing for consistently +1

I will rebase and squash and update.

I was thinking on looking on adding functional e2e similar to the hello samples to avoid PITA manual testing but that would be a different PR

What you folks think on adding typescript version or Deno? Maybe one sample to cover both Deno and typescript ?

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 20, 2020
@mattmoor
Copy link
Member

@csantanapr Ha! I was just asking about mirroring that test setup in #test now that these are expanding to more languages. I agree about doing that separately, and if you'd be willing to help drive that it'd be awesome!

@csantanapr
Copy link
Member Author

@mattmoor yes I will also work on e2e tests good opportunity for me stop procrastinating and getting my hands dirty with some Go

@csantanapr csantanapr force-pushed the issuexx-add-cloudevent-sample-nodejs branch from d960219 to 3e08667 Compare May 20, 2020 22:43
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 20, 2020
Signed-off-by: Carlos Santana <[email protected]>
@csantanapr csantanapr force-pushed the issuexx-add-cloudevent-sample-nodejs branch from f5eaa28 to 96523ee Compare May 21, 2020 02:16
@csantanapr
Copy link
Member Author

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 21, 2020
@csantanapr
Copy link
Member Author

@mattmoor or @vaikas can you give this PR another look.
I tried to address all the feedback

@mattmoor
Copy link
Member

/approve

Going to approve so the next push stages it :)

Signed-off-by: Carlos Santana <[email protected]>
@csantanapr
Copy link
Member Author

thanks @mattmoor I added license headers

@csantanapr
Copy link
Member Author

And no # Foo to be found 😅

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

Signed-off-by: Carlos Santana <[email protected]>
@csantanapr
Copy link
Member Author

@mattmoor bump

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 22, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csantanapr, mattmoor, vaikas

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

@knative-prow-robot knative-prow-robot merged commit 7c8c382 into knative:master May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sample for cloudevents-nodejs
6 participants