Uploaded image for project: 'Red Hat OpenShift AI Engineering'
  1. Red Hat OpenShift AI Engineering
  2. RHOAIENG-3962

Type mishandling fetching subscriptions

XMLWordPrintable

    • Dashboard - General-1
    • Important
    • Testable

      We are not properly handling our subscriptions when checking wether an app is enabled or not.

       

      We first map the subsicriptions and we add a new attribute called `installedCSV` here and then we try to filter all the subscriptions to check an app's enablement here.

      The main issue is that if the subscription does not contain `sub.status?.installedCSV` and we assume that the type of installedCSV is a string, so `.startsWith(app.spec.csvName))` will fail due to an undefined value.

       

      We should handle that error.

            lferrnan@redhat.com Lucas Fernandez Aragon
            lferrnan@redhat.com Lucas Fernandez Aragon
            Federico Alonso
            RHOAI Dashboard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: