2019-10-08 21:43:42 UTC - Alessandro Sanino: @Michele Sciabarra I can try to 
implement the conversion in Go of this js runtime
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571022114400
----
2019-10-08 21:44:33 UTC - Michele Sciabarra: the code is here
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571073114600
----
2019-10-08 21:44:40 UTC - Michele Sciabarra: you know
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571080114900
----
2019-10-08 21:45:55 UTC - Michele Sciabarra: 
<https://github.com/apache/openwhisk-runtime-nodejs/blob/master/core/nodejsActionBase/platform/knative.js>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571155115100
----
2019-10-08 21:46:12 UTC - Michele Sciabarra: I checked the code and it is 
pretty straight forward
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571172115500
----
2019-10-08 21:46:23 UTC - Michele Sciabarra: preprocess to gather the request
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571183115900
----
2019-10-08 21:46:37 UTC - Michele Sciabarra: and post process to build the 
response
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571197116400
----
2019-10-08 21:47:07 UTC - Michele Sciabarra: the main difference you have to 
encode a json request to feed to the action as it is done by the runHandler
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571227117100
----
2019-10-08 21:48:23 UTC - Alessandro Sanino: yeah I think the main issue here 
is that the request does not have always the same format, right?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571303117800
----
2019-10-08 21:48:59 UTC - Michele Sciabarra: actually it has
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571339118100
----
2019-10-08 21:50:19 UTC - Alessandro Sanino: what is the reference project to 
create pull requests?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571419119900
----
2019-10-08 21:50:33 UTC - Michele Sciabarra: {“value”:{“a”:1}, ….} and more 
stuff
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571433120200
----
2019-10-08 21:50:45 UTC - Michele Sciabarra: those more stuff are documented 
here:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571445120600
----
2019-10-08 21:52:21 UTC - Michele Sciabarra: 
<https://github.com/apache/openwhisk/blob/master/docs/actions-new.md>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571541120800
----
2019-10-08 21:52:26 UTC - Michele Sciabarra: see Activation
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571546121100
----
2019-10-08 21:52:32 UTC - Michele Sciabarra: this for the preprocess
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571552121400
----
2019-10-08 21:52:55 UTC - Alessandro Sanino: okay
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571575122100
----
2019-10-08 21:53:00 UTC - Michele Sciabarra: the post process must accept the 
result and decode it as an http/html
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571580122300
----
2019-10-08 21:53:08 UTC - Michele Sciabarra: according this standard:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571588122600
----
2019-10-08 21:53:35 UTC - Michele Sciabarra: 
<https://github.com/apache/openwhisk/blob/master/docs/webactions.md>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571615122800
----
2019-10-08 21:54:28 UTC - Michele Sciabarra: so {“body”: “hello”} must be 
decoded in an html response hello
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571668123600
----
2019-10-08 21:55:08 UTC - Michele Sciabarra: there are others for content type 
headers etc
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571708124300
----
2019-10-08 21:55:37 UTC - Alessandro Sanino: default is `text/html` or 
`application/json`?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571737125200
----
2019-10-08 21:56:00 UTC - Michele Sciabarra: this is what the knative.js does 
basically the main difference is that a javascript simply “evals” a function 
while the go runtime forks an executable and communicate over the actionloop 
procotol
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571760126000
----
2019-10-08 21:56:06 UTC - Alessandro Sanino: i suppose it depends on the body 
if it not specified a `Content-Type` header
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571766126200
----
2019-10-08 21:56:35 UTC - Michele Sciabarra: it depends if the action is raw 
(OW_ACTION_RAW) or not
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571795126700
----
2019-10-08 21:56:56 UTC - Michele Sciabarra: if it is not raw it must encode 
and then decode the http in json according the webaction standard
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571816127200
----
2019-10-08 21:57:14 UTC - Michele Sciabarra: if it is raw just decode and 
encode a json
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571834127600
----
2019-10-08 21:57:50 UTC - Michele Sciabarra: wrapping and unwrpping with 
additional informations like action name provided as environement variables
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571870128400
----
2019-10-08 21:58:04 UTC - Alessandro Sanino: okay
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570571884128600
----
2019-10-08 23:13:07 UTC - Gohar Irfan Chaudhry: Hi all, I'm new to the 
OpenWhisk land and am trying to play around with the Controller a bit. I want 
to, at the very basic level, attach a debugger to the Controller and step 
through the code as an invocation comes in. Is there a recommended workflow of 
how to do this? Right now, I have OpenWhisk running in a Ubuntu VM (installed 
using Docker Compose method as was suggested in the documentation) and I'm 
using JDB to hook on to the Controller.
I'm running into some issue with loading the source code into JDB so I was 
wondering if there is, perhaps, a different workflow that folks use for 
developing OpenWhisk? Any help/tips/pointers would be much appreciated. 
:slightly_smiling_face: I see there are some tools to help debug the actions 
but I want to debug the Controller itself.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1570576387131500
----

Reply via email to