cloud-run-button icon indicating copy to clipboard operation
cloud-run-button copied to clipboard

Project selector suggests invalid projects

Open glasnt opened this issue 5 years ago • 0 comments

Introduced in #149, the API for the project list includes all lifecycle types, including projects pending deletion.

The list of projects should only be those with lifecycle == "ACTIVE" (this is the default in gcloud, effectively --filter='lifecycleState:ACTIVE'.)

https://cloud.google.com/resource-manager/reference/rest/v1/projects/list https://cloud.google.com/resource-manager/reference/rest/v1/projects#LifecycleState

Reproduction:

[ ? ] Choose a project to deploy this application: butt  [Use arrows to move, type to filter]
❯ glasnt-cloudrun-button-0364 ^C
~$ gcloud projects list --format "value(project_id, lifecycle_state)" --filter='lifecycleState:*'
glasnt-cloudrun-button-0364	DELETE_REQUESTED

glasnt avatar Jun 01 '20 01:06 glasnt