Skip to content

Fix `ServiceUsageApiService::listEnabledServicesArray` to check if services object property exists to fix project initialization delay problem

Jeff Martin requested to merge 154-errorexception-in-get-environments-create into main

Overview

When a GCP project is created, it takes a few minutes for services to initialize. When a user tries to create a new Cloud Account Environment immediately after creating a GCP project, the create form uses the ServiceUsageApiService to check for enabled API services, however this API call may not return an array of services until the project is fully initialized.

This MR adds conditional logic to check if the services child array in the object exists.

New Features

  • Fix ServiceUsageApiService::listEnabledServicesArray to check if services object property exists to fix project initialization delay problem

Closes #154 (closed)

Merge request reports