cloud-run-button
cloud-run-button copied to clipboard
Project selector suggests invalid projects
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