From feaaf1c93381a584f5b5f821284622d5a6223628 Mon Sep 17 00:00:00 2001 From: Yentl Frickx <31767257+YentlFrickx@users.noreply.github.com> Date: Tue, 13 Sep 2022 09:17:18 +0200 Subject: [PATCH 1/2] fix: omit filter ID when empty This is a fix for https://github.com/newrelic/terraform-provider-newrelic/issues/1986 . When trying to update a workflow via terraform an error is thrown due to the fact that no filter ID (empty) is passed the first time. By allowing this to be omitted when empty (which is still a valid request) the terraform update of a workflow works and results in a valid workflow. --- pkg/workflows/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/workflows/types.go b/pkg/workflows/types.go index ae7a34bb5..91942e69c 100644 --- a/pkg/workflows/types.go +++ b/pkg/workflows/types.go @@ -579,7 +579,7 @@ type AiWorkflowsUpdatedFilterInput struct { // filterInput FilterInput AiWorkflowsFilterInput `json:"filterInput,omitempty"` // id - ID string `json:"id"` + ID string `json:"id,omitempty"` } // AiWorkflowsWorkflow - Workflow object From 84587122056b54196570fe25bf25e6f05e430958 Mon Sep 17 00:00:00 2001 From: nr-developer-toolkit <62031461+nr-developer-toolkit@users.noreply.github.com> Date: Thu, 22 Sep 2022 13:52:25 +0000 Subject: [PATCH 2/2] chore(release): release v0.91.2 --- CHANGELOG.md | 8 +++++++- internal/version/version.go | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad35aa05..89a830677 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [v0.91.2] - 2022-09-22 +### Bug Fixes +- omit filter ID when empty + ## [v0.91.1] - 2022-09-07 ### Bug Fixes @@ -1423,7 +1428,8 @@ - extract paging implementation - rename packages for clarity, promote Config to the public package -[Unreleased]: https://github.com/newrelic/newrelic-client-go/compare/v0.91.1...HEAD +[Unreleased]: https://github.com/newrelic/newrelic-client-go/compare/v0.91.2...HEAD +[v0.91.2]: https://github.com/newrelic/newrelic-client-go/compare/v0.91.1...v0.91.2 [v0.91.1]: https://github.com/newrelic/newrelic-client-go/compare/v0.91.0...v0.91.1 [v0.91.0]: https://github.com/newrelic/newrelic-client-go/compare/v0.90.0...v0.91.0 [v0.90.0]: https://github.com/newrelic/newrelic-client-go/compare/v0.89.1...v0.90.0 diff --git a/internal/version/version.go b/internal/version/version.go index 2fc713228..c9111c273 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,4 +1,4 @@ package version // Version of this library -const Version string = "0.91.1" +const Version string = "0.91.2"