Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3464

Conflicting Collection Data Source update returns serverError

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.0.0
    • 3.0.0
    • backend
    • None

      Given:
      A collection with a data source and at least one report making use of that data source and all it's tenants.

      When:
      I update the data source and e.g. deselect some tenants.

      Then:
      I get a conflict response with the errorCode `serverError`:

      {
        "errorCode" : "serverError",
        "errorMessage" : "An internal server error occurred.",
        "detailedMessage" : "Operation cannot be executed as other entities would be affected.",
        "conflictedItems" : [ {
          "id" : "88b04cea-4441-4460-873c-c3b63b97891d",
          "type" : "report",
          "name" : "Johns Report"
        } ]
      }
      

      Expected:
      I get a conflict response listing the report that would get updated/removed if I force the update.

      {
        "errorCode" : "collectionConflict",
        "errorMessage" : "Could not apply the collection changes due to conflicts.",
        "detailedMessage" : "Operation cannot be executed as other entities would be affected.",
        "conflictedItems" : [ {
          "id" : "88b04cea-4441-4460-873c-c3b63b97891d",
          "type" : "report",
          "name" : "Johns Report"
        } ]
      }
      

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: