Bug 2102139

Summary: [MTC UI] Miganalytic resource displaying resource count as 0 in UI
Product: Migration Toolkit for Containers Reporter: Prasad Joshi <prajoshi>
Component: UIAssignee: Ian <ibolton>
Status: ASSIGNED --- QA Contact: ssingla
Severity: low Docs Contact: Richard Hoch <rhoch>
Priority: low    
Version: 1.7.2CC: jmatthew
Target Milestone: ---   
Target Release: 1.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot none

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: