-
Bug
-
Resolution: Done
-
Undefined
-
1.1
-
None
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
- In the browser, open up the Inspect > Network page
- Browse to the Catalog
- Select any kind (Group, template, user, etc)
- 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