-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix - queryspec Orders equivalency (#366)
Reported via Pollinators ([link](https://honeycombpollinators.slack.com/archives/C017T9FFT0D/p1692690089887929)). Prior to this change a `honeycombio_query` as below would cause an infinite diff: ```hcl resource "honeycombio_query" "test" { dataset = var.dataset query_json = <<-EOF { "breakdowns": ["app.tenant"], "calculations": [{ "op": "COUNT" }], "orders": [ { "column": "app.tenant", "order": "ascending" } ], "time_range": 7200 } EOF } ``` Plan output: ``` # honeycombio_query.test must be replaced -/+ resource "honeycombio_query" "test" { ~ id = "AD1Ue8TJCfC" -> (known after apply) ~ query_json = jsonencode( ~ { ~ orders = [ ~ { + order = "ascending" # (1 unchanged attribute hidden) }, ] # (3 unchanged attributes hidden) } # forces replacement ) # (1 unchanged attribute hidden) } ```
- Loading branch information
Showing
2 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters