Skip to content

Add sample for cloudevents-nodejs - #2446

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
csantanapr:issuexx-add-cloudevent-sample-nodejs
May 22, 2020
Merged

knative-prow-robot merged 3 commits into
knative:masterfrom
csantanapr:issuexx-add-cloudevent-sample-nodejs

Conversation

@csantanapr

Copy link
Copy Markdown
Contributor

Signed-off-by: Carlos Santana csantana@us.ibm.com

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

@mattmoor mattmoor left a comment

Copy link
Copy Markdown
Contributor

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! 🎉

@lance lance left a comment

Copy link
Copy Markdown
Contributor

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.

@lance lance left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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

@vaikas vaikas left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@vaikas

vaikas commented May 13, 2020

Copy link
Copy Markdown
Contributor

/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
Copy Markdown
Contributor Author

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

@lance

lance commented May 13, 2020

Copy link
Copy Markdown
Contributor

@csantanapr LGTM

@vaikas

vaikas commented May 19, 2020

Copy link
Copy Markdown
Contributor

/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

vaikas commented May 19, 2020

Copy link
Copy Markdown
Contributor

/approve

@mattmoor

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

/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
Copy Markdown
Contributor

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

@csantanapr

csantanapr commented May 20, 2020 •

Copy link
Copy Markdown
Contributor Author

/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
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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 <csantana@us.ibm.com>
@csantanapr
csantanapr force-pushed the issuexx-add-cloudevent-sample-nodejs branch from f5eaa28 to 96523ee Compare May 21, 2020 02:16
@csantanapr

Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor Author

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

@mattmoor

Copy link
Copy Markdown
Contributor

/approve

Going to approve so the next push stages it :)

Signed-off-by: Carlos Santana <csantana@us.ibm.com>
@csantanapr

Copy link
Copy Markdown
Contributor Author

thanks @mattmoor I added license headers

@csantanapr

Copy link
Copy Markdown
Contributor Author

And no # Foo to be found 😅

@lance lance left a comment

Copy link
Copy Markdown
Contributor

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 <csantana@us.ibm.com>
@csantanapr

Copy link
Copy Markdown
Contributor Author

@mattmoor bump

@mattmoor mattmoor left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Details 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