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

Altering instant dashboard copy before creation leads to errors when saving dashboard

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.12.0
    • None
    • frontend
    • Not defined

      What/Where is the issue ?

      When creating an editable copy of an instant dashboard, users can add multiple datasources in the modal (also changing the dashboard template). When they create this dashboard, Optimize creates a collection for it. However, this collection only has the datasource of the default instant dashboard, not whatever other sources the user added. This leads to an error when trying to save the dashboard.

      Environment: all

      Optimize version : 3.12.0 and starting whereever we introduced editable copies of instant dashboards
      ES version : irrelevant
      OS + Browser version : irrelevant

      Steps to reproduce:

      • Preconditions: 
        • Optimize is up and running and has some processes imported
      • Steps:
        • Navigate to the process overview page
        • Click on a process to access its instant preview dashboard
        • Click "create an editable copy"
        • In the dashboard creation modal, add another definition
        • Click create
        • In the new dashboard, click save

      Observed behavior:

      Dashboard saving fails

      Expected behavior:

      It should be possible to save the editable copy.

      Additional Information:

      This we could either achieve by:
      1. adjusting FE request to create collection with correct data sources
      2. adjusting the FE to prohibit users from altering the "copy" before creation, so that that they indeed only create a copy of the instant dashboard as is, which they can edit later

        This is the controller panel for Smart Panels app

            [OPT-7463] Altering instant dashboard copy before creation leads to errors when saving dashboard

            Helene Waechtler created issue -
            Helene Waechtler made changes -
            Component/s Original: backend [ 13653 ]
            Helene Waechtler made changes -
            Description Original: h3. What/Where is the issue ?

            When creating an editable copy of an instant dashboard, users can add multiple datasources in the modal (also changing the dashboard template). When they create this dashboard, Optimize creates a collection for it. However, this collection only has the datasource of the default instant dashboard, not whatever other sources the user added. This leads to an error when trying to save the dashboard.
            h3. Environment: all

            Optimize version : 3.12.0 and starting whereever we introduced editable copies of instant dashboards
            ES version : irrelevant
            OS + Browser version : irrelevant
            h3. Steps to reproduce:
             - Preconditions: 
             -- Optimize is up and running and has some processes imported
             - Steps:
             -- Navigate to the process overview page
             -- Click on a process to access its instant preview dashboard
             -- Click "create an editable copy"
             -- In the dashboard creation modal, add another definition
             -- Click create
             -- In the new dashboard, click save

            h3. Observed behavior:

            Dashboard saving fails
            h3. Expected behavior:

            It should be possible to save the editable copy.
            h3. Additional Information:

            This we could either achieve by:
            1. adjusting the BE to handle the above scenario OR
            2. adjusting the FE to prohibit users from altering the "copy" before creation, so that that they indeed only create a copy of the instant dashboard as is, which they can edit later
            New: h3. What/Where is the issue ?

            When creating an editable copy of an instant dashboard, users can add multiple datasources in the modal (also changing the dashboard template). When they create this dashboard, Optimize creates a collection for it. However, this collection only has the datasource of the default instant dashboard, not whatever other sources the user added. This leads to an error when trying to save the dashboard.
            h3. Environment: all

            Optimize version : 3.12.0 and starting whereever we introduced editable copies of instant dashboards
            ES version : irrelevant
            OS + Browser version : irrelevant
            h3. Steps to reproduce:
             - Preconditions: 
             -- Optimize is up and running and has some processes imported
             - Steps:
             -- Navigate to the process overview page
             -- Click on a process to access its instant preview dashboard
             -- Click "create an editable copy"
             -- In the dashboard creation modal, add another definition
             -- Click create
             -- In the new dashboard, click save

            h3. Observed behavior:

            Dashboard saving fails
            h3. Expected behavior:

            It should be possible to save the editable copy.
            h3. Additional Information:

            This we could either achieve by:
            1. adjusting FE request to create collection with correct data sources
            2. adjusting the FE to prohibit users from altering the "copy" before creation, so that that they indeed only create a copy of the instant dashboard as is, which they can edit later
            Omran Abazeed made changes -
            Assignee New: Omran Abazeed [ omran.abazeed ]
            Omran Abazeed made changes -
            Status Original: Triage [ 10612 ] New: In Development [ 10312 ]
            Omran Abazeed made changes -
            Assignee Original: Omran Abazeed [ omran.abazeed ] New: Michal Konopski [ michal.konopski ]
            Status Original: In Development [ 10312 ] New: In Review [ 10212 ]
            Michal Konopski made changes -
            Assignee Original: Michal Konopski [ michal.konopski ] New: Cigdem Ilhan [ cigdem.ilhan ]
            Status Original: In Review [ 10212 ] New: Ready for Testing [ 10008 ]
            Cigdem Ilhan made changes -
            Fix Version/s New: 3.12.0 [ 18790 ]
            Cigdem Ilhan made changes -
            Assignee Original: Cigdem Ilhan [ cigdem.ilhan ]
            Resolution New: Fixed [ 1 ]
            Status Original: Ready for Testing [ 10008 ] New: Done [ 10010 ]

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

                Created:
                Updated:
                Resolved: