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

Variable Name Request queries for all variables across all definitions if no version is selected

    XMLWordPrintable

Details

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

    Description

      Brief summary of the bug. What is it ? Where is it ?

      See support ticket. When no version is selected, the variable name request appears to query for all available variables across all definitions, which can result in performance issues if there is a lot of variable data.

      Steps to reproduce:

      Create an empty report and switch from "all" versions to "specific version" without selecting a version.

      OR try a request to /api/variables  with a payload where processDefinitionVersions is empty, eg 

      {     "processDefinitionKey": "aProcess",     "processDefinitionVersions": [],     "tenantIds": []   }

      Actual result:

      Optimize queries for all variables across all definitions (this can be seen in the response of the /variables request in the network tab).

      Expected result:

      If no version is selected, no variables should be returned.

       

      Hint:

      On first view it looks like in ProcessVariableReader.getVariableNames, the query remains a simple boolQuery when there are no selected versions in any of the variableNameRequests because they're all filtered out with .filter(request -> !CollectionUtils.isEmpty(request.getProcessDefinitionVersions())).

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              helene.waechtler Helene Waechtler
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce