Selecting specific or latest version and no tenant in report breaks FE

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.11.0
    • Affects Version/s: None
    • Component/s: frontend
    • None
    • Not defined

      What/Where is the issue ?

      When in a report data source no tenants are selected but a specific or "latest" version is selected, the FE breaks with error message "Cannot read properties of undefined (reading 'id')". Video attached

      Environment: C7/ C8SaaS/ C8SM

      Optimize version : 3.11
      ES version : 8
      OS + Browser version : chrome

      Steps to reproduce:

      • Preconditions:
        Optimize in CCSM with at least one definition deployed that has multiple versions
      • Steps:
        • Create a report, in the report creation modal deselect all tenants and select either "latest" version or a specific version
        • OR:
        • after creating a report, edit it and deselect all tenants and select either a specific version or "latest" version

      The same also occurs for definitions that only exist on one tenant when selecting a specific version (latest is fine):

      • Preconditions:
        Optimize in CCSM with atone definition deployed on one tenant
      • Steps:
        • Create a report
        • after creating a report, edit it and select a specific version

      Observed behaviour:

      The report breaks, saying "Cannot read properties of undefined (reading 'id')"

      Expected behaviour:

      The report should not break but instead just show no data.

      Additional Information: 

      Video attached

            Assignee:
            Unassigned
            Reporter:
            Helene Waechtler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: