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

Reports are missing after upgrade from 3.10.x to 3.11.x

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.11.3
    • 3.11.0, 3.11.1, 3.11.2
    • None
    • Not defined

      What/Where is the issue ?

      After the upgrade to 3.11.0 reports are missing in the UI because their definition sources where updated to have the C8 default tenantId.

      Environment: C7/ C8SaaS/ C8SM

      Optimize version : 3.11.0
      ES version : 7.17.9
      OS + Browser version :

      Steps to reproduce:

      1. Start Optimize 3.10.4
      2. Create process report (doesn't matter if in- or outside of collection) with a definition source
      3. Create some collections and add some definition sources
      4. Stop Optimize
      5. Alter some data in ES to have "zeebe" datasource
      6. Perform upgrade to 3.11.0
      7. Start Optimize
      8. All reports are gone
      9. collection scopes are misconfigured (default tentant ID for scopes)

      Observed behavior:

      Reports are gone.

      Expected behavior:

      Reports are visible after the upgrade, report tenant ID and collection scopes should not have changed after upgrade.

       

      Testing Notes:

      This will be fixed with 3.11.3 (so in step 4, perform upgrade to 3.11.3)

      Additional Information:

      • optimize-single-process-report before upgrade:
        "tenantIds": [ null ]
        

        optimize-single-process-report after upgrade

        "tenantIds": [ "<default>" ]
        

        It looks like the upgrade script set the tenantId to the default tenant used in C8.

      • optimize-collection index after upgrade:
        "scope": [
                                    {
                                        "tenants": [
                                            "<default>"
                                        ],
                                        "definitionKey": "invoice-assign-approver",
                                        "id": "decision:invoice-assign-approver",
                                        "definitionType": "decision"
                                    },
                                    {
                                        "tenants": [
                                            "<default>"
                                        ],
                                        "definitionKey": "invoice",
                                        "id": "process:invoice",
                                        "definitionType": "process"
                                    },
                                    {
                                        "tenants": [
                                            "<default>"
                                        ],
                                        "definitionKey": "invoiceClassification",
                                        "id": "decision:invoiceClassification",
                                        "definitionType": "decision"
                                    },
                                    {
                                        "tenants": [
                                            "<default>"
                                        ],
                                        "definitionKey": "ReviewInvoice",
                                        "id": "process:ReviewInvoice",
                                        "definitionType": "process"
                                    }
                                ]
        

        This is the controller panel for Smart Panels app

            [OPT-7419] Reports are missing after upgrade from 3.10.x to 3.11.x

            Michal Dytko created issue -
            Michal Dytko made changes -
            Description Original: h3. What/Where is the issue ?
                  After the upgrade to 3.11.0 reports are missing in the UI.
                
             
                h3. Environment: C7/ C8SaaS/ C8SM
                    Optimize version : 3.11.0
                    ES version : 7.17.9
                    OS + Browser version :
             
             
                h3. Steps to reproduce:
               # Start Optimize 3.10.4
               # Create process report (doesn't matter if in- or outside of collection)
            # Stop Optimize
            # Perform upgrade to 3.11.0
            # Start Optimize
            # All reports are gone
                

                h3. Observed behavior:
                   Reports are gone.
                    

                h3. Expected behavior:
                    Reports are visible after the upgrade


                h3. Additional Information:
            optimize-single-process-report before upgrade:
            {code}
            "tenantIds": [
                                                null
                                            ]
            {code}
            optimize-single-process-report after upgrade
            {code}
            "tenantIds": [
                                                "<default>"
                                            ]
            {code}

            It looks like the upgrade script set the tenantId to the default tenant used in C8.

            Below script can be used to mitigate the issue:
            {code}
            curl --location --request POST 'http://localhost:9200/optimize-single-process-report_v11/_update_by_query?pretty&#39; \
            --header 'Content-Type: application/json' \
            --data-raw '{
                "script": {
                    "source": "for (int i = 0; i < ctx._source.data.definitions.length; i++){ ctx._source.data.definitions[i].tenantIds = [ null ];}",
                    "lang": "painless"
                },
                 "query": {
                    "bool": {
                        "must": [
                            {
                                        "match": {
                                            "data.definitions.tenantIds": "<default>"
                                        }
                                    }
                                
                            
                        ]
                    }
                }
            }'
            {code}
            New: h3. What/Where is the issue ?
                  After the upgrade to 3.11.0 reports are missing in the UI.
                
             
                h3. Environment: C7/ C8SaaS/ C8SM
                    Optimize version : 3.11.0
                    ES version : 7.17.9
                    OS + Browser version :
             
             
                h3. Steps to reproduce:
               # Start Optimize 3.10.4
               # Create process report (doesn't matter if in- or outside of collection)
            # Stop Optimize
            # Perform upgrade to 3.11.0
            # Start Optimize
            # All reports are gone
                

                h3. Observed behavior:
                   Reports are gone.
                    

                h3. Expected behavior:
                    Reports are visible after the upgrade


                h3. Additional Information:
            optimize-single-process-report before upgrade:
            {code}
            "tenantIds": [ null ]
            {code}
            optimize-single-process-report after upgrade
            {code}
            "tenantIds": [ "<default>" ]
            {code}

            It looks like the upgrade script set the tenantId to the default tenant used in C8.

            Below script can be used to mitigate the issue:
            {code}
            curl --location --request POST 'http://localhost:9200/optimize-single-process-report_v11/_update_by_query?pretty&#39; \
            --header 'Content-Type: application/json' \
            --data-raw '{
                "script": {
                    "source": "for (int i = 0; i < ctx._source.data.definitions.length; i++){ ctx._source.data.definitions[i].tenantIds = [ null ];}",
                    "lang": "painless"
                },
                 "query": {
                    "bool": {
                        "must": [
                            {
                                        "match": {
                                            "data.definitions.tenantIds": "<default>"
                                        }
                                    }
                                
                            
                        ]
                    }
                }
            }'
            {code}
            Joshua Windels made changes -
            Status Original: Triage [ 10612 ] New: In Development [ 10312 ]
            Joshua Windels made changes -
            Assignee Original: Joshua Windels [ joshua.windels ] New: Helene Waechtler [ helene.waechtler ]
            Helene Waechtler made changes -
            Labels New: SUPPORT
            Helene Waechtler made changes -
            Fix Version/s New: 3.11.3 [ 18692 ]
            Helene Waechtler made changes -
            Affects Version/s New: 3.11.2 [ 18690 ]
            Affects Version/s New: 3.11.1 [ 18591 ]
            Affects Version/s New: 3.11.0 [ 18496 ]
            Helene Waechtler made changes -
            Description Original: h3. What/Where is the issue ?
                  After the upgrade to 3.11.0 reports are missing in the UI.
                
             
                h3. Environment: C7/ C8SaaS/ C8SM
                    Optimize version : 3.11.0
                    ES version : 7.17.9
                    OS + Browser version :
             
             
                h3. Steps to reproduce:
               # Start Optimize 3.10.4
               # Create process report (doesn't matter if in- or outside of collection)
            # Stop Optimize
            # Perform upgrade to 3.11.0
            # Start Optimize
            # All reports are gone
                

                h3. Observed behavior:
                   Reports are gone.
                    

                h3. Expected behavior:
                    Reports are visible after the upgrade


                h3. Additional Information:
            optimize-single-process-report before upgrade:
            {code}
            "tenantIds": [ null ]
            {code}
            optimize-single-process-report after upgrade
            {code}
            "tenantIds": [ "<default>" ]
            {code}

            It looks like the upgrade script set the tenantId to the default tenant used in C8.

            Below script can be used to mitigate the issue:
            {code}
            curl --location --request POST 'http://localhost:9200/optimize-single-process-report_v11/_update_by_query?pretty&#39; \
            --header 'Content-Type: application/json' \
            --data-raw '{
                "script": {
                    "source": "for (int i = 0; i < ctx._source.data.definitions.length; i++){ ctx._source.data.definitions[i].tenantIds = [ null ];}",
                    "lang": "painless"
                },
                 "query": {
                    "bool": {
                        "must": [
                            {
                                        "match": {
                                            "data.definitions.tenantIds": "<default>"
                                        }
                                    }
                                
                            
                        ]
                    }
                }
            }'
            {code}
            New: h3. What/Where is the issue ?

            After the upgrade to 3.11.0 reports are missing in the UI.
            h3. Environment: C7/ C8SaaS/ C8SM

            Optimize version : 3.11.0
            ES version : 7.17.9
            OS + Browser version :
            h3. Steps to reproduce:
             # Start Optimize 3.10.4
             # Create process report (doesn't matter if in- or outside of collection)
             # Stop Optimize
             # Perform upgrade to 3.11.0
             # Start Optimize
             # All reports are gone

            h3. Observed behavior:

            Reports are gone.
            h3. Expected behavior:

            Reports are visible after the upgrade

             

            *Testing Notes:*

            This will be fixed with 3.11.3 (so in step 4, perform upgrade to 3.11.3)
            h3. Additional Information:

            optimize-single-process-report before upgrade:
            {code:java}
            "tenantIds": [ null ]
            {code}
            optimize-single-process-report after upgrade
            {code:java}
            "tenantIds": [ "<default>" ]
            {code}
            It looks like the upgrade script set the tenantId to the default tenant used in C8.

            Below script can be used to mitigate the issue:
            {code:java}
            curl --location --request POST 'http://localhost:9200/optimize-single-process-report_v11/_update_by_query?pretty&#39; \
            --header 'Content-Type: application/json' \
            --data-raw '{
                "script": {
                    "source": "for (int i = 0; i < ctx._source.data.definitions.length; i++){ ctx._source.data.definitions[i].tenantIds = [ null ];}",
                    "lang": "painless"
                },
                 "query": {
                    "bool": {
                        "must": [
                            {
                                        "match": {
                                            "data.definitions.tenantIds": "<default>"
                                        }
                                    }
                                
                            
                        ]
                    }
                }
            }'
            {code}
            Helene Waechtler made changes -
            Status Original: In Development [ 10312 ] New: Ready for Testing [ 10008 ]
            Michal Dytko made changes -
            Description Original: h3. What/Where is the issue ?

            After the upgrade to 3.11.0 reports are missing in the UI.
            h3. Environment: C7/ C8SaaS/ C8SM

            Optimize version : 3.11.0
            ES version : 7.17.9
            OS + Browser version :
            h3. Steps to reproduce:
             # Start Optimize 3.10.4
             # Create process report (doesn't matter if in- or outside of collection)
             # Stop Optimize
             # Perform upgrade to 3.11.0
             # Start Optimize
             # All reports are gone

            h3. Observed behavior:

            Reports are gone.
            h3. Expected behavior:

            Reports are visible after the upgrade

             

            *Testing Notes:*

            This will be fixed with 3.11.3 (so in step 4, perform upgrade to 3.11.3)
            h3. Additional Information:

            optimize-single-process-report before upgrade:
            {code:java}
            "tenantIds": [ null ]
            {code}
            optimize-single-process-report after upgrade
            {code:java}
            "tenantIds": [ "<default>" ]
            {code}
            It looks like the upgrade script set the tenantId to the default tenant used in C8.

            Below script can be used to mitigate the issue:
            {code:java}
            curl --location --request POST 'http://localhost:9200/optimize-single-process-report_v11/_update_by_query?pretty&#39; \
            --header 'Content-Type: application/json' \
            --data-raw '{
                "script": {
                    "source": "for (int i = 0; i < ctx._source.data.definitions.length; i++){ ctx._source.data.definitions[i].tenantIds = [ null ];}",
                    "lang": "painless"
                },
                 "query": {
                    "bool": {
                        "must": [
                            {
                                        "match": {
                                            "data.definitions.tenantIds": "<default>"
                                        }
                                    }
                                
                            
                        ]
                    }
                }
            }'
            {code}
            New: h3. What/Where is the issue ?

            After the upgrade to 3.11.0 reports are missing in the UI.
            h3. Environment: C7/ C8SaaS/ C8SM

            Optimize version : 3.11.0
            ES version : 7.17.9
            OS + Browser version :
            h3. Steps to reproduce:
             # Start Optimize 3.10.4
             # Create process report (doesn't matter if in- or outside of collection)
             # Stop Optimize
             # Perform upgrade to 3.11.0
             # Start Optimize
             # All reports are gone

            h3. Observed behavior:

            Reports are gone.
            h3. Expected behavior:

            Reports are visible after the upgrade

             

            *Testing Notes:*

            This will be fixed with 3.11.3 (so in step 4, perform upgrade to 3.11.3)
            h3. Additional Information:

            optimize-single-process-report before upgrade:
            {code:java}
            "tenantIds": [ null ]
            {code}
            optimize-single-process-report after upgrade
            {code:java}
            "tenantIds": [ "<default>" ]
            {code}
            It looks like the upgrade script set the tenantId to the default tenant used in C8.

              Unassigned Unassigned
              michal.dytko Michal Dytko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: