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

Loading reports variables in dashboard fails when renaming variables

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.8.0-alpha1, 3.8.0
    • None
    • backend
    • None
    • Not defined

      Reproduce:

      • Create a report with a process definition that has variables
      • Go to the report edit mode
      • From the control panel, click on the edit button to open the definition popover
      • Click rename variables
      • Save the report
      • Go to the homepage and create a copy the created report
      • Create a dashboard and add both reports to it

      Observed:
      A notification error appears indicating that the variables names endpoint has failed:

      detailedMessage: "Duplicate key analysistestingprocess (attempted merging values DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]) and DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]))"
      errorCode: "serverError"
      errorMessage: "An internal server error occurred."
      reportDefinition: null
      

      Expected:
      The variables for the reports inside the dashboard are loaded successfully

        This is the controller panel for Smart Panels app

            [OPT-5947] Loading reports variables in dashboard fails when renaming variables

            Omran Abazeed created issue -
            Omran Abazeed made changes -
            Description Original: *Reproduce:*

            * Create a report with a process definition that has variables
            * Go to the report edit mode
            * From the control panel, click on the edit button to open the definition popover
            * Click rename variables
            * Save the report
            * Go to the homepage and create a copy the created report
            * Create a dashboard and add both reports to it

            *Observed: *
            A notification error appears indicating that the variables names endpoint has failed:
            {code:java}
            detailedMessage: "Duplicate key analysistestingprocess (attempted merging values DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]) and DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]))"
            errorCode: "serverError"
            errorMessage: "An internal server error occurred."
            reportDefinition: null
            {code}

            *Expected:*
            The variables for the reports inside the dashboard are loaded successfully
            New: *Reproduce:*

            * Create a report with a process definition that has variables
            * Go to the report edit mode
            * From the control panel, click on the edit button to open the definition popover
            * Click rename variables
            * Save the report
            * Go to the homepage and create a copy the created report
            * Create a dashboard and add both reports to it

            *Observed:*
            A notification error appears indicating that the variables names endpoint has failed:
            {code:java}
            detailedMessage: "Duplicate key analysistestingprocess (attempted merging values DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]) and DefinitionVariableLabelsDto(definitionKey=analysistestingprocess, labels=[LabelDto(variableLabel=RenamedBoolVar, variableName=boolVar, variableType=BOOLEAN)]))"
            errorCode: "serverError"
            errorMessage: "An internal server error occurred."
            reportDefinition: null
            {code}

            *Expected:*
            The variables for the reports inside the dashboard are loaded successfully
            Omran Abazeed made changes -
            Mentioned Roles
            Omran Abazeed made changes -
            Mentioned Groups
            Andromachi Rozaki made changes -
            Assignee Original: Andromachi Rozaki [ andromachi.rozaki ] New: Giuliano Rodrigues Lima [ giuliano.rodrigues-lima ]
            Status Original: Open [ 1 ] New: In Review [ 10212 ]
            Giuliano Rodrigues Lima made changes -
            Assignee Original: Giuliano Rodrigues Lima [ giuliano.rodrigues-lima ] New: Andromachi Rozaki [ andromachi.rozaki ]
            Status Original: In Review [ 10212 ] New: Rework [ 11413 ]
            Andromachi Rozaki made changes -
            Assignee Original: Andromachi Rozaki [ andromachi.rozaki ]
            Resolution New: Fixed [ 1 ]
            Status Original: Rework [ 11413 ] New: Done [ 10010 ]
            Sebastian Bathke made changes -
            Fix Version/s New: 3.8.0-alpha1 [ 17442 ]
            Sebastian Bathke made changes -
            Labels Original: current_release
            Sebastian Bathke made changes -
            Fix Version/s New: 3.8.0 [ 17435 ]

              Unassigned Unassigned
              omran.abazeed Omran Abazeed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: