Skip to content

v2023.3.14

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Mar 16:32
· 734 commits to main since this release

March 14, 2023

BREAKING CHANGES

This release has breaking changes to the way List methods are called and the data they return. We refactored all our pagination code to work recursively so that we can actually test it properly and ensure it works as expected.

The main change you'll need to do is pass in a new argument which can be nil and the return object is now nested in a *Connection structure which hold the pagination information and total count.

this

services, err := client.ListServices()

becomes

servicesResp, err := client.ListServices(nil)
services := servicesResp.Nodes

Along with this we have deprecated a number of methods that will be removed in the near future and have changed our All enum functions to just be variables.

Overall these refactors have taken our test coverage up from ~60% -> 81% 🎉

Feature

  • Add create and delete for AlertSourceService

Refactor

  • Fix bug where custom event check message was not able to be unset
  • Refactor list teams and list groups functions to handle pagination correctly.
  • Add "operation-name" to all query and mutations
  • Refactoring nested pagination on groups
  • Refactor service pagination calls
  • Refactor repository pagination calls
  • Refactored all pagination code to be tested and ensure it works properly. This is a slightly breaking change because the signature of the methods has been modified with a new input variable.
  • Refactor all enum functions to just be static global variables

Dependency

  • Bump github.com/hasura/go-graphql-client from 0.8.1 to 0.9.0
  • Bump github.com/rs/zerolog from 1.28.0 to 1.29.0
  • Bump golang.org/x/sys from 0.0.0-20211216021012-1d35b9e2eb4e to 0.1.0
  • Bump github.com/hasura/go-graphql-client from 0.9.0 to 0.9.1
  • Bump golang.org/x/oauth2 from 0.0.0-20220608161450-d0670ef3b1eb to 0.6.0