Bug 2102139 - [MTC UI] Miganalytic resource displaying resource count as 0 in UI
Summary: [MTC UI] Miganalytic resource displaying resource count as 0 in UI
Keywords:
Status: ASSIGNED
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.7.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 1.7.z
Assignee: Ian
QA Contact: ssingla
Richard Hoch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-29 11:33 UTC by Prasad Joshi
Modified: 2022-08-25 12:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (28.72 KB, image/png)
2022-06-29 11:33 UTC, Prasad Joshi
no flags Details

Description Prasad Joshi 2022-06-29 11:33:44 UTC
Created attachment 1893378 [details]
Screenshot

Description of problem: After creating a migplan from backend the miganalytic resource is displaying the resource count as 0 in UI. Need to click on the refresh button in order to get the correct details. 


Version-Release number of selected component (if applicable):
Source GCP 4.6   MTC 1.7.2 + OADP 1.0.3
Target  GCP  4.10   MTC 1.7.2 + OADP 1.0.3


How reproducible:
Always

Steps to Reproduce:
1. Create a migplan from backend
apiVersion: migration.openshift.io/v1alpha1
kind: MigPlan
metadata:
  name: test
  namespace: openshift-migration
spec:
  srcMigClusterRef:
    name: source-cluster
    namespace: openshift-migration
  destMigClusterRef:
    name: host
    namespace: openshift-migration
  migStorageRef:
    name: automatic
    namespace: openshift-migration
  namespaces:
    - test

$ oc create -f migplan.yml

2. Login to the MTC console, go to the namespace page.

Actual results: UI is displaying the resource count as 0 for the plans created from the backend. After clicking on the Refresh button these values are getting updated to the correct ones. 
Attached screenshot.


Expected results: The UI should display the correct resource count in the UI.


Additional info:


Note You need to log in before you can comment on or make changes to this bug.