这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix a bunch of bugs in resource_project_environment_variables #306

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

Merged
merged 2 commits into from
May 1, 2025

Conversation

dglsparsons
Copy link
Collaborator

@dglsparsons dglsparsons commented Apr 30, 2025

  • Refresh state logic was broken
  • We didn't factor in existing env vars properly when doing an Update
  • It was fetching encrypted env vars, not decrypted ones
  • Conflict errors weren't being handled properly in the client
  • Decrypted field isn't always there in the API response
  • Deleting env vars is eventually consistent
  • Update was trying to update every env var, not just the new/changed ones
  • Newly created environment variables should be set as not decrypted in the response

This closes #277 and #262 (probably)

- Refresh state logic was broken
- We didn't factor in existing env vars properly when doing an Update
- It was fetching encrypted env vars, not decrypted ones
- Conflict errors weren't being handled properly in the client
- Decrypted field isn't always there in the API response
- Deleting env vars is eventually consistent
- Update was trying to update every env var, not just the new/changed ones

This closes #277 and #262 (probably)
@dglsparsons dglsparsons force-pushed the fix-nasty-environment-variables-bug branch from 672fa7f to 5354651 Compare May 1, 2025 08:24
@dglsparsons dglsparsons marked this pull request as ready for review May 1, 2025 08:41
@dglsparsons dglsparsons merged commit 2267e5f into main May 1, 2025
5 checks passed
@dglsparsons dglsparsons deleted the fix-nasty-environment-variables-bug branch May 1, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent UI Change Detection in Terraform Vercel Resources
2 participants