Skip to content

Conversation

@lance
Copy link
Contributor

@lance lance commented Nov 2, 2020

This commit modifies the Node.js template so that it returns a CloudEvent. The
tests are also modified to test for CloudEvent attributes and headers. Additionally
the faas-js-runtime bump reverses the parameters for the function.

Fixes: #190
Fixes: #194

Signed-off-by: Lance Ball lball@redhat.com

@lance lance added the templates/node Related to the Node.js function templates label Nov 2, 2020
@lance lance requested a review from a team November 2, 2020 21:35
@lance lance self-assigned this Nov 2, 2020
@lance lance marked this pull request as draft November 2, 2020 21:52
@lance
Copy link
Contributor Author

lance commented Nov 2, 2020

Converting to draft so that I can also include a fix for #194

This commit modifies the Node.js template so that it returns a CloudEvent. The
tests are also modified to test for CloudEvent attributes and headers. Additionally
the faas-js-runtime bump reverses the parameters for the function.

Fixes: knative#190
Fixes: knative#194

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance force-pushed the 190-nodejs-ce-responses branch from 9edad24 to 6932ef2 Compare November 3, 2020 19:24
@lance lance marked this pull request as ready for review November 3, 2020 19:24
@lance
Copy link
Contributor Author

lance commented Nov 3, 2020

@boson-project/core PTAL

Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

LGTM

@lance lance merged commit 6110d50 into knative:main Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

templates/node Related to the Node.js function templates

Projects

None yet

2 participants