Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2521

Remove logic around fetching the current environment regional instances

    • 2
    • True
    • Hide

      Currently /regions api still returns all three environments data.

      Show
      Currently /regions api still returns all three environments data.
    • False

      Currently the /regions api returns regional instances for all three environments (prod, stage, integration). Implemented in OCMUI-1998.

      The backend team is fixing the api to only return the regions that are correlated with the environment the user is in. There is logic being used from /queries/helpers.ts --> currentEnvironment() function that returns the user's current environment to help filter out the only the regional instances correlated to the current environment that is then used to fetch useFetchGetMultiRegionAvailableRegions.ts

      When the change is made from the backend, all the logic around the currentEnvironment() function will need to be removed since then we will only be getting the correct regions for each environment. 

      Check all uses of useFetchGetAvailableRegionalInstances.ts and useFetchGetMultiRegionAvailableRegions.ts and remove the uses of currentEnvironment()

              Unassigned Unassigned
              rh-ee-dcooper Dylan Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: