Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1321

[DynamicPlugin] Determine if the page is loaded

    XMLWordPrintable

Details

    Description

      Code is in place to check if the page is loaded.  If loaded, then the backend APIs aren't called to retrieve data.  We need to revisit this in the context of the dynamic plugin.

      In the initial GitOps dynamic plugin, I hacked it such that we simply check if the array is non-empty. 

      Acceptance Criteria:

      • Confirm that useK8sWatchResource hook is working well and namespaces data is correctly loaded in GitOpsListPage.tsx component in the dynamic plugin context.  eg. ensure that we are not constantly calling the backend APIs to getManifestURLs and fetchAllAppGroups

       

      Update Aug 26, 2022: SDK has advanced more, as Yi found out in the comment below. At minimum, we need to test this and if verified we don't thrash the backend, then this story can be closed.

      Attachments

        Activity

          People

            yicai@redhat.com Yi Cai
            kykchong@redhat.com Keith Chong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: