Skip to content

Releases: OpsLevel/opslevel-go

v2024.5.13

13 May 14:21
Compare
Choose a tag to compare

May 13, 2024

Bugfix

  • fix listing repositories. added default "visible" bool to query variables

Feature

  • Add ability to get the "default repo" of a service
  • Introduce Nullable generic type allows string only (to support for unsetting fields in update input structs)
  • Add ServiceUpdateInputV2 - can be used to unset fields on a service like description, framework, lifecycleAlias, tierAlias

Refactor

  • BREAKING - update "Usage" field in Repository struct. Was float32, is now float64

Deprecated

  • Deprecate ServiceUpdateInput, is being replaced by ServiceUpdateInputV2

Dependency

  • Bump github.com/go-playground/validator/v10 from 10.19.0 to 10.20.0
  • Bump goreleaser/goreleaser-action from 5.0.0 to 5.1.0
  • Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.6

v2024.4.26

26 Apr 20:01
Compare
Choose a tag to compare

April 26, 2024

Bugfix

  • include Schema field during infrastructure update

Feature

  • Add externalId and isDefault fields to contact struct
  • add listing services by filter
  • add "visible" payload variable to listing repositories

Dependency

  • Bump golang.org/x/net from 0.22.0 to 0.23.0

v2024.3.15

15 Mar 14:43
Compare
Choose a tag to compare

March 15, 2024

Bugfix

  • CreateTags will now return joined errors
  • fix list services maturity query, crashed if over 100 services

Feature

  • Add support for Property.Locked and PropertyDefinition.AllowedInConfigFiles
  • Add support for parent (system) on service object

Refactor

  • Convert deprecated graphql.Int's to normal int's

Removed

  • Removed examples since they use deprecated functions
  • Removed deprecated NewClient, NewString, Bool, NewInt

Dependency

  • Bump github.com/gosimple/slug from 1.13.1 to 1.14.0
  • Bump github.com/go-playground/validator/v10 from 10.18.0 to 10.19.0
  • Bump github.com/hasura/go-graphql-client from 0.11.0 to 0.12.1

v2024.2.26

26 Feb 14:52
Compare
Choose a tag to compare

February 26, 2024

Bugfix

  • BREAKING - NewJSONInput() will not json.Marshal() on string input containing a json array/obj to prevent adding unnecessary backlashes.

Feature

  • Add support for managedAliases on Teams

Refactor

  • NewTagArgs(string) will return error if string is not in exact format 'key:value'

Docs

  • Added godoc for json constructor and to string functions.

Dependency

  • Bump github.com/relvacode/iso8601 from 1.3.0 to 1.4.0
  • Bump github.com/rs/zerolog from 1.31.0 to 1.32.0
  • Bump github.com/hasura/go-graphql-client from 0.10.2 to 0.11.0
  • Bump codecov/codecov-action from 3 to 4
  • Bump arduino/setup-task from 1 to 2
  • Bump github.com/go-playground/validator/v10 from 10.16.0 to 10.18.0

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