Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project selector suggests invalid projects #177

Open
glasnt opened this issue Jun 1, 2020 · 0 comments
Open

Project selector suggests invalid projects #177

glasnt opened this issue Jun 1, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@glasnt
Copy link
Collaborator

glasnt commented Jun 1, 2020

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
@jamesward jamesward added bug Something isn't working good first issue Good for newcomers labels Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants