Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4444

Decisions with spaces in the name generate an invalid dashboard

    XMLWordPrintable

Details

    • False
    • False
    • Undefined
    • ---
    • ---

    Description

      Decisions with name attribute in the xml containing a space are not generating valid dashboard files which are in turn used by the operator to be published to grafana.

       

      Example: name="Traffic Violation" generates monitoring/dashboards domain-dashboard-Traffic Violation.json and operational-dashboard-Traffic Violation.json files

      This file name is used in the operator as part of the url to access to the dashboard.

       

      Either this is fixed in the codegeneration side to generate a file name that is more aligned with the other generated resources and prevent other errors to be propagated or in the operator side where the name is used to generate the url.

       

      Kogito Codegen:

      https://github.com/kiegroup/kogito-runtimes/blob/master/kogito-codegen-modules/kogito-codegen-decisions/src/main/java/org/kie/kogito/codegen/decision/DecisionRestResourceGenerator.java#L100-L109

       

      Kogito Operator

      https://github.com/kiegroup/kogito-cloud-operator/blob/master/pkg/infrastructure/services/dashboards.go#L132

      Attachments

        Activity

          People

            jrota@redhat.com Jacopo Rota (Inactive)
            rhn-support-rromerom Ruben Romero Montes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: