Skip to content

Releases: OpsLevel/opslevel-go

v2024.6.17

17 Jun 14:13
Compare
Choose a tag to compare

June 17, 2024

Feature

  • add abililty to list Categories on Scorecards
  • add filter predicate config validation

Dependency

  • Bump github.com/go-playground/validator/v10 from 10.21.0 to 10.22.0
  • Bump github.com/hasura/go-graphql-client from 0.12.1 to 0.12.2

v2024.6.11

11 Jun 15:01
Compare
Choose a tag to compare

June 11, 2024

Bugfix

  • enable unsetting predicates of type PredicateUpdateInput with custom JSON marshal

Dependency

  • Bump github.com/hashicorp/go-retryablehttp from 0.7.6 to 0.7.7
  • Bump github.com/go-playground/validator/v10 from 10.20.0 to 10.21.0

v2024.5.31

31 May 19:42
Compare
Choose a tag to compare

May 31, 2024

Feature

  • add Validate func to Predicate struct

Dependency

  • Bump github.com/rs/zerolog from 1.32.0 to 1.33.0

v2024.5.28

28 May 16:24
Compare
Choose a tag to compare

May 28, 2024

Bugfix

  • make FileContentsPredicate a pointer in RepositorySearchCheckFragment to allow unsetting

Refactor

  • BREAKING CHANGE - pointers of Predicate fields updated for AlertSourceUsageCheckFragment, RepositoryGrepCheckFragment, and RepositorySearchCheckFragment

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