-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
2
-
True
-
-
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()