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

Field of type 'DATE' updates item even if there were no changes #137

Closed
bloudraak opened this issue Jan 14, 2024 · 1 comment · Fixed by #150
Closed

Field of type 'DATE' updates item even if there were no changes #137

bloudraak opened this issue Jan 14, 2024 · 1 comment · Fixed by #150
Assignees
Labels
bug Something isn't working

Comments

@bloudraak
Copy link

Your environment

Terraform Provider Version:
1.4.0

Connect Server Version:
N/A

CLI Version:
2.24.0

OS:
macOS 14.2.1 (23C71)
ARM

Terraform Version:
Terraform v1.5.7
on darwin_arm64

What happened?

If you have a field of type DATE, running terraform apply multiple times, even when nothing has changed, causes the item to be updated.

What did you expect to happen?

The item should not be updated if nothing changes between two subsequent terraform apply.

Steps to reproduce

The following Terraform code reproduces the issue in my environment. Note the date is hardcoded. Also, note that I'm using a service token to authenticate.

data "onepassword_vault" "vault" {
  name = "Example"
}


resource "onepassword_item" "item" {
  vault = data.onepassword_vault.vault.uuid
  title = "Item 2"
  section {
    label = "Section 1"
    field {
      label = "text"
      type = "DATE"
      value = "2023-10-10"
    }
  }
}

Notes & Logs

N/A

@bloudraak bloudraak added the bug Something isn't working label Jan 14, 2024
@volodymyrZotov
Copy link
Collaborator

@bloudraak Thank you for raising this! That definitely should be fixed. Stay tuned for the upcoming releases.

Meanwhile, if you want to help and have time, you're welcome to contribute and create a PR with the fix! 😃
Here are our CONTRIBUTING.md instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants