diff --git a/CHANGELOG.md b/CHANGELOG.md index e24a32b9..8e55a370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [v0.6.0] - 2021-01-27 +### Bug Fixes +- **schema:** Queries withouth args do not get () + ## [v0.5.0] - 2021-01-04 ### Features @@ -135,7 +140,8 @@ - **generator:** introduce a generator concept - **tutone:** default path for tutone config file -[Unreleased]: https://github.com/newrelic/newrelic-client-go/compare/v0.5.0...HEAD +[Unreleased]: https://github.com/newrelic/newrelic-client-go/compare/v0.6.0...HEAD +[v0.6.0]: https://github.com/newrelic/newrelic-client-go/compare/v0.5.0...v0.6.0 [v0.5.0]: https://github.com/newrelic/newrelic-client-go/compare/v0.4.3...v0.5.0 [v0.4.3]: https://github.com/newrelic/newrelic-client-go/compare/v0.4.2...v0.4.3 [v0.4.2]: https://github.com/newrelic/newrelic-client-go/compare/v0.4.1...v0.4.2 diff --git a/internal/schema/schema_util_test.go b/internal/schema/schema_util_test.go index 181269f5..68b2fc33 100644 --- a/internal/schema/schema_util_test.go +++ b/internal/schema/schema_util_test.go @@ -44,7 +44,7 @@ func TestExpandTypes(t *testing.T) { Mutations: []config.MutationConfig{{ Name: "alertsNrqlConditionBaselineCreate", }}, - ExpectedNames: []string{"AlertsFillOption", "AlertsNrqlBaselineCondition", "AlertsNrqlBaselineDirection", "AlertsNrqlCondition", "AlertsNrqlConditionBaselineInput", "AlertsNrqlConditionExpiration", "AlertsNrqlConditionExpirationInput", "AlertsNrqlConditionPriority", "AlertsNrqlConditionQuery", "AlertsNrqlConditionQueryInput", "AlertsNrqlConditionSignal", "AlertsNrqlConditionSignalInput", "AlertsNrqlConditionTerms", "AlertsNrqlConditionTermsOperator", "AlertsNrqlConditionThresholdOccurrences", "AlertsNrqlConditionType", "AlertsNrqlDynamicConditionTermsInput", "AlertsNrqlDynamicConditionTermsOperator", "AlertsNrqlOutlierCondition", "AlertsNrqlStaticCondition", "AlertsNrqlStaticConditionValueFunction", "AlertsViolationTimeLimit", "Boolean", "Float", "ID", "Int", "Seconds", "String"}, + ExpectedNames: []string{"AlertsFillOption", "AlertsNrqlBaselineCondition", "AlertsNrqlBaselineDirection", "AlertsNrqlCondition", "AlertsNrqlConditionBaselineInput", "AlertsNrqlConditionExpiration", "AlertsNrqlConditionExpirationInput", "AlertsNrqlConditionPriority", "AlertsNrqlConditionQuery", "AlertsNrqlConditionQueryInput", "AlertsNrqlConditionSignal", "AlertsNrqlConditionSignalInput", "AlertsNrqlConditionTerms", "AlertsNrqlConditionTermsOperator", "AlertsNrqlConditionThresholdOccurrences", "AlertsNrqlConditionType", "AlertsNrqlDynamicConditionTermsInput", "AlertsNrqlDynamicConditionTermsOperator", "AlertsNrqlOutlierCondition", "AlertsNrqlStaticCondition", "AlertsNrqlStaticConditionValueFunction", "AlertsViolationTimeLimit", "Boolean", "Float", "ID", "Int", "Nrql", "Seconds", "String"}, }, "sample interface type": { Types: []config.TypeConfig{{ @@ -65,7 +65,7 @@ func TestExpandTypes(t *testing.T) { Mutations: []config.MutationConfig{{ Name: "apiAccessCreateKeys", }}, - ExpectedNames: []string{"ApiAccessCreateIngestKeyInput", "ApiAccessCreateInput", "ApiAccessCreateKeyResponse", "ApiAccessCreateUserKeyInput", "ApiAccessIngestKey", "ApiAccessIngestKeyError", "ApiAccessIngestKeyErrorType", "ApiAccessIngestKeyType", "ApiAccessKey", "ApiAccessKeyError", "ApiAccessKeyType", "ApiAccessUserKey", "ApiAccessUserKeyError", "ApiAccessUserKeyErrorType", "EpochSeconds", "ID", "Int", "String"}, + ExpectedNames: []string{"AccountReference", "ApiAccessCreateIngestKeyInput", "ApiAccessCreateInput", "ApiAccessCreateKeyResponse", "ApiAccessCreateUserKeyInput", "ApiAccessIngestKey", "ApiAccessIngestKeyError", "ApiAccessIngestKeyErrorType", "ApiAccessIngestKeyType", "ApiAccessKey", "ApiAccessKeyError", "ApiAccessKeyType", "ApiAccessUserKey", "ApiAccessUserKeyError", "ApiAccessUserKeyErrorType", "EpochSeconds", "ID", "Int", "String", "UserReference"}, }, "complicated cloud confirms complications": { Types: []config.TypeConfig{}, diff --git a/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearch.txt b/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearch.txt index 5b0eaecb..b0893542 100644 --- a/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearch.txt +++ b/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearch.txt @@ -88,6 +88,7 @@ query { actor { entitySearch { } ... on ThirdPartyServiceEntityOutline { __typename + alertSeverity } ... on UnavailableEntityOutline { __typename diff --git a/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearchArgs.txt b/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearchArgs.txt index f719d419..e31bdba4 100644 --- a/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearchArgs.txt +++ b/internal/schema/testdata/TestSchema_GetQueryStringForEndpoint_entitySearchArgs.txt @@ -92,6 +92,7 @@ query( } ... on ThirdPartyServiceEntityOutline { __typename + alertSeverity } ... on UnavailableEntityOutline { __typename diff --git a/internal/schema/testdata/TestSchema_GetQueryStringForMutation_alertsMutingRuleCreate.txt b/internal/schema/testdata/TestSchema_GetQueryStringForMutation_alertsMutingRuleCreate.txt index 788badfe..f95e68f2 100644 --- a/internal/schema/testdata/TestSchema_GetQueryStringForMutation_alertsMutingRuleCreate.txt +++ b/internal/schema/testdata/TestSchema_GetQueryStringForMutation_alertsMutingRuleCreate.txt @@ -27,9 +27,15 @@ mutation( id name schedule { + endRepeat endTime + nextEndTime + nextStartTime + repeat + repeatCount startTime timeZone + weeklyRepeatDays } status updatedAt diff --git a/internal/version/version.go b/internal/version/version.go index 305b2703..5b41a309 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.5.0" +const Version string = "0.6.0"