[jboss-jira] [JBoss JIRA] (WFCORE-2786) Improve the composition operation output

Filippe Spolti (JIRA) issues at jboss.org
Tue May 9 20:13:00 EDT 2017


     [ https://issues.jboss.org/browse/WFCORE-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filippe Spolti updated WFCORE-2786:
-----------------------------------
    Component/s: Domain Management
                     (was: CLI)


> Improve the composition operation output
> ----------------------------------------
>
>                 Key: WFCORE-2786
>                 URL: https://issues.jboss.org/browse/WFCORE-2786
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Filippe Spolti
>
> When you perform a composite operations with many commands the output will be enumerated in steps, like: step-1, step-2, ..., step-N.
> I am not sure, but looks like the step-X correspond to the order of the commands sent in the request payload, example:
> {code:title=Payload}
> {
>     "address": [],
>     "json.pretty": 1,
>     "operation": "composite",
>     "steps": [
>         {
>             "name": "server-state",
>             "operation": "read-attribute"
>         },
>         {
>             "address": {
>                 "deployment": "*"
>             },
>             "name": "status",
>             "operation": "read-attribute"
>         }
>     ]
> }
> {code}
> {code:title=Response}
> {
>     "outcome": "success",
>     "result": {
>         "step-1": {
>             "outcome": "success",
>             "result": "running"
>         },
>         "step-2": {
>             "outcome": "success",
>             "result": []
>         }
>     }
> }
> {code}
> If you have something the dynamically builds the composite payload, it is very hard to identify the output corresponding to each command in the payload.
> It will be great if we can add a extra field in the response or change the steps name to its operation name, for example:
> {code}
> {
>     "outcome": "success",
>     "result": {
>         "step-1": {
>             "operation-name": "server-state",
>             "outcome": "success",
>             "result": "running"
>         },
>         "step-2": {
>             "operation-name": "deployment-info",  
>             "outcome": "success",
>             "result": []
>         }
>     }
> }
> {code}
> Or
> {code}
> {
>     "outcome": "success",
>     "result": {
>         "server-state": {
>             "outcome": "success",
>             "result": "running"
>         },
>         "deployment-info": {
>             "outcome": "success",
>             "result": []
>         }
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list