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

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

      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())).

        This is the controller panel for Smart Panels app

            [OPT-6084] Variable Name Request queries for all variables across all definitions if no version is selected

            Helene Waechtler created issue -
            Helene Waechtler made changes -
            Link New: This issue is related to SUPPORT-13067 [ SUPPORT-13067 ]
            Helene Waechtler made changes -
            Status Original: Open [ 1 ] New: In Development [ 10312 ]
            Helene Waechtler made changes -
            Rank New: Ranked higher
            Helene Waechtler made changes -
            Rank New: Ranked higher
            Helene Waechtler made changes -
            Rank New: Ranked higher
            Helene Waechtler made changes -
            Assignee Original: Helene Waechtler [ helene.waechtler ] New: Giuliano Rodrigues Lima [ giuliano.rodrigues-lima ]
            Status Original: In Development [ 10312 ] New: In Review [ 10212 ]
            Giuliano Rodrigues Lima made changes -
            Assignee Original: Giuliano Rodrigues Lima [ giuliano.rodrigues-lima ] New: Cigdem Ilhan [ cigdem.ilhan ]
            Status Original: In Review [ 10212 ] New: In Test [ 10004 ]
            Cigdem Ilhan made changes -
            Assignee Original: Cigdem Ilhan [ cigdem.ilhan ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Test [ 10004 ] New: Done [ 10010 ]
            Giuliano Rodrigues Lima made changes -
            Fix Version/s New: 3.8.0 [ 17435 ]

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

                Created:
                Updated:
                Resolved: