Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Support initial configuration during assign (#3908)
Browse files Browse the repository at this point in the history
* initial implementation

* enrich unit tests

* validate initial configurations

* graphqlizer

* graphqlizer

* graphqlizer

* adapt test

* address PR comments
  • Loading branch information
StanislavStefanov committed Jun 11, 2024
1 parent 85b22ab commit be3a137
Show file tree
Hide file tree
Showing 45 changed files with 1,052 additions and 411 deletions.
2 changes: 1 addition & 1 deletion components/director/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
github.com/avast/retry-go/v4 v4.5.0
github.com/davecgh/go-spew v1.1.1
github.com/dlmiddlecote/sqlstats v1.0.2
github.com/form3tech-oss/jwt-go v3.2.5+incompatible
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
Expand Down Expand Up @@ -58,7 +59,6 @@ require (
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion components/director/internal/domain/application/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ type WebhookRepository interface {
//
//go:generate mockery --name=FormationService --output=automock --outpkg=automock --case=underscore --disable-version-string
type FormationService interface {
AssignFormation(ctx context.Context, tnt, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)
ListFormationsForObject(ctx context.Context, objectID string) ([]*model.Formation, error)
ListFormationsForObjectGlobal(ctx context.Context, objectID string) ([]*model.Formation, error)
ListObjectIDsOfTypeForFormations(ctx context.Context, tenantID string, formationNames []string, objectType model.FormationAssignmentType) ([]string, error)
Expand Down
Loading

0 comments on commit be3a137

Please sign in to comment.