Knotx / knotx-fragments-chrome-extension

Extends the Developer Tools, adding a panel that displays Fragments data associated with the selected DOM element.
Apache License 2.0
0 stars 2 forks source link

No wrapped action operation data for behaviours #114

Open tomaszmichalak opened 4 years ago

tomaszmichalak commented 4 years ago

Describe the bug A clear and concise description of what the bug is. Make sure to include a version o Knot.x you use.

To Reproduce

{
  "operation": {
    "data": {
      "alias": "offers-circuit-breaker",
      "actionFactory": "cb",
      "actionConfig": {
        "circuitBreakerName": "offers-cb",
        "circuitBreakerOptions": {},
        "errorTransitions": [],
        "logLevel": "info"
      }
    },
    "factory": "action"
  }
}

Expected behavior

{
  "operation": {
    "data": {
      "alias": "offers-circuit-breaker",
      "actionFactory": "cb",
      "actionConfig": {
        "circuitBreakerName": "offers-cb",
        "circuitBreakerOptions": {},
        "errorTransitions": [],
        "logLevel": "info"
      },
      "operation": {
        "data": {
          "alias": "offers-fetch",
          "actionFactory": "http",
          ...
        },
        "factory": "action"
      }
    },
    "factory": "action"
  }
}

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

marcinus commented 3 years ago

Fixed by Knotx/knotx-fragments#188 (to be included in the upcoming release) Sample code:

"operation": {
        "data": {
            "alias": "fetch-delivery-options-cb",
            "actionFactory": "cb",
            "actionConfig": {
                "circuitBreakerName": "delivery-cb",
                "circuitBreakerOptions": +{2 items},
                "logLevel": "info"
            },
            "doAction": {
                "alias": "fetch-delivery",
                "actionFactory": "http",
                "actionConfig": -{
                    "endpointOptions": +{4 items},
                    "logLevel": "error"
                }
            }
        },
        "factory": "action"
    },