Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-2438

OCM calls are not scoped to the OCM page

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • RHIDP-1431 - Engineering Improvements
    • Hide
      Before this update, when the OCM plugin is installed, navigating to non-OCM pages triggered unnecessary failed OCM API calls.

      With this update, {product-short} restricts OCM API calls to OCM-related pages.
      Show
      Before this update, when the OCM plugin is installed, navigating to non-OCM pages triggered unnecessary failed OCM API calls. With this update, {product-short} restricts OCM API calls to OCM-related pages.
    • Bug Fix
    • Done
    • RHDH Plugins 3261
    • Moderate

      Description of problem:

      When the OCM plugin is installed, navigating to unrelated pages results in failed API calls that look like /api/ocm/status/undefined/create-quay-repo

      Prerequisites (if any, like setup, operators/versions):

      RHDH installed with the OCM cluster.  Can use the DAST environment https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/

      Steps to Reproduce

      1. In the browser, open up the Inspect > Network page
      2. Browse to the Catalog
      3. Select any kind (Group, template, user, etc)
      4. Select an instance under a specific kind

      Actual results:

      There are a number of undefined calls being made which is wrong.  ProviderId is "underfined" and cluster name is the name of the instance which has nothing to do with the OCM cluster

      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/Keycloak-Group00
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/backstage-showcase
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/components
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/create-quay-repo
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/generated-256f75c2e79d0a52df58355a68ea72606cf2e3ba
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/jenkins
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/jenkins-authors
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/jenkins-github
      https://rhdh-dast-backstage-rhdh-dast.apps.janus.djpe.p1.openshiftapps.com/api/ocm/status/undefined/keycloak-user00

      Expected results:

      No OCM calls on unrelated pages

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      RHDH Version: 1.2.0
      Backstage Version: 1.26.5
      Upstream: janus-idp/backstage-showcase main @ e3654a5e
      Midstream: gitlab.cee.redhat.com/rhidp/rhdh rhdh-1-rhel-9 @ 39265b6d
      Build Time: 2024-05-20T10:50:02Z

      Additional info (Such as Logs, Screenshots, etc):

            oandriie Aleksander Andriienko
            ktsao@redhat.com Kim Tsao
            RHIDP - Plugins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: