Skip to content

Releases: OpsLevel/opslevel-go

v2024.1.13

13 Jan 03:24
4d44122
Compare
Choose a tag to compare

January 13, 2024

This release contains a multitude of breaking changes. This release marks that beginning of applying code generation to opslevel-go to standardize the codebase to both speed up development and ensure consistency and correctness. A number of methods have had their signatures changed as well as several methods have been deprecated and previously deprecated methods have been removed.

Bugfix

  • Fix bug where Team inputs did not omit optional ParentTeam field
  • Fix bug where optional IdentifierInput fields could never be unset - this can now be done by passing NewIdentifier() with no args
  • Add missing yaml tags for *IdentifierInput and *ID

Feature

  • add yaml and default struct tags to Input structs
  • Add support for assigning Properties to Services
  • add task ci, standardizing task usage in our CI
  • Create null IdentifierInput by passing no arguments to NewIdentifier()
  • Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0
  • add RefOf() to take place of NewString(), NewInt(), Bool()
  • add NewManualCheckFrequencyUpdateInput() factory function
  • update InfraProviderInput.Data to type JSON, was map[string]any
  • add JSONSchema() type, similar to JSON type, needed to match GraphQL API
  • Bump github.com/hasura/go-graphql-client from 0.10.1 to 0.10.2
  • add NewCheckCreateInputTypeOf and NewCheckCreateUpdateTypeOf factory funcs
  • Add RefTo - alias for RefOf

Refactor

  • Update code to support change in schema and new Property Definition fields
  • [BREAKING CHANGE] Use string as argument for all client request functions instead of requiring an IdentifierInput
  • BREAKING CHANGE renamed JSONString type to JsonString to match GraphQL API
  • BREAKING CHANGE PropertyDefinition.Schema type is now JSONSchema, was JSON
  • Combine DeleteService(ID) and DeleteServiceWithAlias(string) into a unified function
  • DeleteScorecard() now returns a pointer like other Delete functions
  • List() functions consistently return a (*Connection, error)
  • Merge DeleteTeam(ID) and DeleteTeamWithAlias(string) into DeleteTeam(identifier string)
  • NewIdentifierInput() now returns a pointer to be consistent with NewIdentifier()
  • JSON functions now return (ptr, error) instead of panic()-ing

Deprecated

  • deprecated NewString(), NewInt(), Bool() - use RefOf() instead

Removed

  • all Groups structs, related functions, and Group type fields from other structs
  • DomainId and SystemId member func - Tags
  • Service member func - Documents
  • Team member func - GetMembers
  • Client member funcs - AssignTagsForAlias, AssignTagForAlias, AssignTagsForId, AssignTagForId, CreateTagsForId
  • Client member funcs - GetToolsForServiceWithAlias, GetToolsForServiceWithId, GetToolsForService, GetToolCount
  • Client member funcs - AddMember, AddMembers, RemoveMembers, RemoveMembers, DeleteTeamWithId, GetTeamWithId
  • Client member funcs - GetServiceWithId, GetTagsForServiceWithAlias, GetTagsForServiceWithId, GetTagsForService, GetTagCount

v2023.12.14

14 Dec 18:02
Compare
Choose a tag to compare

December 14, 2023

Bugfix

  • fix error logged when JSONString passed to fmt.Sprintf()

Feature

  • Add NewJSONInput which creates a properly marshalled input type for graphql
  • Add support for Property Definitions
  • add func to generate yaml files from our structs
  • Add ability to set the parent system of a service during create or update
  • add default struct tags which provide default values for a struct to help with sample yaml generation

Dependency

  • Bump github.com/hasura/go-graphql-client from 0.10.0 to 0.10.1

v2023.11.16

16 Nov 21:02
Compare
Choose a tag to compare

November 16, 2023

Bugfix

  • make UserIdentifierInput fields pointers, fixing the omitempty struct tag behavior
  • BREAKING: change IdentifierInput struct fields to pointers
  • revert removal of EntityOwner struct, not yet removed in API

Feature

  • Access ManagedAliases on Service
  • Enable deletion of Infrastructure Resource aliases
  • add error check to JSON unmarshalling
  • add enum ServicePropertyTypeEnum

Refactor

  • BREAKING CHANGE ownerAlias deprecated on service inputs

Deprecated

  • Groups are deprecated in favor of Team hierarchies

Removed

  • GroupInput and EntityOwnerGroup structs, CreateGroup and UpdateGroup client methods, Group field from TeamCreateInput and TeamUpdateInput structs

Dependency

  • Bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3
  • Bump github.com/rocktavious/autopilot/v2023 from 2023.8.18 to 2023.11.2

v2023.10.20

20 Oct 21:16
Compare
Choose a tag to compare

October 20, 2023

Feature

  • add ParentTeam field to Team, TeamCreateInput, and TeamUpdateInput
  • Update predicate filter enum to support aliases and filter_id as options for new filter types
  • add AffectsOverallServiceLevels field to Scorecard and ScorecardInput

Deprecated

  • BREAKING CHANGE: TeamMembershipUserInput Email field replaced with User field

Dependency

  • Bump golang.org/x/net from 0.15.0 to 0.17.0
  • Bump opslevel/report-deploy-github-action from 0.6.0 to 0.7.0
  • Bump github.com/go-resty/resty/v2 from 2.9.1 to 2.10.0

v2023.10.8

08 Oct 13:03
Compare
Choose a tag to compare

October 08, 2023

Bugfix

  • hotfix to update extendedTeamAccess input param
  • fix using alias only to create a tag
  • filter duplicate tags in query response

Feature

  • add interface for taggable resources
  • domain, repository, service, system, and team - implement taggable interface
  • Add tag key name validation to CreateTag AssignTag and UpdateTag methods
  • add tags support for user and infrastructure resources
  • Add case sensitive field to filter predicate

Deprecated

  • removed RepositoryTagConnection since TagConnection already exists

Dependency

  • Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0

v2023.9.12

12 Sep 03:26
Compare
Choose a tag to compare

September 12, 2023

Feature

  • add extendedTeamAccess for CustomActionsTriggerDefinitions

Dependency

  • Bump goreleaser/goreleaser-action from 4.4.0 to 4.6.0
  • Bump actions/checkout from 3 to 4
  • Bump crazy-max/ghaction-import-gpg from 5 to 6

v2023.8.28

28 Aug 14:08
Compare
Choose a tag to compare

August 28, 2023

Feature

  • add support for scorecards
  • add secrets API operations
  • update go version to 1.21

v2023.8.18

18 Aug 02:14
Compare
Choose a tag to compare

August 18, 2023

Bugfix

  • Fixes a json marshaling bug for InfraInput

v2023.8.14

14 Aug 17:29
Compare
Choose a tag to compare

August 14, 2023

Dependency

  • Bump github.com/rs/zerolog from 1.29.1 to 1.30.0
  • Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0
  • Bump github.com/hasura/go-graphql-client from 0.9.3 to 0.10.0
  • Bump goreleaser/goreleaser-action from 4.3.0 to 4.4.0

v2023.7.28

28 Jul 16:16
Compare
Choose a tag to compare

July 28, 2023

Feature

  • As a user, I can configure filters with Repository predicates using Go Tools
  • As a user, I can configure filter predicates with does not match regex and does not match
  • add Taskfile for common tasks
  • As a user, I can configure nested filters
  • Install newer graphql dependency