[jboss-jira] [JBoss JIRA] (WFCORE-2786) Improve the composition operation output
Brian Stansberry (JIRA)
issues at jboss.org
Tue May 16 12:29:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-2786:
-------------------------------------
Issue Type: Feature Request (was: Enhancement)
I'm changing this to a Feature Request from Enhancement as this will involve behavior that can be explicitly controlled by a user. The semantics of that will need to be analyzed for all relevant scenarios.
I don't see this happening for core 3.0 as we're past the point where we are designing new things unless they are required for existing requirements for the release.
> Improve the composition operation output
> ----------------------------------------
>
> Key: WFCORE-2786
> URL: https://issues.jboss.org/browse/WFCORE-2786
> Project: WildFly Core
> Issue Type: Feature Request
> 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