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

Chore: Optimize environments by name query #932

Merged
merged 8 commits into from
Aug 14, 2024
Merged

Conversation

yaronya
Copy link
Contributor

@yaronya yaronya commented Aug 13, 2024

Issue & Steps to Reproduce / Feature Request

resolves #931

Solution

Pass the name QS as expected instead of filtering in code

@yaronya yaronya changed the title Optimize environments by name query Chore: Optimize environments by name query Aug 13, 2024
@@ -102,8 +102,8 @@ resource "env0_template" "example" {
### Run local version of the provider

- Build - `./build.sh`
- Create the plugins folder - `mkdir -p ~/.terraform.d/plugins/terraform.env0.com/local/env0/6.6.6/darwin_amd64` (for M1 processor, replace `amd64` with `arm64`)
- Copy the built binary - `cp ./terraform-provider-env0 ~/.terraform.d/plugins/terraform.env0.com/local/env0/6.6.6/darwin_amd64` (Replace `darwin` with `linux` on Linux)
- Create the plugins folder - `mkdir -p ~/.terraform.d/plugins/terraform.env0.com/local/env0/6.6.6/darwin_arm64` (for Intel processor, replace `arm64` with `amd64`)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everyone uses ARM-based macs now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this test file I removed otherEnvironment altogether as it's not valid anymore to have the API return an environment with a different name than the name requested

@yaronya yaronya requested a review from a team August 13, 2024 18:57
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions github-actions bot added the ready to merge PR approved - can be merged once the PR owner is ready label Aug 14, 2024
@yaronya yaronya merged commit 6e3153f into main Aug 14, 2024
7 checks passed
@yaronya yaronya deleted the chore-query-envs-by-name branch August 14, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-client chore provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use "name" QS when querying for environments in an organization
1 participant