-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
3
-
False
-
None
-
False
-
OCPSTRAT-106 - Provide a TEST action for Serverless functions
-
0
-
Not Supported
-
-
-
ODC Sprint 234
Description
As a user, I want to invoke a Serverless function from the developer console. This action should be available as a page and as a modal.
This story is to evaluate a good UI for this and check this with our PM (Serena) and the Serverless team (Naina and Lance).
Acceptance Criteria
- Add a new page with title "Invoke Serverless function {function-name}" and should be available via a new URL (/serverless/ns/:ns/invoke-function/:function-name/).
- Implement a form with formik to "invoke" (console.log for now) Serverless functions, without writing the network call for this already. Focus on the UI to get feedback as early as possible. Use reusable, well-named components anyway.
- The page should be also available as a modal. Add a new action to all Serverless Services with the label (tbd) to open this modal from the Topology graph or from the Serverless Service list view.
- The page should have two tabs or two panes for the request and response. Each of this tabs/panes should have again two tabs, "similar" to the browser network inspector. See below for what we know currently.
- Get confirmation from Christoph, Serena, Naina, and Lance.
- Disable the action until we implement the network communication in
ODC-7275with the serverless function. - No e2e tests are needed for this story.
Additional Details:
Information the form should show:
- Request tab shows "Body" and "Options" tab
- Body is just a full size editor. We should reuse our code editor.
- Options contains:
- Auto complete text field “Content type” with placeholder “application/json”, that will be used when nothing is entered
- Dropdown “Format” with values “cloudevent” (default) and “http”
- Text field “Type” with placeholder text “boson.fn”, that will be used when nothing is entered
- Text field “Source” with placeholder “/boson/fn”, that will be used when nothing is entered
- Response tab shows Body and Info tab
- Body is a full size editor that shows the response. We should format a JSON string with JSON.stringify(data, null, 2)
- Info contains:
- Id (id)
- Type (type)
- Source (source)
- Time (time) (formatted)
- Content-Type: (datacontenttype)
- is depended on by
-
ODC-7275 Implement invoke serverless functions
- Closed
- links to