diff --git a/internal/api/graphql/graph/generated.go b/internal/api/graphql/graph/generated.go index f7fba360..30881953 100644 --- a/internal/api/graphql/graph/generated.go +++ b/internal/api/graphql/graph/generated.go @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package graph @@ -22,7 +19,9 @@ import ( "github.com/vektah/gqlparser/v2/ast" ) -// region ************************** generated!.gotpl *******github.com/cloudoperatorsewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. +// region ************************** generated!.gotpl ************************** + +// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { return &executableSchema{ schema: cfg.Schema, @@ -367,6 +366,14 @@ type ComplexityRoot struct { UpdatedAt func(childComplexity int) int } + Metadata struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + Mutation struct { AddComponentVersionToIssue func(childComplexity int, issueID string, componentVersionID string) int AddEvidenceToIssueMatch func(childComplexity int, issueMatchID string, evidenceID string) int @@ -514,6 +521,7 @@ type ComplexityRoot struct { User struct { ID func(childComplexity int) int + Metadata func(childComplexity int) int Name func(childComplexity int) int Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int SupportGroups func(childComplexity int, filter *model.SupportGroupFilter, first *int, after *string) int @@ -2150,6 +2158,41 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.IssueVariantEdge.UpdatedAt(childComplexity), true + case "Metadata.created_at": + if e.complexity.Metadata.CreatedAt == nil { + break + } + + return e.complexity.Metadata.CreatedAt(childComplexity), true + + case "Metadata.created_by": + if e.complexity.Metadata.CreatedBy == nil { + break + } + + return e.complexity.Metadata.CreatedBy(childComplexity), true + + case "Metadata.deleted_at": + if e.complexity.Metadata.DeletedAt == nil { + break + } + + return e.complexity.Metadata.DeletedAt(childComplexity), true + + case "Metadata.updated_at": + if e.complexity.Metadata.UpdatedAt == nil { + break + } + + return e.complexity.Metadata.UpdatedAt(childComplexity), true + + case "Metadata.updated_by": + if e.complexity.Metadata.UpdatedBy == nil { + break + } + + return e.complexity.Metadata.UpdatedBy(childComplexity), true + case "Mutation.addComponentVersionToIssue": if e.complexity.Mutation.AddComponentVersionToIssue == nil { break @@ -3315,6 +3358,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.User.ID(childComplexity), true + case "User.metadata": + if e.complexity.User.Metadata == nil { + break + } + + return e.complexity.User.Metadata(childComplexity), true + case "User.name": if e.complexity.User.Name == nil { break @@ -3567,2906 +3617,6321 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) func (ec *executionContext) field_Activity_evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.EvidenceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Activity_evidences_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Activity_evidences_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Activity_evidences_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Activity_evidences_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.EvidenceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.EvidenceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) + } + + var zeroVal *model.EvidenceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_evidences_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_evidences_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Activity_issueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchChangeFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Activity_issueMatchChanges_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Activity_issueMatchChanges_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Activity_issueMatchChanges_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Activity_issueMatchChanges_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchChangeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) + } + + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_issueMatchChanges_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_issueMatchChanges_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Activity_issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Activity_issues_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Activity_issues_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Activity_issues_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Activity_issues_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) + } + + var zeroVal *model.IssueFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_issues_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_issues_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Activity_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ServiceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Activity_services_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Activity_services_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Activity_services_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Activity_services_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_services_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Activity_services_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_ComponentInstance_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ComponentInstance_issueMatches_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_ComponentInstance_issueMatches_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_ComponentInstance_issueMatches_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_ComponentInstance_issueMatches_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) + } + + var zeroVal *model.IssueMatchFilter + return zeroVal, nil +} + +func (ec *executionContext) field_ComponentInstance_issueMatches_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ComponentInstance_issueMatches_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_ComponentVersion_componentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ComponentVersion_componentInstances_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_ComponentVersion_componentInstances_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 return args, nil } +func (ec *executionContext) field_ComponentVersion_componentInstances_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ComponentVersion_componentInstances_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_ComponentVersion_issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ComponentVersion_issues_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_ComponentVersion_issues_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 return args, nil } +func (ec *executionContext) field_ComponentVersion_issues_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ComponentVersion_issues_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Component_componentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentVersionFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Component_componentVersions_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Component_componentVersions_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Component_componentVersions_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Component_componentVersions_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentVersionFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) + } + + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Component_componentVersions_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Component_componentVersions_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Evidence_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Evidence_issueMatches_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Evidence_issueMatches_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Evidence_issueMatches_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Evidence_issueMatches_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) + } + + var zeroVal *model.IssueMatchFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Evidence_issueMatches_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Evidence_issueMatches_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_IssueMatchFilterValue_affectedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ServiceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatchFilterValue_affectedService_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 return args, nil } +func (ec *executionContext) field_IssueMatchFilterValue_affectedService_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} func (ec *executionContext) field_IssueMatchFilterValue_componentName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatchFilterValue_componentName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 return args, nil } +func (ec *executionContext) field_IssueMatchFilterValue_componentName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) + } + + var zeroVal *model.ComponentFilter + return zeroVal, nil +} func (ec *executionContext) field_IssueMatchFilterValue_primaryName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatchFilterValue_primaryName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 return args, nil } +func (ec *executionContext) field_IssueMatchFilterValue_primaryName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) + } + + var zeroVal *model.IssueFilter + return zeroVal, nil +} func (ec *executionContext) field_IssueMatchFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.SupportGroupFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatchFilterValue_supportGroupName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 return args, nil } +func (ec *executionContext) field_IssueMatchFilterValue_supportGroupName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SupportGroupFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.SupportGroupFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) + } + + var zeroVal *model.SupportGroupFilter + return zeroVal, nil +} func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueVariantFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatch_effectiveIssueVariants_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_IssueMatch_effectiveIssueVariants_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_IssueMatch_effectiveIssueVariants_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueVariantFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueVariantFilter + return zeroVal, nil + } -func (ec *executionContext) field_IssueMatch_evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.EvidenceFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueVariantFilter + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_IssueMatch_issueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_IssueMatch_evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchChangeFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatch_evidences_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_IssueMatch_evidences_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_IssueMatch_evidences_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_IssueMatch_evidences_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.EvidenceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.EvidenceFilter + return zeroVal, nil + } -func (ec *executionContext) field_IssueRepository_issueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.IssueVariantFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.EvidenceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_evidences_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_evidences_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_IssueRepository_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_IssueMatch_issueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ServiceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueMatch_issueMatchChanges_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_IssueMatch_issueMatchChanges_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_IssueMatch_issueMatchChanges_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchChangeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil + } -func (ec *executionContext) field_Issue_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.ActivityFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Issue_componentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_IssueRepository_issueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentVersionFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_IssueRepository_issueVariants_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_IssueRepository_issueVariants_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_IssueRepository_issueVariants_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_IssueRepository_issueVariants_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueVariantFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueVariantFilter + return zeroVal, nil + } -func (ec *executionContext) field_Issue_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) + } + + var zeroVal *model.IssueVariantFilter + return zeroVal, nil +} + +func (ec *executionContext) field_IssueRepository_issueVariants_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_IssueRepository_issueVariants_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_IssueRepository_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchFilter + arg0, err := ec.field_IssueRepository_services_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_IssueRepository_services_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_IssueRepository_services_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_IssueRepository_services_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_IssueRepository_services_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_IssueRepository_services_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Issue_activities_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int + arg1, err := ec.field_Issue_activities_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Issue_activities_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Issue_activities_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ActivityFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ActivityFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) + } + + var zeroVal *model.ActivityFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_activities_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_activities_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_componentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Issue_componentVersions_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Issue_componentVersions_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string + arg2, err := ec.field_Issue_componentVersions_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Issue_componentVersions_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentVersionFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) + } + + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_componentVersions_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_componentVersions_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Issue_issueMatches_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Issue_issueMatches_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Issue_issueMatches_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Issue_issueMatches_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) + } + + var zeroVal *model.IssueMatchFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_issueMatches_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_issueMatches_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Issue_issueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueVariantFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Issue_issueVariants_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Issue_issueVariants_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Issue_issueVariants_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Issue_issueVariants_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueVariantFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueVariantFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) + } + + var zeroVal *model.IssueVariantFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_issueVariants_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Issue_issueVariants_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addComponentVersionToIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["issueId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addComponentVersionToIssue_argsIssueID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["componentVersionId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addComponentVersionToIssue_argsComponentVersionID(ctx, rawArgs) + if err != nil { + return nil, err } args["componentVersionId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addComponentVersionToIssue_argsIssueID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) + if tmp, ok := rawArgs["issueId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addComponentVersionToIssue_argsComponentVersionID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["componentVersionId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) + if tmp, ok := rawArgs["componentVersionId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["issueMatchId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addEvidenceToIssueMatch_argsIssueMatchID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueMatchId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["evidenceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addEvidenceToIssueMatch_argsEvidenceID(ctx, rawArgs) + if err != nil { + return nil, err } args["evidenceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_argsIssueMatchID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueMatchId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) + if tmp, ok := rawArgs["issueMatchId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_argsEvidenceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["evidenceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) + if tmp, ok := rawArgs["evidenceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addIssueRepositoryToService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addIssueRepositoryToService_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["issueRepositoryId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addIssueRepositoryToService_argsIssueRepositoryID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueRepositoryId"] = arg1 - var arg2 int - if tmp, ok := rawArgs["priority"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) - arg2, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Mutation_addIssueRepositoryToService_argsPriority(ctx, rawArgs) + if err != nil { + return nil, err } args["priority"] = arg2 return args, nil } +func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsIssueRepositoryID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueRepositoryId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) + if tmp, ok := rawArgs["issueRepositoryId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsPriority( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["priority"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) + if tmp, ok := rawArgs["priority"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addIssueToActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["activityId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addIssueToActivity_argsActivityID(ctx, rawArgs) + if err != nil { + return nil, err } args["activityId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["issueId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addIssueToActivity_argsIssueID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addIssueToActivity_argsActivityID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["activityId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) + if tmp, ok := rawArgs["activityId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addIssueToActivity_argsIssueID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) + if tmp, ok := rawArgs["issueId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addOwnerToService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addOwnerToService_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["userId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addOwnerToService_argsUserID(ctx, rawArgs) + if err != nil { + return nil, err } args["userId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addOwnerToService_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addOwnerToService_argsUserID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["userId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) + if tmp, ok := rawArgs["userId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addServiceToActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["activityId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addServiceToActivity_argsActivityID(ctx, rawArgs) + if err != nil { + return nil, err } args["activityId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addServiceToActivity_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addServiceToActivity_argsActivityID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["activityId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) + if tmp, ok := rawArgs["activityId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addServiceToActivity_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addServiceToSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["supportGroupId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addServiceToSupportGroup_argsSupportGroupID(ctx, rawArgs) + if err != nil { + return nil, err } args["supportGroupId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addServiceToSupportGroup_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addServiceToSupportGroup_argsSupportGroupID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["supportGroupId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) + if tmp, ok := rawArgs["supportGroupId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addServiceToSupportGroup_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_addUserToSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["supportGroupId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_addUserToSupportGroup_argsSupportGroupID(ctx, rawArgs) + if err != nil { + return nil, err } args["supportGroupId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["userId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_addUserToSupportGroup_argsUserID(ctx, rawArgs) + if err != nil { + return nil, err } args["userId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_addUserToSupportGroup_argsSupportGroupID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["supportGroupId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) + if tmp, ok := rawArgs["supportGroupId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_addUserToSupportGroup_argsUserID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["userId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) + if tmp, ok := rawArgs["userId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.ActivityInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createActivity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createActivity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ActivityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ActivityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) + } + + var zeroVal model.ActivityInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.ComponentInstanceInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createComponentInstance_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createComponentInstance_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentInstanceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentInstanceInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) + } + + var zeroVal model.ComponentInstanceInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.ComponentVersionInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createComponentVersion_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createComponentVersion_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentVersionInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentVersionInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) + } + + var zeroVal model.ComponentVersionInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.ComponentInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createComponent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createComponent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) + } + + var zeroVal model.ComponentInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.EvidenceInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createEvidence_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createEvidence_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.EvidenceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.EvidenceInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) + } + + var zeroVal model.EvidenceInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.IssueMatchChangeInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createIssueMatchChange_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createIssueMatchChange_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueMatchChangeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueMatchChangeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) + } + + var zeroVal model.IssueMatchChangeInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.IssueMatchInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createIssueMatch_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createIssueMatch_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueMatchInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueMatchInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) + } + + var zeroVal model.IssueMatchInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.IssueRepositoryInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createIssueRepository_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createIssueRepository_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueRepositoryInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueRepositoryInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) + } + + var zeroVal model.IssueRepositoryInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.IssueVariantInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createIssueVariant_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createIssueVariant_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueVariantInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueVariantInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) + } + + var zeroVal model.IssueVariantInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_createIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.IssueInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createIssue_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createIssue_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueInput + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_createService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.ServiceInput + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) } - args["input"] = arg0 - return args, nil + + var zeroVal model.IssueInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_createSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.SupportGroupInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_createService_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createService_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ServiceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ServiceInput + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) + } + + var zeroVal model.ServiceInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.UserInput + arg0, err := ec.field_Mutation_createSupportGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createSupportGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.SupportGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.SupportGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) + } + + var zeroVal model.SupportGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_createUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.UserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.UserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) + } + + var zeroVal model.UserInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteActivity_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteActivity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteComponentInstance_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteComponentInstance_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteComponentVersion_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteComponentVersion_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteComponent_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteComponent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteEvidence_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteEvidence_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteIssueMatchChange_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteIssueMatchChange_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteIssueMatch_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteIssueMatch_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteIssueRepository_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteIssueRepository_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteIssueVariant_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteIssueVariant_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteIssue_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteIssue_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteService_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteService_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteSupportGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteSupportGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_deleteUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["issueId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeComponentVersionFromIssue_argsIssueID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["componentVersionId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeComponentVersionFromIssue_argsComponentVersionID(ctx, rawArgs) + if err != nil { + return nil, err } args["componentVersionId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_argsIssueID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) + if tmp, ok := rawArgs["issueId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_argsComponentVersionID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["componentVersionId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) + if tmp, ok := rawArgs["componentVersionId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["issueMatchId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeEvidenceFromIssueMatch_argsIssueMatchID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueMatchId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["evidenceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeEvidenceFromIssueMatch_argsEvidenceID(ctx, rawArgs) + if err != nil { + return nil, err } args["evidenceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_argsIssueMatchID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueMatchId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) + if tmp, ok := rawArgs["issueMatchId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_argsEvidenceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["evidenceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) + if tmp, ok := rawArgs["evidenceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeIssueFromActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["activityId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeIssueFromActivity_argsActivityID(ctx, rawArgs) + if err != nil { + return nil, err } args["activityId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["issueId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeIssueFromActivity_argsIssueID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeIssueFromActivity_argsActivityID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["activityId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) + if tmp, ok := rawArgs["activityId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeIssueFromActivity_argsIssueID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) + if tmp, ok := rawArgs["issueId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeIssueRepositoryFromService_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["issueRepositoryId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeIssueRepositoryFromService_argsIssueRepositoryID(ctx, rawArgs) + if err != nil { + return nil, err } args["issueRepositoryId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_argsIssueRepositoryID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["issueRepositoryId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) + if tmp, ok := rawArgs["issueRepositoryId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeOwnerFromService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeOwnerFromService_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["userId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeOwnerFromService_argsUserID(ctx, rawArgs) + if err != nil { + return nil, err } args["userId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeOwnerFromService_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeOwnerFromService_argsUserID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["userId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) + if tmp, ok := rawArgs["userId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeServiceFromActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["activityId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeServiceFromActivity_argsActivityID(ctx, rawArgs) + if err != nil { + return nil, err } args["activityId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeServiceFromActivity_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeServiceFromActivity_argsActivityID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["activityId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) + if tmp, ok := rawArgs["activityId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeServiceFromActivity_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["supportGroupId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeServiceFromSupportGroup_argsSupportGroupID(ctx, rawArgs) + if err != nil { + return nil, err } args["supportGroupId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["serviceId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeServiceFromSupportGroup_argsServiceID(ctx, rawArgs) + if err != nil { + return nil, err } args["serviceId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_argsSupportGroupID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["supportGroupId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) + if tmp, ok := rawArgs["supportGroupId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_argsServiceID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["serviceId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) + if tmp, ok := rawArgs["serviceId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["supportGroupId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_removeUserFromSupportGroup_argsSupportGroupID(ctx, rawArgs) + if err != nil { + return nil, err } args["supportGroupId"] = arg0 - var arg1 string - if tmp, ok := rawArgs["userId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - arg1, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_removeUserFromSupportGroup_argsUserID(ctx, rawArgs) + if err != nil { + return nil, err } args["userId"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_argsSupportGroupID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["supportGroupId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) + if tmp, ok := rawArgs["supportGroupId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_argsUserID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["userId"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) + if tmp, ok := rawArgs["userId"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_updateActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateActivity_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.ActivityInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateActivity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateActivity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNID2string(ctx, tmp) } - args["id"] = arg0 - var arg1 model.ComponentInstanceInput + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateActivity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ActivityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ActivityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) } - args["input"] = arg1 - return args, nil + + var zeroVal model.ActivityInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateComponentInstance_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.ComponentVersionInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateComponentInstance_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateComponentInstance_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNID2string(ctx, tmp) } - args["id"] = arg0 - var arg1 model.ComponentInput + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateComponentInstance_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentInstanceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentInstanceInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) } - args["input"] = arg1 - return args, nil + + var zeroVal model.ComponentInstanceInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateComponentVersion_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.EvidenceInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateComponentVersion_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateComponentVersion_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNID2string(ctx, tmp) } - args["id"] = arg0 - var arg1 model.IssueMatchChangeInput + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateComponentVersion_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentVersionInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentVersionInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) } - args["input"] = arg1 - return args, nil + + var zeroVal model.ComponentVersionInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateComponent_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.IssueMatchInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateComponent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateComponent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNID2string(ctx, tmp) } - args["id"] = arg0 - var arg1 model.IssueRepositoryInput + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateComponent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ComponentInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ComponentInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) } - args["input"] = arg1 - return args, nil + + var zeroVal model.ComponentInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateEvidence_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.IssueVariantInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateEvidence_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateEvidence_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNID2string(ctx, tmp) } - args["id"] = arg0 - var arg1 model.IssueInput + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEvidence_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.EvidenceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.EvidenceInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) } - args["input"] = arg1 - return args, nil + + var zeroVal model.EvidenceInput + return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateIssueMatchChange_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.ServiceInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateIssueMatchChange_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateIssueMatchChange_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueMatchChange_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueMatchChangeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueMatchChangeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) + } + + var zeroVal model.IssueMatchChangeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateIssueMatch_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.SupportGroupInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateIssueMatch_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateIssueMatch_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueMatch_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueMatchInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueMatchInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) + } + + var zeroVal model.IssueMatchInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateIssueRepository_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 - var arg1 model.UserInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_updateIssueRepository_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateIssueRepository_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_Activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueRepository_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueRepositoryInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueRepositoryInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) + } + + var zeroVal model.IssueRepositoryInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ActivityFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateIssueVariant_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateIssueVariant_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } - args["after"] = arg2 + args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateIssueVariant_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_ComponentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssueVariant_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueVariantInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueVariantInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) + } + + var zeroVal model.IssueVariantInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentInstanceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateIssue_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateIssue_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } - args["after"] = arg2 + args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateIssue_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_ComponentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIssue_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.IssueInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.IssueInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) + } + + var zeroVal model.IssueInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentVersionFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateService_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateService_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } - args["after"] = arg2 + args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateService_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_Components_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateService_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.ServiceInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.ServiceInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) + } + + var zeroVal model.ServiceInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ComponentFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateSupportGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateSupportGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } - args["after"] = arg2 + args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateSupportGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_Evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSupportGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.SupportGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.SupportGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) + } + + var zeroVal model.SupportGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.EvidenceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err } - args["after"] = arg2 + args["input"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_updateUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) field_Query_IssueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.UserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.UserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) + } + + var zeroVal model.UserInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueMatchChangeFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Activities_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Activities_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_Activities_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Activities_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ActivityFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ActivityFilter + return zeroVal, nil + } -func (ec *executionContext) field_Query_IssueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.IssueMatchFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.ActivityFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Activities_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Activities_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Query_IssueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_ComponentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueRepositoryFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_ComponentInstances_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_ComponentInstances_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_ComponentInstances_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_ComponentInstances_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentInstanceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentInstanceFilter + return zeroVal, nil + } -func (ec *executionContext) field_Query_IssueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.IssueVariantFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.ComponentInstanceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ComponentInstances_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ComponentInstances_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Query_Issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_ComponentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_ComponentVersions_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_ComponentVersions_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_ComponentVersions_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_ComponentVersions_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentVersionFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil + } -func (ec *executionContext) field_Query_Services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.ServiceFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.ComponentVersionFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ComponentVersions_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ComponentVersions_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Query_SupportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_Components_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.SupportGroupFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Components_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Components_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_Components_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Components_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentFilter + return zeroVal, nil + } -func (ec *executionContext) field_Query_Users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.UserFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + + var zeroVal *model.ComponentFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Components_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } +func (ec *executionContext) field_Query_Components_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil } - args["name"] = arg0 - return args, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_ServiceFilterValue_serviceName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_Evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ServiceFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Evidences_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 + arg1, err := ec.field_Query_Evidences_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_Evidences_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Evidences_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.EvidenceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.EvidenceFilter + return zeroVal, nil + } -func (ec *executionContext) field_ServiceFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.SupportGroupFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) } - args["filter"] = arg0 - return args, nil + + var zeroVal *model.EvidenceFilter + return zeroVal, nil } -func (ec *executionContext) field_ServiceFilterValue_uniqueUserId_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.UserFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - if err != nil { - return nil, err - } +func (ec *executionContext) field_Query_Evidences_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - args["filter"] = arg0 - return args, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) field_ServiceFilterValue_userName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.UserFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - if err != nil { - return nil, err - } +func (ec *executionContext) field_Query_Evidences_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil } - args["filter"] = arg0 - return args, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Service_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_IssueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.ActivityFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_IssueMatchChanges_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_IssueMatchChanges_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_IssueMatchChanges_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_IssueMatchChanges_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchChangeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil + } -func (ec *executionContext) field_Service_componentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.ComponentInstanceFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueMatchChangeFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueMatchChanges_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueMatchChanges_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Service_issueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_IssueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.IssueRepositoryFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_IssueMatches_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_IssueMatches_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_IssueMatches_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_IssueMatches_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueMatchFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueMatchFilter + return zeroVal, nil + } -func (ec *executionContext) field_Service_owners_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.UserFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueMatchFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueMatches_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueMatches_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_Service_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_IssueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.SupportGroupFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_IssueRepositories_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_IssueRepositories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_IssueRepositories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_IssueRepositories_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueRepositoryFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueRepositoryFilter + return zeroVal, nil + } -func (ec *executionContext) field_SupportGroup_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.ServiceFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueRepositoryFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueRepositories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueRepositories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_SupportGroup_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_IssueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.UserFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_IssueVariants_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_IssueVariants_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_IssueVariants_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_IssueVariants_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueVariantFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueVariantFilter + return zeroVal, nil + } -func (ec *executionContext) field_User_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *model.ServiceFilter + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) } - args["filter"] = arg0 - var arg1 *int + + var zeroVal *model.IssueVariantFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueVariants_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["first"] = arg1 - var arg2 *string + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_IssueVariants_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - args["after"] = arg2 - return args, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) field_User_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_Issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.SupportGroupFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Issues_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err } args["filter"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Issues_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } args["first"] = arg1 - var arg2 *string - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_Issues_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Issues_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueFilter + return zeroVal, nil + } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) } - args["includeDeprecated"] = arg0 - return args, nil + + var zeroVal *model.IssueFilter + return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } +func (ec *executionContext) field_Query_Issues_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - args["includeDeprecated"] = arg0 - return args, nil -} -// endregion ***************************** args.gotpl ***************************** + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } -// region ************************** directives.gotpl ************************** + var zeroVal *int + return zeroVal, nil +} -// endregion ************************** directives.gotpl ************************** +func (ec *executionContext) field_Query_Issues_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } -// region **************************** field.gotpl ***************************** + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } -func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_id(ctx, field) + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_Services_argsFilter(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) + args["filter"] = arg0 + arg1, err := ec.field_Query_Services_argsFirst(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null + return nil, err } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null + args["first"] = arg1 + arg2, err := ec.field_Query_Services_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + args["after"] = arg2 + return args, nil } +func (ec *executionContext) field_Query_Services_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } -func (ec *executionContext) fieldContext_Activity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) } - return fc, nil + + var zeroVal *model.ServiceFilter + return zeroVal, nil } -func (ec *executionContext) _Activity_status(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_status(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) field_Query_Services_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(*model.ActivityStatusValues) - fc.Result = res - return ec.marshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_Activity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityStatusValues does not have child fields") - }, +func (ec *executionContext) field_Query_Services_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil } - return fc, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) _Activity_services(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_services(ctx, field) +func (ec *executionContext) field_Query_SupportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_SupportGroups_argsFilter(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) + args["filter"] = arg0 + arg1, err := ec.field_Query_SupportGroups_argsFirst(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null + return nil, err } - if resTmp == nil { - return graphql.Null + args["first"] = arg1 + arg2, err := ec.field_Query_SupportGroups_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) + args["after"] = arg2 + return args, nil } - -func (ec *executionContext) fieldContext_Activity_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, +func (ec *executionContext) field_Query_SupportGroups_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SupportGroupFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.SupportGroupFilter + return zeroVal, nil } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) } - return fc, nil + + var zeroVal *model.SupportGroupFilter + return zeroVal, nil } -func (ec *executionContext) _Activity_issues(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_issues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Issues(rctx, obj, fc.Args["filter"].(*model.IssueFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null +func (ec *executionContext) field_Query_SupportGroups_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(*model.IssueConnection) - fc.Result = res - return ec.marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_Activity_issues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueConnection_totalCount(ctx, field) - case "vulnerabilityCount": - return ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) - case "policyViolationCount": - return ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) - case "securityEventCount": - return ec.fieldContext_IssueConnection_securityEventCount(ctx, field) - case "edges": - return ec.fieldContext_IssueConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueConnection", field.Name) - }, +func (ec *executionContext) field_Query_SupportGroups_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_issues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) } - return fc, nil + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) _Activity_evidences(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_evidences(ctx, field) +func (ec *executionContext) field_Query_Users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_Users_argsFilter(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Evidences(rctx, obj, fc.Args["filter"].(*model.EvidenceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) + args["filter"] = arg0 + arg1, err := ec.field_Query_Users_argsFirst(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null + return nil, err } - if resTmp == nil { - return graphql.Null + args["first"] = arg1 + arg2, err := ec.field_Query_Users_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - res := resTmp.(*model.EvidenceConnection) - fc.Result = res - return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx, field.Selections, res) + args["after"] = arg2 + return args, nil } - -func (ec *executionContext) fieldContext_Activity_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name) - }, +func (ec *executionContext) field_Query_Users_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.UserFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.UserFilter + return zeroVal, nil } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) } - return fc, nil + + var zeroVal *model.UserFilter + return zeroVal, nil } -func (ec *executionContext) _Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_issueMatchChanges(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) field_Query_Users_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().IssueMatchChanges(rctx, obj, fc.Args["filter"].(*model.IssueMatchChangeFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - if resTmp == nil { - return graphql.Null + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Users_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil } - res := resTmp.(*model.IssueMatchChangeConnection) - fc.Result = res - return ec.marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx, field.Selections, res) + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil } -func (ec *executionContext) fieldContext_Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeConnection", field.Name) - }, +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_issueMatchChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + args["name"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil } - return fc, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil } -func (ec *executionContext) _ActivityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_totalCount(ctx, field) +func (ec *executionContext) field_ServiceFilterValue_serviceName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ServiceFilterValue_serviceName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + return args, nil +} +func (ec *executionContext) field_ServiceFilterValue_serviceName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_ServiceFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ServiceFilterValue_supportGroupName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + return args, nil +} +func (ec *executionContext) field_ServiceFilterValue_supportGroupName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SupportGroupFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.SupportGroupFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) + } + + var zeroVal *model.SupportGroupFilter + return zeroVal, nil +} + +func (ec *executionContext) field_ServiceFilterValue_uniqueUserId_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ServiceFilterValue_uniqueUserId_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + return args, nil +} +func (ec *executionContext) field_ServiceFilterValue_uniqueUserId_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.UserFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.UserFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) + } + + var zeroVal *model.UserFilter + return zeroVal, nil +} + +func (ec *executionContext) field_ServiceFilterValue_userName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_ServiceFilterValue_userName_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + return args, nil +} +func (ec *executionContext) field_ServiceFilterValue_userName_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.UserFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.UserFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) + } + + var zeroVal *model.UserFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Service_activities_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Service_activities_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Service_activities_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Service_activities_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ActivityFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ActivityFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) + } + + var zeroVal *model.ActivityFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_activities_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Service_activities_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Service_componentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Service_componentInstances_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Service_componentInstances_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Service_componentInstances_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Service_componentInstances_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ComponentInstanceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ComponentInstanceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) + } + + var zeroVal *model.ComponentInstanceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_componentInstances_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Service_componentInstances_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Service_issueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Service_issueRepositories_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Service_issueRepositories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Service_issueRepositories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Service_issueRepositories_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.IssueRepositoryFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.IssueRepositoryFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) + } + + var zeroVal *model.IssueRepositoryFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_issueRepositories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Service_issueRepositories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Service_owners_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Service_owners_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Service_owners_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Service_owners_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Service_owners_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.UserFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.UserFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) + } + + var zeroVal *model.UserFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_owners_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Service_owners_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Service_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Service_supportGroups_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_Service_supportGroups_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Service_supportGroups_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_Service_supportGroups_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SupportGroupFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.SupportGroupFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) + } + + var zeroVal *model.SupportGroupFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Service_supportGroups_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Service_supportGroups_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SupportGroup_services_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_SupportGroup_services_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SupportGroup_services_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_SupportGroup_services_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_services_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_services_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SupportGroup_users_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_SupportGroup_users_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_SupportGroup_users_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_SupportGroup_users_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.UserFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.UserFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) + } + + var zeroVal *model.UserFilter + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_users_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_SupportGroup_users_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_User_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_User_services_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_User_services_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_User_services_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_User_services_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ServiceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.ServiceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) + } + + var zeroVal *model.ServiceFilter + return zeroVal, nil +} + +func (ec *executionContext) field_User_services_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_User_services_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_User_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_User_supportGroups_argsFilter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["filter"] = arg0 + arg1, err := ec.field_User_supportGroups_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_User_supportGroups_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg2 + return args, nil +} +func (ec *executionContext) field_User_supportGroups_argsFilter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SupportGroupFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filter"] + if !ok { + var zeroVal *model.SupportGroupFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + if tmp, ok := rawArgs["filter"]; ok { + return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) + } + + var zeroVal *model.SupportGroupFilter + return zeroVal, nil +} + +func (ec *executionContext) field_User_supportGroups_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_User_supportGroups_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_id(ctx, field) if err != nil { return graphql.Null } @@ -6479,7 +9944,7 @@ func (ec *executionContext) _ActivityConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -6491,26 +9956,26 @@ func (ec *executionContext) _ActivityConnection_totalCount(ctx context.Context, } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ActivityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Activity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ActivityConnection", + Object: "Activity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ActivityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_edges(ctx, field) +func (ec *executionContext) _Activity_status(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_status(ctx, field) if err != nil { return graphql.Null } @@ -6523,7 +9988,7 @@ func (ec *executionContext) _ActivityConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -6532,32 +9997,26 @@ func (ec *executionContext) _ActivityConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ActivityEdge) + res := resTmp.(*model.ActivityStatusValues) fc.Result = res - return ec.marshalOActivityEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx, field.Selections, res) + return ec.marshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ActivityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Activity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ActivityConnection", + Object: "Activity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ActivityEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ActivityEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivityEdge", field.Name) + return nil, errors.New("field of type ActivityStatusValues does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ActivityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_pageInfo(ctx, field) +func (ec *executionContext) _Activity_services(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_services(ctx, field) if err != nil { return graphql.Null } @@ -6570,7 +10029,7 @@ func (ec *executionContext) _ActivityConnection_pageInfo(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Activity().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) }) if err != nil { ec.Error(ctx, err) @@ -6579,24 +10038,361 @@ func (ec *executionContext) _ActivityConnection_pageInfo(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(*model.ServiceConnection) fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ActivityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Activity_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ActivityConnection", + Object: "Activity", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": + case "totalCount": + return ec.fieldContext_ServiceConnection_totalCount(ctx, field) + case "edges": + return ec.fieldContext_ServiceConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Activity_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Activity_issues(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_issues(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Activity().Issues(rctx, obj, fc.Args["filter"].(*model.IssueFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.IssueConnection) + fc.Result = res + return ec.marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_issues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "totalCount": + return ec.fieldContext_IssueConnection_totalCount(ctx, field) + case "vulnerabilityCount": + return ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) + case "policyViolationCount": + return ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) + case "securityEventCount": + return ec.fieldContext_IssueConnection_securityEventCount(ctx, field) + case "edges": + return ec.fieldContext_IssueConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IssueConnection_pageInfo(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IssueConnection", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Activity_issues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Activity_evidences(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_evidences(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Activity().Evidences(rctx, obj, fc.Args["filter"].(*model.EvidenceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.EvidenceConnection) + fc.Result = res + return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "totalCount": + return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) + case "edges": + return ec.fieldContext_EvidenceConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Activity_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_issueMatchChanges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Activity().IssueMatchChanges(rctx, obj, fc.Args["filter"].(*model.IssueMatchChangeFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.IssueMatchChangeConnection) + fc.Result = res + return ec.marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "totalCount": + return ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) + case "edges": + return ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeConnection", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Activity_issueMatchChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ActivityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActivityConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActivityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActivityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActivityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActivityConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*model.ActivityEdge) + fc.Result = res + return ec.marshalOActivityEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActivityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActivityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ActivityEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ActivityEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActivityEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActivityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActivityConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.PageInfo) + fc.Result = res + return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActivityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActivityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "isValidPage": return ec.fieldContext_PageInfo_isValidPage(ctx, field) case "pageNumber": return ec.fieldContext_PageInfo_pageNumber(ctx, field) @@ -10030,6 +13826,8 @@ func (ec *executionContext) fieldContext_Evidence_author(_ context.Context, fiel return ec.fieldContext_User_supportGroups(ctx, field) case "services": return ec.fieldContext_User_services(ctx, field) + case "metadata": + return ec.fieldContext_User_metadata(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, @@ -12035,6 +15833,8 @@ func (ec *executionContext) fieldContext_IssueMatch_user(_ context.Context, fiel return ec.fieldContext_User_supportGroups(ctx, field) case "services": return ec.fieldContext_User_services(ctx, field) + case "metadata": + return ec.fieldContext_User_metadata(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, @@ -15215,8 +19015,8 @@ func (ec *executionContext) fieldContext_IssueVariantEdge_updated_at(_ context.C return fc, nil } -func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUser(ctx, field) +func (ec *executionContext) _Metadata_created_at(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_created_at(ctx, field) if err != nil { return graphql.Null } @@ -15229,63 +19029,35 @@ func (ec *executionContext) _Mutation_createUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(model.UserInput)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.User) + res := resTmp.(*string) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) + return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_created_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type DateTime does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) +func (ec *executionContext) _Metadata_created_by(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_created_by(ctx, field) if err != nil { return graphql.Null } @@ -15298,63 +19070,35 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(model.UserInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.User) + res := resTmp.(*string) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_created_by(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) +func (ec *executionContext) _Metadata_deleted_at(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_deleted_at(ctx, field) if err != nil { return graphql.Null } @@ -15367,49 +19111,35 @@ func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_deleted_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type DateTime does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createSupportGroup(ctx, field) +func (ec *executionContext) _Metadata_updated_at(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_updated_at(ctx, field) if err != nil { return graphql.Null } @@ -15422,59 +19152,76 @@ func (ec *executionContext) _Mutation_createSupportGroup(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateSupportGroup(rctx, fc.Args["input"].(model.SupportGroupInput)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.SupportGroup) + res := resTmp.(*string) fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) + return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_updated_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + return nil, errors.New("field of type DateTime does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _Metadata_updated_by(ctx context.Context, field graphql.CollectedField, obj *model.Metadata) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_updated_by(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Metadata_updated_by(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Metadata", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSupportGroup(ctx, field) +func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createUser(ctx, field) if err != nil { return graphql.Null } @@ -15487,7 +19234,7 @@ func (ec *executionContext) _Mutation_updateSupportGroup(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSupportGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(model.SupportGroupInput)) + return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(model.UserInput)) }) if err != nil { ec.Error(ctx, err) @@ -15499,12 +19246,12 @@ func (ec *executionContext) _Mutation_updateSupportGroup(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*model.SupportGroup) + res := resTmp.(*model.User) fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -15513,15 +19260,21 @@ func (ec *executionContext) fieldContext_Mutation_updateSupportGroup(ctx context Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) + return ec.fieldContext_User_id(ctx, field) + case "uniqueUserId": + return ec.fieldContext_User_uniqueUserId(ctx, field) + case "type": + return ec.fieldContext_User_type(ctx, field) case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) + return ec.fieldContext_User_name(ctx, field) + case "supportGroups": + return ec.fieldContext_User_supportGroups(ctx, field) case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) + return ec.fieldContext_User_services(ctx, field) + case "metadata": + return ec.fieldContext_User_metadata(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } defer func() { @@ -15531,15 +19284,15 @@ func (ec *executionContext) fieldContext_Mutation_updateSupportGroup(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSupportGroup(ctx, field) +func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) if err != nil { return graphql.Null } @@ -15552,7 +19305,7 @@ func (ec *executionContext) _Mutation_deleteSupportGroup(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSupportGroup(rctx, fc.Args["id"].(string)) + return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(model.UserInput)) }) if err != nil { ec.Error(ctx, err) @@ -15564,19 +19317,35 @@ func (ec *executionContext) _Mutation_deleteSupportGroup(ctx context.Context, fi } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "uniqueUserId": + return ec.fieldContext_User_uniqueUserId(ctx, field) + case "type": + return ec.fieldContext_User_type(ctx, field) + case "name": + return ec.fieldContext_User_name(ctx, field) + case "supportGroups": + return ec.fieldContext_User_supportGroups(ctx, field) + case "services": + return ec.fieldContext_User_services(ctx, field) + case "metadata": + return ec.fieldContext_User_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } defer func() { @@ -15586,15 +19355,15 @@ func (ec *executionContext) fieldContext_Mutation_deleteSupportGroup(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addServiceToSupportGroup(ctx, field) +func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) if err != nil { return graphql.Null } @@ -15607,7 +19376,7 @@ func (ec *executionContext) _Mutation_addServiceToSupportGroup(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddServiceToSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) + return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -15619,29 +19388,19 @@ func (ec *executionContext) _Mutation_addServiceToSupportGroup(ctx context.Conte } return graphql.Null } - res := resTmp.(*model.SupportGroup) + res := resTmp.(string) fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } defer func() { @@ -15651,15 +19410,15 @@ func (ec *executionContext) fieldContext_Mutation_addServiceToSupportGroup(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addServiceToSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeServiceFromSupportGroup(ctx, field) +func (ec *executionContext) _Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createSupportGroup(ctx, field) if err != nil { return graphql.Null } @@ -15672,7 +19431,7 @@ func (ec *executionContext) _Mutation_removeServiceFromSupportGroup(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveServiceFromSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) + return ec.resolvers.Mutation().CreateSupportGroup(rctx, fc.Args["input"].(model.SupportGroupInput)) }) if err != nil { ec.Error(ctx, err) @@ -15689,7 +19448,257 @@ func (ec *executionContext) _Mutation_removeServiceFromSupportGroup(ctx context. return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_SupportGroup_id(ctx, field) + case "name": + return ec.fieldContext_SupportGroup_name(ctx, field) + case "users": + return ec.fieldContext_SupportGroup_users(ctx, field) + case "services": + return ec.fieldContext_SupportGroup_services(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSupportGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateSupportGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(model.SupportGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SupportGroup) + fc.Result = res + return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_SupportGroup_id(ctx, field) + case "name": + return ec.fieldContext_SupportGroup_name(ctx, field) + case "users": + return ec.fieldContext_SupportGroup_users(ctx, field) + case "services": + return ec.fieldContext_SupportGroup_services(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSupportGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteSupportGroup(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_addServiceToSupportGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().AddServiceToSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SupportGroup) + fc.Result = res + return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_SupportGroup_id(ctx, field) + case "name": + return ec.fieldContext_SupportGroup_name(ctx, field) + case "users": + return ec.fieldContext_SupportGroup_users(ctx, field) + case "services": + return ec.fieldContext_SupportGroup_services(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_addServiceToSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_removeServiceFromSupportGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().RemoveServiceFromSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SupportGroup) + fc.Result = res + return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -22191,6 +26200,59 @@ func (ec *executionContext) fieldContext_User_services(ctx context.Context, fiel return fc, nil } +func (ec *executionContext) _User_metadata(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.Metadata) + fc.Result = res + return ec.marshalOMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐMetadata(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_User_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "User", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "created_at": + return ec.fieldContext_Metadata_created_at(ctx, field) + case "created_by": + return ec.fieldContext_Metadata_created_by(ctx, field) + case "deleted_at": + return ec.fieldContext_Metadata_deleted_at(ctx, field) + case "updated_at": + return ec.fieldContext_Metadata_updated_at(ctx, field) + case "updated_by": + return ec.fieldContext_Metadata_updated_by(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.UserConnection) (ret graphql.Marshaler) { fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) if err != nil { @@ -22388,6 +26450,8 @@ func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field return ec.fieldContext_User_supportGroups(ctx, field) case "services": return ec.fieldContext_User_services(ctx, field) + case "metadata": + return ec.fieldContext_User_metadata(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, @@ -25345,92 +29409,170 @@ func (ec *executionContext) _Connection(ctx context.Context, sel ast.SelectionSe case nil: return graphql.Null case model.ActivityConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ActivityConnection"})) == 0 { + return graphql.Empty{} + } return ec._ActivityConnection(ctx, sel, &obj) case *model.ActivityConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ActivityConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ActivityConnection(ctx, sel, obj) case model.ComponentConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentConnection"})) == 0 { + return graphql.Empty{} + } return ec._ComponentConnection(ctx, sel, &obj) case *model.ComponentConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentConnection(ctx, sel, obj) case model.ComponentInstanceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentInstanceConnection"})) == 0 { + return graphql.Empty{} + } return ec._ComponentInstanceConnection(ctx, sel, &obj) case *model.ComponentInstanceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentInstanceConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentInstanceConnection(ctx, sel, obj) case model.ComponentVersionConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentVersionConnection"})) == 0 { + return graphql.Empty{} + } return ec._ComponentVersionConnection(ctx, sel, &obj) case *model.ComponentVersionConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ComponentVersionConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentVersionConnection(ctx, sel, obj) case model.EvidenceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "EvidenceConnection"})) == 0 { + return graphql.Empty{} + } return ec._EvidenceConnection(ctx, sel, &obj) case *model.EvidenceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "EvidenceConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._EvidenceConnection(ctx, sel, obj) case model.IssueConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueConnection"})) == 0 { + return graphql.Empty{} + } return ec._IssueConnection(ctx, sel, &obj) case *model.IssueConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueConnection(ctx, sel, obj) case model.IssueMatchConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueMatchConnection"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatchConnection(ctx, sel, &obj) case *model.IssueMatchConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueMatchConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatchConnection(ctx, sel, obj) case model.IssueMatchChangeConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueMatchChangeConnection"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatchChangeConnection(ctx, sel, &obj) case *model.IssueMatchChangeConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueMatchChangeConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatchChangeConnection(ctx, sel, obj) case model.IssueRepositoryConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueRepositoryConnection"})) == 0 { + return graphql.Empty{} + } return ec._IssueRepositoryConnection(ctx, sel, &obj) case *model.IssueRepositoryConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueRepositoryConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueRepositoryConnection(ctx, sel, obj) case model.IssueVariantConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueVariantConnection"})) == 0 { + return graphql.Empty{} + } return ec._IssueVariantConnection(ctx, sel, &obj) case *model.IssueVariantConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "IssueVariantConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueVariantConnection(ctx, sel, obj) case model.ServiceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ServiceConnection"})) == 0 { + return graphql.Empty{} + } return ec._ServiceConnection(ctx, sel, &obj) case *model.ServiceConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "ServiceConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ServiceConnection(ctx, sel, obj) case model.SupportGroupConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "SupportGroupConnection"})) == 0 { + return graphql.Empty{} + } return ec._SupportGroupConnection(ctx, sel, &obj) case *model.SupportGroupConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "SupportGroupConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._SupportGroupConnection(ctx, sel, obj) case model.UserConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "UserConnection"})) == 0 { + return graphql.Empty{} + } return ec._UserConnection(ctx, sel, &obj) case *model.UserConnection: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Connection", "UserConnection"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } @@ -25445,92 +29587,170 @@ func (ec *executionContext) _Edge(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case model.ActivityEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ActivityEdge"})) == 0 { + return graphql.Empty{} + } return ec._ActivityEdge(ctx, sel, &obj) case *model.ActivityEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ActivityEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ActivityEdge(ctx, sel, obj) case model.ComponentEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentEdge"})) == 0 { + return graphql.Empty{} + } return ec._ComponentEdge(ctx, sel, &obj) case *model.ComponentEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentEdge(ctx, sel, obj) case model.ComponentInstanceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentInstanceEdge"})) == 0 { + return graphql.Empty{} + } return ec._ComponentInstanceEdge(ctx, sel, &obj) case *model.ComponentInstanceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentInstanceEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentInstanceEdge(ctx, sel, obj) case model.ComponentVersionEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentVersionEdge"})) == 0 { + return graphql.Empty{} + } return ec._ComponentVersionEdge(ctx, sel, &obj) case *model.ComponentVersionEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ComponentVersionEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentVersionEdge(ctx, sel, obj) case model.EvidenceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "EvidenceEdge"})) == 0 { + return graphql.Empty{} + } return ec._EvidenceEdge(ctx, sel, &obj) case *model.EvidenceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "EvidenceEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._EvidenceEdge(ctx, sel, obj) case model.IssueEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueEdge"})) == 0 { + return graphql.Empty{} + } return ec._IssueEdge(ctx, sel, &obj) case *model.IssueEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueEdge(ctx, sel, obj) case model.IssueMatchEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueMatchEdge"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatchEdge(ctx, sel, &obj) case *model.IssueMatchEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueMatchEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatchEdge(ctx, sel, obj) case model.IssueMatchChangeEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueMatchChangeEdge"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatchChangeEdge(ctx, sel, &obj) case *model.IssueMatchChangeEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueMatchChangeEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatchChangeEdge(ctx, sel, obj) case model.IssueRepositoryEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueRepositoryEdge"})) == 0 { + return graphql.Empty{} + } return ec._IssueRepositoryEdge(ctx, sel, &obj) case *model.IssueRepositoryEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueRepositoryEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueRepositoryEdge(ctx, sel, obj) case model.IssueVariantEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueVariantEdge"})) == 0 { + return graphql.Empty{} + } return ec._IssueVariantEdge(ctx, sel, &obj) case *model.IssueVariantEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "IssueVariantEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueVariantEdge(ctx, sel, obj) case model.ServiceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ServiceEdge"})) == 0 { + return graphql.Empty{} + } return ec._ServiceEdge(ctx, sel, &obj) case *model.ServiceEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "ServiceEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ServiceEdge(ctx, sel, obj) case model.SupportGroupEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "SupportGroupEdge"})) == 0 { + return graphql.Empty{} + } return ec._SupportGroupEdge(ctx, sel, &obj) case *model.SupportGroupEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "SupportGroupEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._SupportGroupEdge(ctx, sel, obj) case model.UserEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "UserEdge"})) == 0 { + return graphql.Empty{} + } return ec._UserEdge(ctx, sel, &obj) case *model.UserEdge: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Edge", "UserEdge"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } @@ -25545,92 +29765,170 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case model.Activity: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Activity"})) == 0 { + return graphql.Empty{} + } return ec._Activity(ctx, sel, &obj) case *model.Activity: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Activity"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._Activity(ctx, sel, obj) case model.Component: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Component"})) == 0 { + return graphql.Empty{} + } return ec._Component(ctx, sel, &obj) case *model.Component: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Component"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._Component(ctx, sel, obj) case model.ComponentInstance: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "ComponentInstance"})) == 0 { + return graphql.Empty{} + } return ec._ComponentInstance(ctx, sel, &obj) case *model.ComponentInstance: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "ComponentInstance"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentInstance(ctx, sel, obj) case model.ComponentVersion: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "ComponentVersion"})) == 0 { + return graphql.Empty{} + } return ec._ComponentVersion(ctx, sel, &obj) case *model.ComponentVersion: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "ComponentVersion"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._ComponentVersion(ctx, sel, obj) case model.Evidence: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Evidence"})) == 0 { + return graphql.Empty{} + } return ec._Evidence(ctx, sel, &obj) case *model.Evidence: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Evidence"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._Evidence(ctx, sel, obj) case model.Issue: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Issue"})) == 0 { + return graphql.Empty{} + } return ec._Issue(ctx, sel, &obj) case *model.Issue: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Issue"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._Issue(ctx, sel, obj) case model.IssueMatch: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueMatch"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatch(ctx, sel, &obj) case *model.IssueMatch: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueMatch"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatch(ctx, sel, obj) case model.IssueMatchChange: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueMatchChange"})) == 0 { + return graphql.Empty{} + } return ec._IssueMatchChange(ctx, sel, &obj) case *model.IssueMatchChange: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueMatchChange"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueMatchChange(ctx, sel, obj) case model.IssueRepository: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueRepository"})) == 0 { + return graphql.Empty{} + } return ec._IssueRepository(ctx, sel, &obj) case *model.IssueRepository: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueRepository"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueRepository(ctx, sel, obj) case model.IssueVariant: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueVariant"})) == 0 { + return graphql.Empty{} + } return ec._IssueVariant(ctx, sel, &obj) case *model.IssueVariant: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "IssueVariant"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._IssueVariant(ctx, sel, obj) case model.Service: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Service"})) == 0 { + return graphql.Empty{} + } return ec._Service(ctx, sel, &obj) case *model.Service: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "Service"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._Service(ctx, sel, obj) case model.SupportGroup: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "SupportGroup"})) == 0 { + return graphql.Empty{} + } return ec._SupportGroup(ctx, sel, &obj) case *model.SupportGroup: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "SupportGroup"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } return ec._SupportGroup(ctx, sel, obj) case model.User: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "User"})) == 0 { + return graphql.Empty{} + } return ec._User(ctx, sel, &obj) case *model.User: + if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Node", "User"})) == 0 { + return graphql.Empty{} + } if obj == nil { return graphql.Null } @@ -25656,24 +29954,2434 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Activity") case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Activity_id(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } case "status": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_status(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Activity_status(ctx, field, obj) case "services": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_services(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_services(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Activity_services(ctx, field, obj) + case "issues": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_issues(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Activity_issues(ctx, field, obj) + case "evidences": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_evidences(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Activity_evidences(ctx, field, obj) + case "issueMatchChanges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Activity_issueMatchChanges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Activity_issueMatchChanges(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var activityConnectionImplementors = []string{"ActivityConnection", "Connection"} + +func (ec *executionContext) _ActivityConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, activityConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActivityConnection") + case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ActivityConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ActivityConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ActivityConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ActivityConnection_edges(ctx, field, obj) + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ActivityConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ActivityConnection_pageInfo(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var activityEdgeImplementors = []string{"ActivityEdge", "Edge"} + +func (ec *executionContext) _ActivityEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, activityEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActivityEdge") + case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ActivityEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ActivityEdge_node(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ActivityEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ActivityEdge_cursor(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var cVSSImplementors = []string{"CVSS"} + +func (ec *executionContext) _CVSS(ctx context.Context, sel ast.SelectionSet, obj *model.Cvss) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, cVSSImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CVSS") + case "vector": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSS_vector(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSS_vector(ctx, field, obj) + case "base": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSS_base(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSS_base(ctx, field, obj) + case "temporal": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSS_temporal(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSS_temporal(ctx, field, obj) + case "environmental": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSS_environmental(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSS_environmental(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var cVSSBaseImplementors = []string{"CVSSBase"} + +func (ec *executionContext) _CVSSBase(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSBase) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, cVSSBaseImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CVSSBase") + case "score": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_score(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_score(ctx, field, obj) + case "attackVector": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_attackVector(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_attackVector(ctx, field, obj) + case "attackComplexity": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_attackComplexity(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_attackComplexity(ctx, field, obj) + case "privilegesRequired": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_privilegesRequired(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_privilegesRequired(ctx, field, obj) + case "userInteraction": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_userInteraction(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_userInteraction(ctx, field, obj) + case "scope": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_scope(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_scope(ctx, field, obj) + case "confidentialityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_confidentialityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_confidentialityImpact(ctx, field, obj) + case "integrityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_integrityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_integrityImpact(ctx, field, obj) + case "availabilityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSBase_availabilityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSBase_availabilityImpact(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var cVSSEnvironmentalImplementors = []string{"CVSSEnvironmental"} + +func (ec *executionContext) _CVSSEnvironmental(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSEnvironmental) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, cVSSEnvironmentalImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CVSSEnvironmental") + case "score": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_score(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_score(ctx, field, obj) + case "modifiedAttackVector": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedAttackVector(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedAttackVector(ctx, field, obj) + case "modifiedAttackComplexity": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedAttackComplexity(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedAttackComplexity(ctx, field, obj) + case "modifiedPrivilegesRequired": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field, obj) + case "modifiedUserInteraction": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedUserInteraction(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedUserInteraction(ctx, field, obj) + case "modifiedScope": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedScope(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedScope(ctx, field, obj) + case "modifiedConfidentialityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field, obj) + case "modifiedIntegrityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedIntegrityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedIntegrityImpact(ctx, field, obj) + case "modifiedAvailabilityImpact": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field, obj) + case "confidentialityRequirement": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_confidentialityRequirement(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_confidentialityRequirement(ctx, field, obj) + case "availabilityRequirement": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_availabilityRequirement(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_availabilityRequirement(ctx, field, obj) + case "integrityRequirement": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSEnvironmental_integrityRequirement(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSEnvironmental_integrityRequirement(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var cVSSParameterImplementors = []string{"CVSSParameter"} + +func (ec *executionContext) _CVSSParameter(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSParameter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, cVSSParameterImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CVSSParameter") + case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSParameter_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSParameter_name(ctx, field, obj) + case "value": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSParameter_value(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSParameter_value(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var cVSSTemporalImplementors = []string{"CVSSTemporal"} + +func (ec *executionContext) _CVSSTemporal(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSTemporal) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, cVSSTemporalImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CVSSTemporal") + case "score": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSTemporal_score(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSTemporal_score(ctx, field, obj) + case "exploitCodeMaturity": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSTemporal_exploitCodeMaturity(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSTemporal_exploitCodeMaturity(ctx, field, obj) + case "remediationLevel": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSTemporal_remediationLevel(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSTemporal_remediationLevel(ctx, field, obj) + case "reportConfidence": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._CVSSTemporal_reportConfidence(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._CVSSTemporal_reportConfidence(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentImplementors = []string{"Component", "Node"} + +func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet, obj *model.Component) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Component") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Component_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Component_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Component_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Component_name(ctx, field, obj) + case "type": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Component_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Component_type(ctx, field, obj) + case "componentVersions": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Component_componentVersions(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Component_componentVersions(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentConnectionImplementors = []string{"ComponentConnection", "Connection"} + +func (ec *executionContext) _ComponentConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentConnection") + case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentConnection_edges(ctx, field, obj) + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentConnection_pageInfo(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentEdgeImplementors = []string{"ComponentEdge", "Edge"} + +func (ec *executionContext) _ComponentEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentEdge") + case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentEdge_node(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentEdge_cursor(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentInstanceImplementors = []string{"ComponentInstance", "Node"} + +func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstance) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentInstance") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ccrn": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_ccrn(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_ccrn(ctx, field, obj) + case "count": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_count(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_count(ctx, field, obj) + case "componentVersionId": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_componentVersionId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_componentVersionId(ctx, field, obj) + case "componentVersion": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_componentVersion(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_componentVersion(ctx, field, obj) + case "issueMatches": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_issueMatches(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_issueMatches(ctx, field, obj) + case "serviceId": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_serviceId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_serviceId(ctx, field, obj) + case "service": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_service(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_service(ctx, field, obj) + case "createdAt": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_createdAt(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_createdAt(ctx, field, obj) + case "updatedAt": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstance_updatedAt(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstance_updatedAt(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentInstanceConnectionImplementors = []string{"ComponentInstanceConnection", "Connection"} + +func (ec *executionContext) _ComponentInstanceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentInstanceConnection") + case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstanceConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstanceConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstanceConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstanceConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstanceConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstanceConnection_pageInfo(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentInstanceEdgeImplementors = []string{"ComponentInstanceEdge", "Edge"} + +func (ec *executionContext) _ComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentInstanceEdge") + case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstanceEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstanceEdge_node(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentInstanceEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentInstanceEdge_cursor(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentVersionImplementors = []string{"ComponentVersion", "Node"} + +func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersion) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentVersion") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "version": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_version(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_version(ctx, field, obj) + case "componentId": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_componentId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_componentId(ctx, field, obj) + case "component": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_component(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_component(ctx, field, obj) + case "issues": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_issues(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_issues(ctx, field, obj) + case "componentInstances": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersion_componentInstances(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersion_componentInstances(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentVersionConnectionImplementors = []string{"ComponentVersionConnection", "Connection"} + +func (ec *executionContext) _ComponentVersionConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentVersionConnection") + case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersionConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersionConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersionConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersionConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersionConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersionConnection_pageInfo(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var componentVersionEdgeImplementors = []string{"ComponentVersionEdge", "Edge"} + +func (ec *executionContext) _ComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ComponentVersionEdge") + case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersionEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersionEdge_node(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ComponentVersionEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._ComponentVersionEdge_cursor(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var evidenceImplementors = []string{"Evidence", "Node"} + +func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *model.Evidence) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Evidence") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Evidence_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Evidence_description(ctx, field, obj) + case "type": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Evidence_type(ctx, field, obj) + case "vector": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_vector(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Evidence_vector(ctx, field, obj) + case "raaEnd": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_raaEnd(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._Evidence_raaEnd(ctx, field, obj) + case "authorId": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -25686,28 +32394,17 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Evidence_authorId(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issues": + out.Values[i] = ec._Evidence_authorId(ctx, field, obj) + case "author": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_issues(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -25719,28 +32416,17 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Evidence_author(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidences": + out.Values[i] = ec._Evidence_author(ctx, field, obj) + case "activityId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_evidences(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -25752,27 +32438,38 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Evidence_activityId(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatchChanges": + out.Values[i] = ec._Evidence_activityId(ctx, field, obj) + case "activity": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_issueMatchChanges(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Evidence_activity(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._Evidence_activity(ctx, field, obj) + case "issueMatches": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -25785,15 +32482,14 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Evidence_issueMatches(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Evidence_issueMatches(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -25817,26 +32513,86 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, return out } -var activityConnectionImplementors = []string{"ActivityConnection", "Connection"} +var evidenceConnectionImplementors = []string{"EvidenceConnection", "Connection"} -func (ec *executionContext) _ActivityConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityConnectionImplementors) +func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ActivityConnection") + out.Values[i] = graphql.MarshalString("EvidenceConnection") case "totalCount": - out.Values[i] = ec._ActivityConnection_totalCount(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._EvidenceConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._EvidenceConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": - out.Values[i] = ec._ActivityConnection_edges(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._EvidenceConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ActivityConnection_pageInfo(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._EvidenceConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._EvidenceConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -25860,24 +32616,64 @@ func (ec *executionContext) _ActivityConnection(ctx context.Context, sel ast.Sel return out } -var activityEdgeImplementors = []string{"ActivityEdge", "Edge"} +var evidenceEdgeImplementors = []string{"EvidenceEdge", "Edge"} -func (ec *executionContext) _ActivityEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityEdgeImplementors) +func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ActivityEdge") + out.Values[i] = graphql.MarshalString("EvidenceEdge") case "node": - out.Values[i] = ec._ActivityEdge_node(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._EvidenceEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._EvidenceEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": - out.Values[i] = ec._ActivityEdge_cursor(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._EvidenceEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -25901,77 +32697,83 @@ func (ec *executionContext) _ActivityEdge(ctx context.Context, sel ast.Selection return out } -var cVSSImplementors = []string{"CVSS"} +var filterItemImplementors = []string{"FilterItem"} -func (ec *executionContext) _CVSS(ctx context.Context, sel ast.SelectionSet, obj *model.Cvss) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSImplementors) +func (ec *executionContext) _FilterItem(ctx context.Context, sel ast.SelectionSet, obj *model.FilterItem) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, filterItemImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CVSS") - case "vector": - out.Values[i] = ec._CVSS_vector(ctx, field, obj) - case "base": - out.Values[i] = ec._CVSS_base(ctx, field, obj) - case "temporal": - out.Values[i] = ec._CVSS_temporal(ctx, field, obj) - case "environmental": - out.Values[i] = ec._CVSS_environmental(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = graphql.MarshalString("FilterItem") + case "displayName": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._FilterItem_displayName(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._FilterItem_displayName(ctx, field, obj) + case "filterName": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._FilterItem_filterName(ctx, field, obj) + }) -var cVSSBaseImplementors = []string{"CVSSBase"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._FilterItem_filterName(ctx, field, obj) + case "values": + field := field -func (ec *executionContext) _CVSSBase(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSBase) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSBaseImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._FilterItem_values(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSBase") - case "score": - out.Values[i] = ec._CVSSBase_score(ctx, field, obj) - case "attackVector": - out.Values[i] = ec._CVSSBase_attackVector(ctx, field, obj) - case "attackComplexity": - out.Values[i] = ec._CVSSBase_attackComplexity(ctx, field, obj) - case "privilegesRequired": - out.Values[i] = ec._CVSSBase_privilegesRequired(ctx, field, obj) - case "userInteraction": - out.Values[i] = ec._CVSSBase_userInteraction(ctx, field, obj) - case "scope": - out.Values[i] = ec._CVSSBase_scope(ctx, field, obj) - case "confidentialityImpact": - out.Values[i] = ec._CVSSBase_confidentialityImpact(ctx, field, obj) - case "integrityImpact": - out.Values[i] = ec._CVSSBase_integrityImpact(ctx, field, obj) - case "availabilityImpact": - out.Values[i] = ec._CVSSBase_availabilityImpact(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._FilterItem_values(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -25995,79 +32797,240 @@ func (ec *executionContext) _CVSSBase(ctx context.Context, sel ast.SelectionSet, return out } -var cVSSEnvironmentalImplementors = []string{"CVSSEnvironmental"} +var issueImplementors = []string{"Issue", "Node"} -func (ec *executionContext) _CVSSEnvironmental(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSEnvironmental) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSEnvironmentalImplementors) +func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, obj *model.Issue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CVSSEnvironmental") - case "score": - out.Values[i] = ec._CVSSEnvironmental_score(ctx, field, obj) - case "modifiedAttackVector": - out.Values[i] = ec._CVSSEnvironmental_modifiedAttackVector(ctx, field, obj) - case "modifiedAttackComplexity": - out.Values[i] = ec._CVSSEnvironmental_modifiedAttackComplexity(ctx, field, obj) - case "modifiedPrivilegesRequired": - out.Values[i] = ec._CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field, obj) - case "modifiedUserInteraction": - out.Values[i] = ec._CVSSEnvironmental_modifiedUserInteraction(ctx, field, obj) - case "modifiedScope": - out.Values[i] = ec._CVSSEnvironmental_modifiedScope(ctx, field, obj) - case "modifiedConfidentialityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field, obj) - case "modifiedIntegrityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedIntegrityImpact(ctx, field, obj) - case "modifiedAvailabilityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field, obj) - case "confidentialityRequirement": - out.Values[i] = ec._CVSSEnvironmental_confidentialityRequirement(ctx, field, obj) - case "availabilityRequirement": - out.Values[i] = ec._CVSSEnvironmental_availabilityRequirement(ctx, field, obj) - case "integrityRequirement": - out.Values[i] = ec._CVSSEnvironmental_integrityRequirement(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = graphql.MarshalString("Issue") + case "id": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_id(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "type": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_type(ctx, field, obj) + case "primaryName": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_primaryName(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_primaryName(ctx, field, obj) + case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_description(ctx, field, obj) + case "lastModified": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_lastModified(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_lastModified(ctx, field, obj) + case "issueVariants": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_issueVariants(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_issueVariants(ctx, field, obj) + case "activities": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_activities(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_activities(ctx, field, obj) + case "issueMatches": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_issueMatches(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_issueMatches(ctx, field, obj) + case "componentVersions": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_componentVersions(ctx, field, obj) + }) -var cVSSParameterImplementors = []string{"CVSSParameter"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_componentVersions(ctx, field, obj) + case "metadata": + field := field -func (ec *executionContext) _CVSSParameter(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSParameter) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSParameterImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Issue_metadata(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSParameter") - case "name": - out.Values[i] = ec._CVSSParameter_name(ctx, field, obj) - case "value": - out.Values[i] = ec._CVSSParameter_value(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Issue_metadata(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26091,80 +33054,119 @@ func (ec *executionContext) _CVSSParameter(ctx context.Context, sel ast.Selectio return out } -var cVSSTemporalImplementors = []string{"CVSSTemporal"} +var issueConnectionImplementors = []string{"IssueConnection", "Connection"} -func (ec *executionContext) _CVSSTemporal(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSTemporal) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSTemporalImplementors) +func (ec *executionContext) _IssueConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("CVSSTemporal") - case "score": - out.Values[i] = ec._CVSSTemporal_score(ctx, field, obj) - case "exploitCodeMaturity": - out.Values[i] = ec._CVSSTemporal_exploitCodeMaturity(ctx, field, obj) - case "remediationLevel": - out.Values[i] = ec._CVSSTemporal_remediationLevel(ctx, field, obj) - case "reportConfidence": - out.Values[i] = ec._CVSSTemporal_reportConfidence(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = graphql.MarshalString("IssueConnection") + case "totalCount": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueConnection_totalCount(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "vulnerabilityCount": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueConnection_vulnerabilityCount(ctx, field, obj) + }) -var componentImplementors = []string{"Component", "Node"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueConnection_vulnerabilityCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "policyViolationCount": + field := field -func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet, obj *model.Component) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueConnection_policyViolationCount(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Component") - case "id": - out.Values[i] = ec._Component_id(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueConnection_policyViolationCount(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "name": - out.Values[i] = ec._Component_name(ctx, field, obj) - case "type": - out.Values[i] = ec._Component_type(ctx, field, obj) - case "componentVersions": + case "securityEventCount": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Component_componentVersions(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueConnection_securityEventCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueConnection_securityEventCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "edges": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26177,15 +33179,39 @@ func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueConnection_edges(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + out.Values[i] = ec._IssueConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueConnection_pageInfo(ctx, field, obj) + }) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26209,26 +33235,64 @@ func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet return out } -var componentConnectionImplementors = []string{"ComponentConnection", "Connection"} +var issueEdgeImplementors = []string{"IssueEdge", "Edge"} -func (ec *executionContext) _ComponentConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentConnectionImplementors) +func (ec *executionContext) _IssueEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ComponentConnection") - case "totalCount": - out.Values[i] = ec._ComponentConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IssueEdge") + case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "edges": - out.Values[i] = ec._ComponentConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._ComponentConnection_pageInfo(ctx, field, obj) + case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26252,81 +33316,245 @@ func (ec *executionContext) _ComponentConnection(ctx context.Context, sel ast.Se return out } -var componentEdgeImplementors = []string{"ComponentEdge", "Edge"} +var issueMatchImplementors = []string{"IssueMatch", "Node"} -func (ec *executionContext) _ComponentEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentEdgeImplementors) +func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatch) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ComponentEdge") - case "node": - out.Values[i] = ec._ComponentEdge_node(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IssueMatch") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "cursor": - out.Values[i] = ec._ComponentEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + case "status": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_status(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_status(ctx, field, obj) + case "remediationDate": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_remediationDate(ctx, field, obj) + }) -var componentInstanceImplementors = []string{"ComponentInstance", "Node"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_remediationDate(ctx, field, obj) + case "discoveryDate": + field := field -func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstance) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_discoveryDate(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstance") - case "id": - out.Values[i] = ec._ComponentInstance_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "ccrn": - out.Values[i] = ec._ComponentInstance_ccrn(ctx, field, obj) - case "count": - out.Values[i] = ec._ComponentInstance_count(ctx, field, obj) - case "componentVersionId": - out.Values[i] = ec._ComponentInstance_componentVersionId(ctx, field, obj) - case "componentVersion": + out.Values[i] = ec._IssueMatch_discoveryDate(ctx, field, obj) + case "targetRemediationDate": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_targetRemediationDate(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_targetRemediationDate(ctx, field, obj) + case "severity": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_severity(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_severity(ctx, field, obj) + case "effectiveIssueVariants": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_effectiveIssueVariants(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_effectiveIssueVariants(ctx, field, obj) + case "evidences": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_evidences(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_evidences(ctx, field, obj) + case "issueId": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_issueId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_issueId(ctx, field, obj) + case "issue": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_componentVersion(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_issue(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatch_issue(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "userId": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26339,28 +33567,17 @@ func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.Sele deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatch_userId(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": + out.Values[i] = ec._IssueMatch_userId(ctx, field, obj) + case "user": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_issueMatches(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -26372,30 +33589,17 @@ func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.Sele deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatch_user(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "serviceId": - out.Values[i] = ec._ComponentInstance_serviceId(ctx, field, obj) - case "service": + out.Values[i] = ec._IssueMatch_user(ctx, field, obj) + case "componentInstanceId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_service(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -26407,106 +33611,61 @@ func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.Sele deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatch_componentInstanceId(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + out.Values[i] = ec._IssueMatch_componentInstanceId(ctx, field, obj) + case "componentInstance": + field := field - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._ComponentInstance_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._ComponentInstance_updatedAt(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceConnectionImplementors = []string{"ComponentInstanceConnection", "Connection"} - -func (ec *executionContext) _ComponentInstanceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceConnectionImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_componentInstance(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstanceConnection") - case "totalCount": - out.Values[i] = ec._ComponentInstanceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "edges": - out.Values[i] = ec._ComponentInstanceConnection_edges(ctx, field, obj) + out.Values[i] = ec._IssueMatch_componentInstance(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "pageInfo": - out.Values[i] = ec._ComponentInstanceConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceEdgeImplementors = []string{"ComponentInstanceEdge", "Edge"} + case "issueMatchChanges": + field := field -func (ec *executionContext) _ComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatch_issueMatchChanges(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstanceEdge") - case "node": - out.Values[i] = ec._ComponentInstanceEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "cursor": - out.Values[i] = ec._ComponentInstanceEdge_cursor(ctx, field, obj) + out.Values[i] = ec._IssueMatch_issueMatchChanges(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26530,38 +33689,44 @@ func (ec *executionContext) _ComponentInstanceEdge(ctx context.Context, sel ast. return out } -var componentVersionImplementors = []string{"ComponentVersion", "Node"} +var issueMatchChangeImplementors = []string{"IssueMatchChange", "Node"} -func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionImplementors) +func (ec *executionContext) _IssueMatchChange(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersion") + out.Values[i] = graphql.MarshalString("IssueMatchChange") case "id": - out.Values[i] = ec._ComponentVersion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "version": - out.Values[i] = ec._ComponentVersion_version(ctx, field, obj) - case "componentId": - out.Values[i] = ec._ComponentVersion_componentId(ctx, field, obj) - case "component": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_component(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChange_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchChange_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "action": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26574,27 +33739,38 @@ func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.Selec deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchChange_action(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issues": + out.Values[i] = ec._IssueMatchChange_action(ctx, field, obj) + case "issueMatchId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_issues(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChange_issueMatchId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueMatchChange_issueMatchId(ctx, field, obj) + case "issueMatch": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26607,27 +33783,41 @@ func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.Selec deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchChange_issueMatch(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentInstances": + out.Values[i] = ec._IssueMatchChange_issueMatch(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "activityId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_componentInstances(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChange_activityId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueMatchChange_activityId(ctx, field, obj) + case "activity": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26640,15 +33830,17 @@ func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.Selec deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchChange_activity(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._IssueMatchChange_activity(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26672,29 +33864,86 @@ func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.Selec return out } -var componentVersionConnectionImplementors = []string{"ComponentVersionConnection", "Connection"} +var issueMatchChangeConnectionImplementors = []string{"IssueMatchChangeConnection", "Connection"} -func (ec *executionContext) _ComponentVersionConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionConnectionImplementors) +func (ec *executionContext) _IssueMatchChangeConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersionConnection") + out.Values[i] = graphql.MarshalString("IssueMatchChangeConnection") case "totalCount": - out.Values[i] = ec._ComponentVersionConnection_totalCount(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChangeConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchChangeConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": - out.Values[i] = ec._ComponentVersionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChangeConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueMatchChangeConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ComponentVersionConnection_pageInfo(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChangeConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchChangeConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26718,24 +33967,64 @@ func (ec *executionContext) _ComponentVersionConnection(ctx context.Context, sel return out } -var componentVersionEdgeImplementors = []string{"ComponentVersionEdge", "Edge"} +var issueMatchChangeEdgeImplementors = []string{"IssueMatchChangeEdge", "Edge"} -func (ec *executionContext) _ComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionEdgeImplementors) +func (ec *executionContext) _IssueMatchChangeEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersionEdge") + out.Values[i] = graphql.MarshalString("IssueMatchChangeEdge") case "node": - out.Values[i] = ec._ComponentVersionEdge_node(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChangeEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchChangeEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": - out.Values[i] = ec._ComponentVersionEdge_cursor(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchChangeEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchChangeEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26759,45 +34048,20 @@ func (ec *executionContext) _ComponentVersionEdge(ctx context.Context, sel ast.S return out } -var evidenceImplementors = []string{"Evidence", "Node"} +var issueMatchConnectionImplementors = []string{"IssueMatchConnection", "Connection"} -func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *model.Evidence) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) +func (ec *executionContext) _IssueMatchConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Evidence") - case "id": - out.Values[i] = ec._Evidence_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Evidence_description(ctx, field, obj) - case "type": - out.Values[i] = ec._Evidence_type(ctx, field, obj) - case "vector": - out.Values[i] = ec._Evidence_vector(ctx, field, obj) - case "raaEnd": - out.Values[i] = ec._Evidence_raaEnd(ctx, field, obj) - case "authorId": - out.Values[i] = ec._Evidence_authorId(ctx, field, obj) - case "author": + out.Values[i] = graphql.MarshalString("IssueMatchConnection") + case "totalCount": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_author(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -26809,29 +34073,19 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchConnection_totalCount(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activityId": - out.Values[i] = ec._Evidence_activityId(ctx, field, obj) - case "activity": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_activity(ctx, field, obj) - return res + out.Values[i] = ec._IssueMatchConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "edges": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -26844,28 +34098,17 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchConnection_edges(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": + out.Values[i] = ec._IssueMatchConnection_edges(ctx, field, obj) + case "pageInfo": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_issueMatches(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -26877,15 +34120,14 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchConnection_pageInfo(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._IssueMatchConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26909,107 +34151,64 @@ func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, return out } -var evidenceConnectionImplementors = []string{"EvidenceConnection", "Connection"} +var issueMatchEdgeImplementors = []string{"IssueMatchEdge", "Edge"} -func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) +func (ec *executionContext) _IssueMatchEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceConnection") - case "totalCount": - out.Values[i] = ec._EvidenceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EvidenceConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceEdgeImplementors = []string{"EvidenceEdge", "Edge"} + out.Values[i] = graphql.MarshalString("IssueMatchEdge") + case "node": + field := field -func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchEdge_node(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceEdge") - case "node": - out.Values[i] = ec._EvidenceEdge_node(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": - out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var filterItemImplementors = []string{"FilterItem"} + field := field -func (ec *executionContext) _FilterItem(ctx context.Context, sel ast.SelectionSet, obj *model.FilterItem) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, filterItemImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchEdge_cursor(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FilterItem") - case "displayName": - out.Values[i] = ec._FilterItem_displayName(ctx, field, obj) - case "filterName": - out.Values[i] = ec._FilterItem_filterName(ctx, field, obj) - case "values": - out.Values[i] = ec._FilterItem_values(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -27033,43 +34232,20 @@ func (ec *executionContext) _FilterItem(ctx context.Context, sel ast.SelectionSe return out } -var issueImplementors = []string{"Issue", "Node"} +var issueMatchFilterValueImplementors = []string{"IssueMatchFilterValue"} -func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, obj *model.Issue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueImplementors) +func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchFilterValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchFilterValueImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Issue") - case "id": - out.Values[i] = ec._Issue_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._Issue_type(ctx, field, obj) - case "primaryName": - out.Values[i] = ec._Issue_primaryName(ctx, field, obj) - case "description": - out.Values[i] = ec._Issue_description(ctx, field, obj) - case "lastModified": - out.Values[i] = ec._Issue_lastModified(ctx, field, obj) - case "issueVariants": + out.Values[i] = graphql.MarshalString("IssueMatchFilterValue") + case "status": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_issueVariants(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27081,28 +34257,17 @@ func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchFilterValue_status(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activities": + out.Values[i] = ec._IssueMatchFilterValue_status(ctx, field, obj) + case "severity": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_activities(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27114,28 +34279,17 @@ func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchFilterValue_severity(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": + out.Values[i] = ec._IssueMatchFilterValue_severity(ctx, field, obj) + case "issueType": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_issueMatches(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27147,28 +34301,17 @@ func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchFilterValue_issueType(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentVersions": + out.Values[i] = ec._IssueMatchFilterValue_issueType(ctx, field, obj) + case "primaryName": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_componentVersions(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27180,119 +34323,80 @@ func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMatchFilterValue_primaryName(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + out.Values[i] = ec._IssueMatchFilterValue_primaryName(ctx, field, obj) + case "affectedService": + field := field - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "metadata": - out.Values[i] = ec._Issue_metadata(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueConnectionImplementors = []string{"IssueConnection", "Connection"} - -func (ec *executionContext) _IssueConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueConnectionImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchFilterValue_affectedService(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueConnection") - case "totalCount": - out.Values[i] = ec._IssueConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "vulnerabilityCount": - out.Values[i] = ec._IssueConnection_vulnerabilityCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "policyViolationCount": - out.Values[i] = ec._IssueConnection_policyViolationCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "securityEventCount": - out.Values[i] = ec._IssueConnection_securityEventCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "pageInfo": - out.Values[i] = ec._IssueConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Values[i] = ec._IssueMatchFilterValue_affectedService(ctx, field, obj) + case "componentName": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchFilterValue_componentName(ctx, field, obj) + }) -var issueEdgeImplementors = []string{"IssueEdge", "Edge"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMatchFilterValue_componentName(ctx, field, obj) + case "supportGroupName": + field := field -func (ec *executionContext) _IssueEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMatchFilterValue_supportGroupName(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueEdge") - case "node": - out.Values[i] = ec._IssueEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "cursor": - out.Values[i] = ec._IssueEdge_cursor(ctx, field, obj) + out.Values[i] = ec._IssueMatchFilterValue_supportGroupName(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -27316,43 +34420,20 @@ func (ec *executionContext) _IssueEdge(ctx context.Context, sel ast.SelectionSet return out } -var issueMatchImplementors = []string{"IssueMatch", "Node"} +var issueMetadataImplementors = []string{"IssueMetadata"} -func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatch) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchImplementors) +func (ec *executionContext) _IssueMetadata(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMetadata) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueMetadataImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatch") - case "id": - out.Values[i] = ec._IssueMatch_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._IssueMatch_status(ctx, field, obj) - case "remediationDate": - out.Values[i] = ec._IssueMatch_remediationDate(ctx, field, obj) - case "discoveryDate": - out.Values[i] = ec._IssueMatch_discoveryDate(ctx, field, obj) - case "targetRemediationDate": - out.Values[i] = ec._IssueMatch_targetRemediationDate(ctx, field, obj) - case "severity": + out.Values[i] = graphql.MarshalString("IssueMetadata") + case "serviceCount": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_severity(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27364,27 +34445,19 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_serviceCount(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "effectiveIssueVariants": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_effectiveIssueVariants(ctx, field, obj) - return res + out.Values[i] = ec._IssueMetadata_serviceCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "activityCount": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27397,27 +34470,19 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_activityCount(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidences": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_evidences(ctx, field, obj) - return res + out.Values[i] = ec._IssueMetadata_activityCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "issueMatchCount": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27430,32 +34495,19 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_issueMatchCount(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueId": - out.Values[i] = ec._IssueMatch_issueId(ctx, field, obj) - case "issue": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_issue(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + out.Values[i] = ec._IssueMetadata_issueMatchCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "componentInstanceCount": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27468,36 +34520,44 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_componentInstanceCount(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userId": - out.Values[i] = ec._IssueMatch_userId(ctx, field, obj) - case "user": - out.Values[i] = ec._IssueMatch_user(ctx, field, obj) - case "componentInstanceId": - out.Values[i] = ec._IssueMatch_componentInstanceId(ctx, field, obj) - case "componentInstance": + out.Values[i] = ec._IssueMetadata_componentInstanceCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "componentVersionCount": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_componentInstance(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueMetadata_componentVersionCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueMetadata_componentVersionCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "earliestDiscoveryDate": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27510,27 +34570,19 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_earliestDiscoveryDate(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatchChanges": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_issueMatchChanges(ctx, field, obj) - return res + out.Values[i] = ec._IssueMetadata_earliestDiscoveryDate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "earliestTargetRemediationDate": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27543,15 +34595,17 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueMetadata_earliestTargetRemediationDate(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._IssueMetadata_earliestTargetRemediationDate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -27575,41 +34629,44 @@ func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSe return out } -var issueMatchChangeImplementors = []string{"IssueMatchChange", "Node"} +var issueRepositoryImplementors = []string{"IssueRepository", "Node"} -func (ec *executionContext) _IssueMatchChange(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChange) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeImplementors) +func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepository) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChange") + out.Values[i] = graphql.MarshalString("IssueRepository") case "id": - out.Values[i] = ec._IssueMatchChange_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "action": - out.Values[i] = ec._IssueMatchChange_action(ctx, field, obj) - case "issueMatchId": - out.Values[i] = ec._IssueMatchChange_issueMatchId(ctx, field, obj) - case "issueMatch": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchChange_issueMatch(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepository_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueRepository_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27622,32 +34679,38 @@ func (ec *executionContext) _IssueMatchChange(ctx context.Context, sel ast.Selec deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepository_name(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activityId": - out.Values[i] = ec._IssueMatchChange_activityId(ctx, field, obj) - case "activity": + out.Values[i] = ec._IssueRepository_name(ctx, field, obj) + case "url": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchChange_activity(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepository_url(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueRepository_url(ctx, field, obj) + case "issueVariants": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27660,142 +34723,80 @@ func (ec *executionContext) _IssueMatchChange(ctx context.Context, sel ast.Selec deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepository_issueVariants(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + out.Values[i] = ec._IssueRepository_issueVariants(ctx, field, obj) + case "services": + field := field - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchChangeConnectionImplementors = []string{"IssueMatchChangeConnection", "Connection"} - -func (ec *executionContext) _IssueMatchChangeConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeConnectionImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepository_services(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChangeConnection") - case "totalCount": - out.Values[i] = ec._IssueMatchChangeConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "edges": - out.Values[i] = ec._IssueMatchChangeConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueMatchChangeConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchChangeEdgeImplementors = []string{"IssueMatchChangeEdge", "Edge"} + out.Values[i] = ec._IssueRepository_services(ctx, field, obj) + case "created_at": + field := field -func (ec *executionContext) _IssueMatchChangeEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepository_created_at(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChangeEdge") - case "node": - out.Values[i] = ec._IssueMatchChangeEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "cursor": - out.Values[i] = ec._IssueMatchChangeEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchConnectionImplementors = []string{"IssueMatchConnection", "Connection"} + out.Values[i] = ec._IssueRepository_created_at(ctx, field, obj) + case "updated_at": + field := field -func (ec *executionContext) _IssueMatchConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchConnectionImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepository_updated_at(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchConnection") - case "totalCount": - out.Values[i] = ec._IssueMatchConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "edges": - out.Values[i] = ec._IssueMatchConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueMatchConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._IssueRepository_updated_at(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -27819,24 +34820,86 @@ func (ec *executionContext) _IssueMatchConnection(ctx context.Context, sel ast.S return out } -var issueMatchEdgeImplementors = []string{"IssueMatchEdge", "Edge"} +var issueRepositoryConnectionImplementors = []string{"IssueRepositoryConnection", "Connection"} -func (ec *executionContext) _IssueMatchEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchEdgeImplementors) +func (ec *executionContext) _IssueRepositoryConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchEdge") - case "node": - out.Values[i] = ec._IssueMatchEdge_node(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IssueRepositoryConnection") + case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepositoryConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueRepositoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "cursor": - out.Values[i] = ec._IssueMatchEdge_cursor(ctx, field, obj) + case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepositoryConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueRepositoryConnection_edges(ctx, field, obj) + case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepositoryConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueRepositoryConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -27860,36 +34923,20 @@ func (ec *executionContext) _IssueMatchEdge(ctx context.Context, sel ast.Selecti return out } -var issueMatchFilterValueImplementors = []string{"IssueMatchFilterValue"} +var issueRepositoryEdgeImplementors = []string{"IssueRepositoryEdge", "Edge"} -func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchFilterValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchFilterValueImplementors) +func (ec *executionContext) _IssueRepositoryEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchFilterValue") - case "status": - out.Values[i] = ec._IssueMatchFilterValue_status(ctx, field, obj) - case "severity": - out.Values[i] = ec._IssueMatchFilterValue_severity(ctx, field, obj) - case "issueType": - out.Values[i] = ec._IssueMatchFilterValue_issueType(ctx, field, obj) - case "primaryName": + out.Values[i] = graphql.MarshalString("IssueRepositoryEdge") + case "node": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_primaryName(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27901,27 +34948,19 @@ func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast. deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepositoryEdge_node(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "affectedService": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_affectedService(ctx, field, obj) - return res + out.Values[i] = ec._IssueRepositoryEdge_node(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "cursor": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -27934,28 +34973,17 @@ func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast. deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepositoryEdge_cursor(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentName": + out.Values[i] = ec._IssueRepositoryEdge_cursor(ctx, field, obj) + case "priority": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_componentName(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -27967,27 +34995,38 @@ func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast. deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepositoryEdge_priority(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "supportGroupName": + out.Values[i] = ec._IssueRepositoryEdge_priority(ctx, field, obj) + case "created_at": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_supportGroupName(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueRepositoryEdge_created_at(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueRepositoryEdge_created_at(ctx, field, obj) + case "updated_at": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -28000,15 +35039,14 @@ func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast. deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueRepositoryEdge_updated_at(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._IssueRepositoryEdge_updated_at(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -28032,107 +35070,132 @@ func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast. return out } -var issueMetadataImplementors = []string{"IssueMetadata"} +var issueVariantImplementors = []string{"IssueVariant", "Node"} -func (ec *executionContext) _IssueMetadata(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMetadata) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMetadataImplementors) +func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariant) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueMetadata") - case "serviceCount": - out.Values[i] = ec._IssueMetadata_serviceCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "activityCount": - out.Values[i] = ec._IssueMetadata_activityCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "issueMatchCount": - out.Values[i] = ec._IssueMetadata_issueMatchCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "componentInstanceCount": - out.Values[i] = ec._IssueMetadata_componentInstanceCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "componentVersionCount": - out.Values[i] = ec._IssueMetadata_componentVersionCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "earliestDiscoveryDate": - out.Values[i] = ec._IssueMetadata_earliestDiscoveryDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + out.Values[i] = graphql.MarshalString("IssueVariant") + case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "earliestTargetRemediationDate": - out.Values[i] = ec._IssueMetadata_earliestTargetRemediationDate(ctx, field, obj) + out.Values[i] = ec._IssueVariant_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + case "secondaryName": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_secondaryName(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariant_secondaryName(ctx, field, obj) + case "description": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_description(ctx, field, obj) + }) -var issueRepositoryImplementors = []string{"IssueRepository", "Node"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariant_description(ctx, field, obj) + case "severity": + field := field -func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepository) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_severity(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepository") - case "id": - out.Values[i] = ec._IssueRepository_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "name": - out.Values[i] = ec._IssueRepository_name(ctx, field, obj) - case "url": - out.Values[i] = ec._IssueRepository_url(ctx, field, obj) - case "issueVariants": + out.Values[i] = ec._IssueVariant_severity(ctx, field, obj) + case "issueRepositoryId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueRepository_issueVariants(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_issueRepositoryId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueVariant_issueRepositoryId(ctx, field, obj) + case "issueRepository": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -28145,27 +35208,38 @@ func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.Select deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueVariant_issueRepository(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "services": + out.Values[i] = ec._IssueVariant_issueRepository(ctx, field, obj) + case "issueId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueRepository_services(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_issueId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueVariant_issueId(ctx, field, obj) + case "issue": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -28178,19 +35252,58 @@ func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.Select deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueVariant_issue(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._IssueVariant_issue(ctx, field, obj) case "created_at": - out.Values[i] = ec._IssueRepository_created_at(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_created_at(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariant_created_at(ctx, field, obj) case "updated_at": - out.Values[i] = ec._IssueRepository_updated_at(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariant_updated_at(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariant_updated_at(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -28214,26 +35327,86 @@ func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.Select return out } -var issueRepositoryConnectionImplementors = []string{"IssueRepositoryConnection", "Connection"} +var issueVariantConnectionImplementors = []string{"IssueVariantConnection", "Connection"} -func (ec *executionContext) _IssueRepositoryConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryConnectionImplementors) +func (ec *executionContext) _IssueVariantConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepositoryConnection") + out.Values[i] = graphql.MarshalString("IssueVariantConnection") case "totalCount": - out.Values[i] = ec._IssueRepositoryConnection_totalCount(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariantConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariantConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": - out.Values[i] = ec._IssueRepositoryConnection_edges(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariantConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariantConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._IssueRepositoryConnection_pageInfo(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariantConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariantConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -28257,90 +35430,45 @@ func (ec *executionContext) _IssueRepositoryConnection(ctx context.Context, sel return out } -var issueRepositoryEdgeImplementors = []string{"IssueRepositoryEdge", "Edge"} +var issueVariantEdgeImplementors = []string{"IssueVariantEdge", "Edge"} -func (ec *executionContext) _IssueRepositoryEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryEdgeImplementors) +func (ec *executionContext) _IssueVariantEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepositoryEdge") + out.Values[i] = graphql.MarshalString("IssueVariantEdge") case "node": - out.Values[i] = ec._IssueRepositoryEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueRepositoryEdge_cursor(ctx, field, obj) - case "priority": - out.Values[i] = ec._IssueRepositoryEdge_priority(ctx, field, obj) - case "created_at": - out.Values[i] = ec._IssueRepositoryEdge_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueRepositoryEdge_updated_at(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueVariantImplementors = []string{"IssueVariant", "Node"} + field := field -func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariant) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariantEdge_node(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariant") - case "id": - out.Values[i] = ec._IssueVariant_id(ctx, field, obj) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._IssueVariantEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "secondaryName": - out.Values[i] = ec._IssueVariant_secondaryName(ctx, field, obj) - case "description": - out.Values[i] = ec._IssueVariant_description(ctx, field, obj) - case "severity": - out.Values[i] = ec._IssueVariant_severity(ctx, field, obj) - case "issueRepositoryId": - out.Values[i] = ec._IssueVariant_issueRepositoryId(ctx, field, obj) - case "issueRepository": + case "cursor": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueVariant_issueRepository(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -28352,29 +35480,38 @@ func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueVariantEdge_cursor(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueId": - out.Values[i] = ec._IssueVariant_issueId(ctx, field, obj) - case "issue": + out.Values[i] = ec._IssueVariantEdge_cursor(ctx, field, obj) + case "created_at": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueVariant_issue(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._IssueVariantEdge_created_at(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._IssueVariantEdge_created_at(ctx, field, obj) + case "updated_at": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -28387,19 +35524,14 @@ func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._IssueVariantEdge_updated_at(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "created_at": - out.Values[i] = ec._IssueVariant_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueVariant_updated_at(ctx, field, obj) + out.Values[i] = ec._IssueVariantEdge_updated_at(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -28423,71 +35555,127 @@ func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.Selection return out } -var issueVariantConnectionImplementors = []string{"IssueVariantConnection", "Connection"} +var metadataImplementors = []string{"Metadata"} -func (ec *executionContext) _IssueVariantConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantConnectionImplementors) +func (ec *executionContext) _Metadata(ctx context.Context, sel ast.SelectionSet, obj *model.Metadata) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, metadataImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariantConnection") - case "totalCount": - out.Values[i] = ec._IssueVariantConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueVariantConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueVariantConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = graphql.MarshalString("Metadata") + case "created_at": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Metadata_created_at(ctx, field, obj) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Metadata_created_at(ctx, field, obj) + case "created_by": + field := field - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Metadata_created_by(ctx, field, obj) + }) -var issueVariantEdgeImplementors = []string{"IssueVariantEdge", "Edge"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Metadata_created_by(ctx, field, obj) + case "deleted_at": + field := field -func (ec *executionContext) _IssueVariantEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Metadata_deleted_at(ctx, field, obj) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariantEdge") - case "node": - out.Values[i] = ec._IssueVariantEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "cursor": - out.Values[i] = ec._IssueVariantEdge_cursor(ctx, field, obj) - case "created_at": - out.Values[i] = ec._IssueVariantEdge_created_at(ctx, field, obj) + out.Values[i] = ec._Metadata_deleted_at(ctx, field, obj) case "updated_at": - out.Values[i] = ec._IssueVariantEdge_updated_at(ctx, field, obj) + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Metadata_updated_at(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Metadata_updated_at(ctx, field, obj) + case "updated_by": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Metadata_updated_by(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._Metadata_updated_by(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -28531,6 +35719,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createUser": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createUser(ctx, field) }) @@ -28538,6 +35728,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateUser": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateUser(ctx, field) }) @@ -28545,6 +35737,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteUser": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteUser(ctx, field) }) @@ -28552,6 +35746,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createSupportGroup(ctx, field) }) @@ -28559,6 +35755,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateSupportGroup(ctx, field) }) @@ -28566,6 +35764,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteSupportGroup(ctx, field) }) @@ -28573,6 +35773,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addServiceToSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addServiceToSupportGroup(ctx, field) }) @@ -28580,6 +35782,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeServiceFromSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeServiceFromSupportGroup(ctx, field) }) @@ -28587,6 +35791,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addUserToSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addUserToSupportGroup(ctx, field) }) @@ -28594,6 +35800,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeUserFromSupportGroup": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeUserFromSupportGroup(ctx, field) }) @@ -28601,6 +35809,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createComponent": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createComponent(ctx, field) }) @@ -28608,6 +35818,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateComponent": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateComponent(ctx, field) }) @@ -28615,6 +35827,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteComponent": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteComponent(ctx, field) }) @@ -28622,6 +35836,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createComponentInstance": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createComponentInstance(ctx, field) }) @@ -28629,6 +35845,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateComponentInstance": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateComponentInstance(ctx, field) }) @@ -28636,6 +35854,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteComponentInstance": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteComponentInstance(ctx, field) }) @@ -28643,6 +35863,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createComponentVersion": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createComponentVersion(ctx, field) }) @@ -28650,6 +35872,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateComponentVersion": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateComponentVersion(ctx, field) }) @@ -28657,6 +35881,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteComponentVersion": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteComponentVersion(ctx, field) }) @@ -28664,6 +35890,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createService(ctx, field) }) @@ -28671,6 +35899,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateService(ctx, field) }) @@ -28678,6 +35908,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteService(ctx, field) }) @@ -28685,6 +35917,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addOwnerToService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addOwnerToService(ctx, field) }) @@ -28692,6 +35926,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeOwnerFromService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeOwnerFromService(ctx, field) }) @@ -28699,6 +35935,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addIssueRepositoryToService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addIssueRepositoryToService(ctx, field) }) @@ -28706,6 +35944,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeIssueRepositoryFromService": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeIssueRepositoryFromService(ctx, field) }) @@ -28713,6 +35953,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createIssueRepository": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createIssueRepository(ctx, field) }) @@ -28720,6 +35962,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateIssueRepository": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateIssueRepository(ctx, field) }) @@ -28727,6 +35971,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteIssueRepository": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteIssueRepository(ctx, field) }) @@ -28734,6 +35980,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createIssue": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createIssue(ctx, field) }) @@ -28741,6 +35989,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateIssue": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateIssue(ctx, field) }) @@ -28748,6 +35998,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteIssue": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteIssue(ctx, field) }) @@ -28755,6 +36007,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addComponentVersionToIssue": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addComponentVersionToIssue(ctx, field) }) @@ -28762,6 +36016,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeComponentVersionFromIssue": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeComponentVersionFromIssue(ctx, field) }) @@ -28769,6 +36025,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createIssueVariant": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createIssueVariant(ctx, field) }) @@ -28776,6 +36034,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateIssueVariant": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateIssueVariant(ctx, field) }) @@ -28783,6 +36043,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteIssueVariant": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteIssueVariant(ctx, field) }) @@ -28790,6 +36052,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createEvidence": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createEvidence(ctx, field) }) @@ -28797,6 +36061,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateEvidence": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateEvidence(ctx, field) }) @@ -28804,6 +36070,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteEvidence": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteEvidence(ctx, field) }) @@ -28811,6 +36079,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createIssueMatch": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createIssueMatch(ctx, field) }) @@ -28818,6 +36088,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateIssueMatch": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateIssueMatch(ctx, field) }) @@ -28825,6 +36097,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteIssueMatch": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteIssueMatch(ctx, field) }) @@ -28832,6 +36106,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addEvidenceToIssueMatch": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addEvidenceToIssueMatch(ctx, field) }) @@ -28839,6 +36115,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeEvidenceFromIssueMatch": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeEvidenceFromIssueMatch(ctx, field) }) @@ -28846,6 +36124,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createIssueMatchChange": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createIssueMatchChange(ctx, field) }) @@ -28853,6 +36133,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateIssueMatchChange": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateIssueMatchChange(ctx, field) }) @@ -28860,6 +36142,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteIssueMatchChange": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteIssueMatchChange(ctx, field) }) @@ -28867,6 +36151,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createActivity(ctx, field) }) @@ -28874,6 +36160,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateActivity(ctx, field) }) @@ -28881,6 +36169,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "deleteActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_deleteActivity(ctx, field) }) @@ -28888,6 +36178,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addServiceToActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addServiceToActivity(ctx, field) }) @@ -28895,6 +36187,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeServiceFromActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeServiceFromActivity(ctx, field) }) @@ -28902,6 +36196,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "addIssueToActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_addIssueToActivity(ctx, field) }) @@ -28909,6 +36205,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "removeIssueFromActivity": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_removeIssueFromActivity(ctx, field) }) @@ -28950,12 +36248,92 @@ func (ec *executionContext) _Page(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Page") case "after": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Page_after(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Page_after(ctx, field, obj) case "isCurrent": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Page_isCurrent(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Page_isCurrent(ctx, field, obj) case "pageNumber": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Page_pageNumber(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Page_pageNumber(ctx, field, obj) case "pageCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Page_pageCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Page_pageCount(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -28992,16 +36370,136 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_hasNextPage(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) case "hasPreviousPage": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_hasPreviousPage(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) case "isValidPage": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_isValidPage(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_isValidPage(ctx, field, obj) case "pageNumber": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_pageNumber(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_pageNumber(ctx, field, obj) case "nextPageAfter": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_nextPageAfter(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_nextPageAfter(ctx, field, obj) case "pages": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._PageInfo_pages(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._PageInfo_pages(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -29048,293 +36546,102 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "Issues": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Issues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Issues(ctx, field) + }) case "IssueMatches": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatches(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + field := field - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_IssueMatches(ctx, field) + }) case "IssueMatchChanges": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatchChanges(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_IssueMatchChanges(ctx, field) + }) case "Services": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Services(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Services(ctx, field) + }) case "Components": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Components(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Components(ctx, field) + }) case "ComponentVersions": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentVersions(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_ComponentVersions(ctx, field) + }) case "ComponentInstances": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentInstances(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_ComponentInstances(ctx, field) + }) case "Activities": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Activities(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Activities(ctx, field) + }) case "IssueVariants": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueVariants(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_IssueVariants(ctx, field) + }) case "IssueRepositories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueRepositories(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_IssueRepositories(ctx, field) + }) case "Evidences": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Evidences(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Evidences(ctx, field) + }) case "SupportGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_SupportGroups(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_SupportGroups(ctx, field) + }) case "Users": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Users(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_Users(ctx, field) + }) case "ServiceFilterValues": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ServiceFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_ServiceFilterValues(ctx, field) + }) case "IssueMatchFilterValues": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatchFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query_IssueMatchFilterValues(ctx, field) + }) case "__type": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": + field := field + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -29373,24 +36680,54 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Service") case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Service_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Service_id(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } case "name": - out.Values[i] = ec._Service_name(ctx, field, obj) - case "owners": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_owners(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Service_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._Service_name(ctx, field, obj) + case "owners": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -29403,28 +36740,17 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Service_owners(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Service_owners(ctx, field, obj) case "supportGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_supportGroups(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29436,28 +36762,17 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Service_supportGroups(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Service_supportGroups(ctx, field, obj) case "activities": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_activities(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29469,28 +36784,17 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Service_activities(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Service_activities(ctx, field, obj) case "issueRepositories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_issueRepositories(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29502,28 +36806,17 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Service_issueRepositories(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Service_issueRepositories(ctx, field, obj) case "componentInstances": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_componentInstances(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29535,15 +36828,14 @@ func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._Service_componentInstances(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._Service_componentInstances(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -29579,13 +36871,73 @@ func (ec *executionContext) _ServiceConnection(ctx context.Context, sel ast.Sele case "__typename": out.Values[i] = graphql.MarshalString("ServiceConnection") case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceConnection_edges(ctx, field, obj) case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -29622,13 +36974,73 @@ func (ec *executionContext) _ServiceEdge(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("ServiceEdge") case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceEdge_cursor(ctx, field, obj) case "priority": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._ServiceEdge_priority(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._ServiceEdge_priority(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -29667,16 +37079,6 @@ func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.Sel case "serviceName": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_serviceName(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29688,28 +37090,17 @@ func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.Sel deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._ServiceFilterValue_serviceName(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._ServiceFilterValue_serviceName(ctx, field, obj) case "uniqueUserId": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_uniqueUserId(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29721,28 +37112,17 @@ func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.Sel deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._ServiceFilterValue_uniqueUserId(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._ServiceFilterValue_uniqueUserId(ctx, field, obj) case "userName": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_userName(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29754,28 +37134,17 @@ func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.Sel deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._ServiceFilterValue_userName(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._ServiceFilterValue_userName(ctx, field, obj) case "supportGroupName": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_supportGroupName(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29787,15 +37156,14 @@ func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.Sel deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._ServiceFilterValue_supportGroupName(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._ServiceFilterValue_supportGroupName(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -29831,10 +37199,70 @@ func (ec *executionContext) _Severity(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Severity") case "value": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Severity_value(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Severity_value(ctx, field, obj) case "score": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Severity_score(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Severity_score(ctx, field, obj) case "cvss": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._Severity_cvss(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._Severity_cvss(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -29871,24 +37299,54 @@ func (ec *executionContext) _SupportGroup(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("SupportGroup") case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroup_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroup_id(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } case "name": - out.Values[i] = ec._SupportGroup_name(ctx, field, obj) - case "users": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SupportGroup_users(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroup_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._SupportGroup_name(ctx, field, obj) + case "users": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -29901,28 +37359,17 @@ func (ec *executionContext) _SupportGroup(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._SupportGroup_users(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._SupportGroup_users(ctx, field, obj) case "services": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SupportGroup_services(ctx, field, obj) - return res - } - if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -29934,15 +37381,14 @@ func (ec *executionContext) _SupportGroup(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._SupportGroup_services(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._SupportGroup_services(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -29978,13 +37424,73 @@ func (ec *executionContext) _SupportGroupConnection(ctx context.Context, sel ast case "__typename": out.Values[i] = graphql.MarshalString("SupportGroupConnection") case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroupConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroupConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroupConnection_edges(ctx, field, obj) case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroupConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroupConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30021,11 +37527,51 @@ func (ec *executionContext) _SupportGroupEdge(ctx context.Context, sel ast.Selec case "__typename": out.Values[i] = graphql.MarshalString("SupportGroupEdge") case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroupEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroupEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._SupportGroupEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._SupportGroupEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30062,31 +37608,101 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("User") case "id": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._User_id(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._User_id(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ + } + case "uniqueUserId": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._User_uniqueUserId(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Values[i] = ec._User_uniqueUserId(ctx, field, obj) + case "type": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._User_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "uniqueUserId": - out.Values[i] = ec._User_uniqueUserId(ctx, field, obj) - case "type": out.Values[i] = ec._User_type(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } case "name": - out.Values[i] = ec._User_name(ctx, field, obj) - case "supportGroups": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_supportGroups(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._User_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._User_name(ctx, field, obj) + case "supportGroups": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -30099,27 +37715,38 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._User_supportGroups(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._User_supportGroups(ctx, field, obj) case "services": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_services(ctx, field, obj) - return res + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._User_services(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + out.Values[i] = ec._User_services(ctx, field, obj) + case "metadata": + field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -30132,15 +37759,14 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) + return ec._User_metadata(ctx, field, obj) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out.Values[i] = ec._User_metadata(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -30176,13 +37802,73 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("UserConnection") case "totalCount": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._UserConnection_totalCount(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._UserConnection_edges(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._UserConnection_edges(ctx, field, obj) case "pageInfo": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._UserConnection_pageInfo(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30219,11 +37905,51 @@ func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("UserEdge") case "node": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._UserEdge_node(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._UserEdge_node(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "cursor": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec._UserEdge_cursor(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30260,23 +37986,123 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Directive_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Directive_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Directive_description(ctx, field, obj) case "locations": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Directive_locations(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Directive_locations(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "args": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Directive_args(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isRepeatable": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Directive_isRepeatable(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -30316,18 +38142,98 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___EnumValue_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___EnumValue_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___EnumValue_description(ctx, field, obj) case "isDeprecated": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___EnumValue_isDeprecated(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___EnumValue_deprecationReason(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30364,28 +38270,148 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_description(ctx, field, obj) case "args": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_args(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "type": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isDeprecated": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_isDeprecated(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Field_deprecationReason(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30422,18 +38448,98 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___InputValue_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___InputValue_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___InputValue_description(ctx, field, obj) case "type": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___InputValue_type(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "defaultValue": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___InputValue_defaultValue(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30470,22 +38576,142 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_description(ctx, field, obj) case "types": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_types(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "queryType": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_queryType(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "mutationType": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_mutationType(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) case "subscriptionType": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_subscriptionType(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) case "directives": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Schema_directives(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -30525,27 +38751,227 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_kind(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_name(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_description(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_fields(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_interfaces(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_possibleTypes(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_enumValues(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_inputFields(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_ofType(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": + field := field + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return ec.___Type_specifiedByURL(ctx, field, obj) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -30644,7 +39070,7 @@ func (ec *executionContext) marshalNComponentInstance2ᚖgithubᚗcomᚋcloudope func (ec *executionContext) marshalNComponentInstanceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ComponentInstanceEdge) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -30701,7 +39127,7 @@ func (ec *executionContext) marshalNComponentVersion2ᚖgithubᚗcomᚋcloudoper func (ec *executionContext) marshalNComponentVersionEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ComponentVersionEdge) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -30822,7 +39248,7 @@ func (ec *executionContext) marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheu func (ec *executionContext) marshalNIssueEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueEdge) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31017,7 +39443,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31093,7 +39519,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31149,7 +39575,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31197,7 +39623,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31283,7 +39709,7 @@ func (ec *executionContext) marshalOActivityEdge2ᚕᚖgithubᚗcomᚋcloudopera } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31359,7 +39785,7 @@ func (ec *executionContext) marshalOActivityStatusValues2ᚕᚖgithubᚗcomᚋcl } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31516,7 +39942,7 @@ func (ec *executionContext) marshalOComponentEdge2ᚕᚖgithubᚗcomᚋcloudoper } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31662,7 +40088,7 @@ func (ec *executionContext) marshalOEvidenceEdge2ᚕᚖgithubᚗcomᚋcloudopera } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31838,7 +40264,7 @@ func (ec *executionContext) marshalOIssueMatchChangeActions2ᚕᚖgithubᚗcom } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31902,7 +40328,7 @@ func (ec *executionContext) marshalOIssueMatchChangeEdge2ᚕᚖgithubᚗcomᚋcl } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -31965,7 +40391,7 @@ func (ec *executionContext) marshalOIssueMatchEdge2ᚕᚖgithubᚗcomᚋcloudope } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32048,7 +40474,7 @@ func (ec *executionContext) marshalOIssueMatchStatusValues2ᚕᚖgithubᚗcomᚋ } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32126,7 +40552,7 @@ func (ec *executionContext) marshalOIssueRepositoryEdge2ᚕᚖgithubᚗcomᚋclo } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32202,7 +40628,7 @@ func (ec *executionContext) marshalOIssueTypes2ᚕᚖgithubᚗcomᚋcloudoperato } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32266,7 +40692,7 @@ func (ec *executionContext) marshalOIssueVariantEdge2ᚕᚖgithubᚗcomᚋcloudo } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32316,13 +40742,20 @@ func (ec *executionContext) unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloud return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐMetadata(ctx context.Context, sel ast.SelectionSet, v *model.Metadata) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Metadata(ctx, sel, v) +} + func (ec *executionContext) marshalOPage2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPage(ctx context.Context, sel ast.SelectionSet, v []*model.Page) graphql.Marshaler { if v == nil { return graphql.Null } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32391,7 +40824,7 @@ func (ec *executionContext) marshalOServiceEdge2ᚕᚖgithubᚗcomᚋcloudoperat } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32489,7 +40922,7 @@ func (ec *executionContext) marshalOSeverityValues2ᚕᚖgithubᚗcomᚋcloudope } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32601,7 +41034,7 @@ func (ec *executionContext) marshalOSupportGroupEdge2ᚕᚖgithubᚗcomᚋcloudo } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32671,7 +41104,7 @@ func (ec *executionContext) marshalOUserEdge2ᚕᚖgithubᚗcomᚋcloudoperators } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32727,7 +41160,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32774,7 +41207,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32821,7 +41254,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } @@ -32875,7 +41308,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := len(v) == 1 + isLen1 := true if !isLen1 { wg.Add(len(v)) } diff --git a/internal/api/graphql/graph/model/models.go b/internal/api/graphql/graph/model/models.go index b3cba03d..3d290f75 100644 --- a/internal/api/graphql/graph/model/models.go +++ b/internal/api/graphql/graph/model/models.go @@ -219,7 +219,7 @@ func NewIssueMatchEntity(im *IssueMatchInput) entity.IssueMatch { IssueId: issueId, ComponentInstanceId: ciId, UserId: userId, - Info: entity.Info{CreatedAt: createdAt}, + Metadata: entity.Metadata{CreatedAt: createdAt}, } } @@ -315,11 +315,21 @@ func NewIssueVariantEntity(issueVariant *IssueVariantInput) entity.IssueVariant } func NewUser(user *entity.User) User { + createdAt := user.CreatedAt.String() + deletedAt := user.DeletedAt.String() + updatedAt := user.UpdatedAt.String() return User{ ID: fmt.Sprintf("%d", user.Id), UniqueUserID: &user.UniqueUserID, Name: &user.Name, Type: int(user.Type), + Metadata: &Metadata{ + CreatedAt: &createdAt, + CreatedBy: &user.CreatedBy, + DeletedAt: &deletedAt, + UpdatedAt: &updatedAt, + UpdatedBy: &user.UpdatedBy, + }, } } diff --git a/internal/api/graphql/graph/model/models_gen.go b/internal/api/graphql/graph/model/models_gen.go index 5610184e..2557d136 100644 --- a/internal/api/graphql/graph/model/models_gen.go +++ b/internal/api/graphql/graph/model/models_gen.go @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package model @@ -569,6 +566,14 @@ type IssueVariantInput struct { Severity *SeverityInput `json:"severity,omitempty"` } +type Metadata struct { + CreatedAt *string `json:"created_at,omitempty"` + CreatedBy *string `json:"created_by,omitempty"` + DeletedAt *string `json:"deleted_at,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` + UpdatedBy *string `json:"updated_by,omitempty"` +} + type Mutation struct { } @@ -699,6 +704,7 @@ type User struct { Name *string `json:"name,omitempty"` SupportGroups *SupportGroupConnection `json:"supportGroups,omitempty"` Services *ServiceConnection `json:"services,omitempty"` + Metadata *Metadata `json:"metadata,omitempty"` } func (User) IsNode() {} diff --git a/internal/api/graphql/graph/queryCollection/user/listUsers.graphql b/internal/api/graphql/graph/queryCollection/user/listUsers.graphql new file mode 100644 index 00000000..9fd813a3 --- /dev/null +++ b/internal/api/graphql/graph/queryCollection/user/listUsers.graphql @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + +query ($filter: UserFilter, $first: Int, $after: String) { + Users ( + filter: $filter, + first: $first, + after: $after + ) { + totalCount + edges { + node { + id + name + type + metadata { + created_at + created_by + deleted_at + updated_at + updated_by + } + } + cursor + } + } +} diff --git a/internal/api/graphql/graph/resolver/activity.go b/internal/api/graphql/graph/resolver/activity.go index e7884d88..70ad9901 100644 --- a/internal/api/graphql/graph/resolver/activity.go +++ b/internal/api/graphql/graph/resolver/activity.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/component.go b/internal/api/graphql/graph/resolver/component.go index 905815d8..58bb0621 100644 --- a/internal/api/graphql/graph/resolver/component.go +++ b/internal/api/graphql/graph/resolver/component.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/component_instance.go b/internal/api/graphql/graph/resolver/component_instance.go index 5975d19b..f75f932b 100644 --- a/internal/api/graphql/graph/resolver/component_instance.go +++ b/internal/api/graphql/graph/resolver/component_instance.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/component_version.go b/internal/api/graphql/graph/resolver/component_version.go index 3227f492..6a1f209e 100644 --- a/internal/api/graphql/graph/resolver/component_version.go +++ b/internal/api/graphql/graph/resolver/component_version.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/evidence.go b/internal/api/graphql/graph/resolver/evidence.go index 4ffa908c..f5a20b1e 100644 --- a/internal/api/graphql/graph/resolver/evidence.go +++ b/internal/api/graphql/graph/resolver/evidence.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue.go b/internal/api/graphql/graph/resolver/issue.go index 65f264d8..21e99e67 100644 --- a/internal/api/graphql/graph/resolver/issue.go +++ b/internal/api/graphql/graph/resolver/issue.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue_match.go b/internal/api/graphql/graph/resolver/issue_match.go index 4c60bf9b..ac12edb3 100644 --- a/internal/api/graphql/graph/resolver/issue_match.go +++ b/internal/api/graphql/graph/resolver/issue_match.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue_match_change.go b/internal/api/graphql/graph/resolver/issue_match_change.go index 14afca9d..ad6bef2d 100644 --- a/internal/api/graphql/graph/resolver/issue_match_change.go +++ b/internal/api/graphql/graph/resolver/issue_match_change.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue_match_filter_value.go b/internal/api/graphql/graph/resolver/issue_match_filter_value.go index e7e732e1..8e37ad4e 100644 --- a/internal/api/graphql/graph/resolver/issue_match_filter_value.go +++ b/internal/api/graphql/graph/resolver/issue_match_filter_value.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue_repository.go b/internal/api/graphql/graph/resolver/issue_repository.go index f05e2966..0c32d094 100644 --- a/internal/api/graphql/graph/resolver/issue_repository.go +++ b/internal/api/graphql/graph/resolver/issue_repository.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/issue_variant.go b/internal/api/graphql/graph/resolver/issue_variant.go index 1f8b10f9..58cc96dc 100644 --- a/internal/api/graphql/graph/resolver/issue_variant.go +++ b/internal/api/graphql/graph/resolver/issue_variant.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/mutation.go b/internal/api/graphql/graph/resolver/mutation.go index 867a3332..724d9d7f 100644 --- a/internal/api/graphql/graph/resolver/mutation.go +++ b/internal/api/graphql/graph/resolver/mutation.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/query.go b/internal/api/graphql/graph/resolver/query.go index 36f6beba..f790e413 100644 --- a/internal/api/graphql/graph/resolver/query.go +++ b/internal/api/graphql/graph/resolver/query.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/service.go b/internal/api/graphql/graph/resolver/service.go index 70cbfd6e..d830ce30 100644 --- a/internal/api/graphql/graph/resolver/service.go +++ b/internal/api/graphql/graph/resolver/service.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/service_filter.go b/internal/api/graphql/graph/resolver/service_filter.go index 873071fd..7231b7e2 100644 --- a/internal/api/graphql/graph/resolver/service_filter.go +++ b/internal/api/graphql/graph/resolver/service_filter.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/support_group.go b/internal/api/graphql/graph/resolver/support_group.go index 47860779..3de7ea89 100644 --- a/internal/api/graphql/graph/resolver/support_group.go +++ b/internal/api/graphql/graph/resolver/support_group.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/resolver/user.go b/internal/api/graphql/graph/resolver/user.go index 6ab76f7a..f2047f52 100644 --- a/internal/api/graphql/graph/resolver/user.go +++ b/internal/api/graphql/graph/resolver/user.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.49 +// Code generated by github.com/99designs/gqlgen version v0.17.51 import ( "context" diff --git a/internal/api/graphql/graph/schema/common.graphqls b/internal/api/graphql/graph/schema/common.graphqls index 9a97275c..ee15d2b7 100644 --- a/internal/api/graphql/graph/schema/common.graphqls +++ b/internal/api/graphql/graph/schema/common.graphqls @@ -104,4 +104,12 @@ type FilterItem { displayName: String filterName: String values: [String] -} \ No newline at end of file +} + +type Metadata { + created_at: DateTime + created_by: String + deleted_at: DateTime + updated_at: DateTime + updated_by: String +} diff --git a/internal/api/graphql/graph/schema/user.graphqls b/internal/api/graphql/graph/schema/user.graphqls index 91b7d12a..2cd19c19 100644 --- a/internal/api/graphql/graph/schema/user.graphqls +++ b/internal/api/graphql/graph/schema/user.graphqls @@ -8,6 +8,7 @@ type User implements Node { name: String supportGroups(filter: SupportGroupFilter, first: Int, after: String): SupportGroupConnection services(filter: ServiceFilter, first: Int, after: String): ServiceConnection + metadata: Metadata } input UserInput { diff --git a/internal/app/user/user_handler.go b/internal/app/user/user_handler.go index 19abd432..71e474f4 100644 --- a/internal/app/user/user_handler.go +++ b/internal/app/user/user_handler.go @@ -103,6 +103,7 @@ func (u *userHandler) ListUsers(filter *entity.UserFilter, options *entity.ListO } func (u *userHandler) CreateUser(user *entity.User) (*entity.User, error) { + user.CreatedBy = "Creator" f := &entity.UserFilter{ UniqueUserID: []*string{&user.UniqueUserID}, } @@ -136,6 +137,7 @@ func (u *userHandler) CreateUser(user *entity.User) (*entity.User, error) { } func (u *userHandler) UpdateUser(user *entity.User) (*entity.User, error) { + user.UpdatedBy = "Updater" l := logrus.WithFields(logrus.Fields{ "event": UpdateUserEventName, "object": user, diff --git a/internal/database/mariadb/entity.go b/internal/database/mariadb/entity.go index c1f135f4..2e802693 100644 --- a/internal/database/mariadb/entity.go +++ b/internal/database/mariadb/entity.go @@ -96,7 +96,7 @@ func (ir *IssueRow) AsIssue() entity.Issue { IssueVariants: []entity.IssueVariant{}, IssueMatches: []entity.IssueMatch{}, Activity: []entity.Activity{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ir.CreatedAt), DeletedAt: GetTimeValue(ir.DeletedAt), UpdatedAt: GetTimeValue(ir.UpdatedAt), @@ -138,7 +138,7 @@ func (ibr *GetIssuesByRow) AsIssueWithAggregations() entity.IssueWithAggregation IssueVariants: []entity.IssueVariant{}, IssueMatches: []entity.IssueMatch{}, Activity: []entity.Activity{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ibr.IssueRow.CreatedAt), DeletedAt: GetTimeValue(ibr.IssueRow.DeletedAt), UpdatedAt: GetTimeValue(ibr.IssueRow.UpdatedAt), @@ -156,7 +156,7 @@ func (ibr *GetIssuesByRow) AsIssue() entity.Issue { IssueVariants: []entity.IssueVariant{}, IssueMatches: []entity.IssueMatch{}, Activity: []entity.Activity{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ibr.IssueRow.CreatedAt), DeletedAt: GetTimeValue(ibr.IssueRow.DeletedAt), UpdatedAt: GetTimeValue(ibr.IssueRow.UpdatedAt), @@ -214,7 +214,7 @@ func (imr IssueMatchRow) AsIssueMatch() entity.IssueMatch { RemediationDate: GetTimeValue(imr.RemediationDate), TargetRemediationDate: GetTimeValue(imr.TargetRemediationDate), Severity: entity.NewSeverity(GetStringValue(imr.Vector)), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(imr.CreatedAt), DeletedAt: GetTimeValue(imr.DeletedAt), UpdatedAt: GetTimeValue(imr.UpdatedAt), @@ -267,7 +267,7 @@ func (birr *BaseIssueRepositoryRow) AsBaseIssueRepository() entity.BaseIssueRepo Url: GetStringValue(birr.Url), IssueVariants: nil, Services: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(birr.CreatedAt), DeletedAt: GetTimeValue(birr.DeletedAt), UpdatedAt: GetTimeValue(birr.UpdatedAt), @@ -283,7 +283,7 @@ func (barr *BaseIssueRepositoryRow) AsIssueRepository() entity.IssueRepository { Url: GetStringValue(barr.Url), IssueVariants: nil, Services: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(barr.CreatedAt), DeletedAt: GetTimeValue(barr.DeletedAt), UpdatedAt: GetTimeValue(barr.UpdatedAt), @@ -300,7 +300,7 @@ func (irr *IssueRepositoryRow) AsIssueRepository() entity.IssueRepository { Url: GetStringValue(irr.Url), IssueVariants: nil, Services: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(irr.BaseIssueRepositoryRow.CreatedAt), DeletedAt: GetTimeValue(irr.BaseIssueRepositoryRow.DeletedAt), UpdatedAt: GetTimeValue(irr.BaseIssueRepositoryRow.UpdatedAt), @@ -336,7 +336,7 @@ func (ivr *IssueVariantRow) AsIssueVariant(repository *entity.IssueRepository) e Issue: nil, Severity: entity.NewSeverity(GetStringValue(ivr.Vector)), Description: GetStringValue(ivr.Description), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ivr.CreatedAt), DeletedAt: GetTimeValue(ivr.DeletedAt), UpdatedAt: GetTimeValue(ivr.UpdatedAt), @@ -373,7 +373,7 @@ func (ivwr *IssueVariantWithRepository) AsIssueVariantEntry() entity.IssueVarian Issue: nil, Severity: entity.NewSeverity(GetStringValue(ivwr.Vector)), Description: GetStringValue(ivwr.Description), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ivwr.IssueVariantRow.CreatedAt), DeletedAt: GetTimeValue(ivwr.IssueVariantRow.DeletedAt), UpdatedAt: GetTimeValue(ivwr.IssueVariantRow.UpdatedAt), @@ -395,7 +395,7 @@ func (cr *ComponentRow) AsComponent() entity.Component { Id: GetInt64Value(cr.Id), Name: GetStringValue(cr.Name), Type: GetStringValue(cr.Type), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(cr.CreatedAt), DeletedAt: GetTimeValue(cr.DeletedAt), UpdatedAt: GetTimeValue(cr.UpdatedAt), @@ -426,7 +426,7 @@ func (cvr *ComponentVersionRow) AsComponentVersion() entity.ComponentVersion { Id: GetInt64Value(cvr.Id), Version: GetStringValue(cvr.Version), ComponentId: GetInt64Value(cvr.ComponentId), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(cvr.CreatedAt), DeletedAt: GetTimeValue(cvr.DeletedAt), UpdatedAt: GetTimeValue(cvr.UpdatedAt), @@ -455,7 +455,7 @@ func (sgr *SupportGroupRow) AsSupportGroup() entity.SupportGroup { return entity.SupportGroup{ Id: GetInt64Value(sgr.Id), Name: GetStringValue(sgr.Name), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(sgr.CreatedAt), DeletedAt: GetTimeValue(sgr.DeletedAt), UpdatedAt: GetTimeValue(sgr.UpdatedAt), @@ -490,7 +490,7 @@ func (bsr *BaseServiceRow) AsBaseService() entity.BaseService { Name: GetStringValue(bsr.Name), Owners: []entity.User{}, Activities: []entity.Activity{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(bsr.CreatedAt), DeletedAt: GetTimeValue(bsr.DeletedAt), UpdatedAt: GetTimeValue(bsr.UpdatedAt), @@ -512,7 +512,7 @@ func (sr *ServiceRow) AsService() entity.Service { Name: GetStringValue(sr.Name), Owners: []entity.User{}, Activities: []entity.Activity{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(sr.BaseServiceRow.CreatedAt), DeletedAt: GetTimeValue(sr.BaseServiceRow.DeletedAt), UpdatedAt: GetTimeValue(sr.BaseServiceRow.UpdatedAt), @@ -547,7 +547,7 @@ func (ar *ActivityRow) AsActivity() entity.Activity { Status: entity.ActivityStatusValue(GetStringValue(ar.Status)), Issues: []entity.Issue{}, Evidences: []entity.Evidence{}, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ar.CreatedAt), DeletedAt: GetTimeValue(ar.DeletedAt), UpdatedAt: GetTimeValue(ar.UpdatedAt), @@ -583,7 +583,7 @@ func (cir *ComponentInstanceRow) AsComponentInstance() entity.ComponentInstance ComponentVersionId: GetInt64Value(cir.ComponentVersionId), Service: nil, ServiceId: GetInt64Value(cir.ServiceId), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(cir.CreatedAt), DeletedAt: GetTimeValue(cir.DeletedAt), UpdatedAt: GetTimeValue(cir.UpdatedAt), @@ -608,8 +608,10 @@ type UserRow struct { UniqueUserID sql.NullString `db:"user_unique_user_id" json:"unique_user_id"` Type sql.NullInt64 `db:"user_type" json:"type"` CreatedAt sql.NullTime `db:"user_created_at" json:"created_at"` + CreatedBy sql.NullString `db:"user_created_by" json:"created_by"` DeletedAt sql.NullTime `db:"user_deleted_at" json:"deleted_at,omitempty"` UpdatedAt sql.NullTime `db:"user_updated_at" json:"updated_at"` + UpdatedBy sql.NullString `db:"user_updated_by" json:"Updated_by"` } func (ur *UserRow) AsUser() entity.User { @@ -618,10 +620,12 @@ func (ur *UserRow) AsUser() entity.User { Name: GetStringValue(ur.Name), UniqueUserID: GetStringValue(ur.UniqueUserID), Type: GetUserTypeValue(ur.Type), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(ur.CreatedAt), + CreatedBy: GetStringValue(ur.CreatedBy), DeletedAt: GetTimeValue(ur.DeletedAt), UpdatedAt: GetTimeValue(ur.UpdatedAt), + UpdatedBy: GetStringValue(ur.UpdatedBy), }, } } @@ -632,8 +636,10 @@ func (ur *UserRow) FromUser(u *entity.User) { ur.UniqueUserID = sql.NullString{String: u.UniqueUserID, Valid: true} ur.Type = sql.NullInt64{Int64: int64(u.Type), Valid: true} ur.CreatedAt = sql.NullTime{Time: u.CreatedAt, Valid: true} + ur.CreatedBy = sql.NullString{String: u.CreatedBy, Valid: true} ur.DeletedAt = sql.NullTime{Time: u.DeletedAt, Valid: true} ur.UpdatedAt = sql.NullTime{Time: u.UpdatedAt, Valid: true} + ur.UpdatedBy = sql.NullString{String: u.UpdatedBy, Valid: true} } type EvidenceRow struct { @@ -663,7 +669,7 @@ func (er *EvidenceRow) AsEvidence() entity.Evidence { UserId: GetInt64Value(er.UserId), Activity: nil, ActivityId: GetInt64Value(er.ActivityId), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(er.CreatedAt), DeletedAt: GetTimeValue(er.DeletedAt), UpdatedAt: GetTimeValue(er.UpdatedAt), @@ -701,7 +707,7 @@ func (imcr *IssueMatchChangeRow) AsIssueMatchChange() entity.IssueMatchChange { IssueMatchId: GetInt64Value(imcr.IssueMatchId), ActivityId: GetInt64Value(imcr.ActivityId), Action: GetStringValue(imcr.Action), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: GetTimeValue(imcr.CreatedAt), DeletedAt: GetTimeValue(imcr.DeletedAt), UpdatedAt: GetTimeValue(imcr.UpdatedAt), diff --git a/internal/database/mariadb/init/schema.sql b/internal/database/mariadb/init/schema.sql index 1ee75400..c8a82d9d 100644 --- a/internal/database/mariadb/init/schema.sql +++ b/internal/database/mariadb/init/schema.sql @@ -126,8 +126,10 @@ create table if not exists User user_unique_user_id varchar(64) not null, user_type int unsigned, user_created_at timestamp default current_timestamp() not null, + user_created_by varchar(256) null, user_deleted_at timestamp null, user_updated_at timestamp default current_timestamp() not null on update current_timestamp(), + user_updated_by varchar(256) null, constraint id_UNIQUE unique (user_id), constraint unique_user_id_UNIQUE diff --git a/internal/database/mariadb/user.go b/internal/database/mariadb/user.go index b9b95f89..86fd3127 100644 --- a/internal/database/mariadb/user.go +++ b/internal/database/mariadb/user.go @@ -62,6 +62,9 @@ func (s *SqlDatabase) getUserUpdateFields(user *entity.User) string { if user.Type != entity.InvalidUserType { fl = append(fl, "user_type = :user_type") } + if user.Metadata.UpdatedBy != "" { + fl = append(fl, "user_updated_by = :user_updated_by") + } return strings.Join(fl, ", ") } @@ -178,7 +181,6 @@ func (s *SqlDatabase) GetUsers(filter *entity.UserFilter) ([]entity.User, error) } defer stmt.Close() - return performListScan( stmt, filterParameters, @@ -220,11 +222,13 @@ func (s *SqlDatabase) CreateUser(user *entity.User) (*entity.User, error) { INSERT INTO User ( user_name, user_unique_user_id, - user_type + user_type, + user_created_by ) VALUES ( :user_name, :user_unique_user_id, - :user_type + :user_type, + :user_created_by ) ` diff --git a/internal/e2e/metadata_test.go b/internal/e2e/metadata_test.go new file mode 100644 index 00000000..262fb648 --- /dev/null +++ b/internal/e2e/metadata_test.go @@ -0,0 +1,189 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + +package e2e_test + +import ( + "context" + "fmt" + "os" + "time" + + "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" + "github.com/cloudoperators/heureka/internal/entity" + "github.com/cloudoperators/heureka/internal/server" + "github.com/cloudoperators/heureka/internal/util" + util2 "github.com/cloudoperators/heureka/pkg/util" + + "github.com/machinebox/graphql" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/sirupsen/logrus" +) + +const ( + testUniqueUserId = "1" + testUserType = entity.HumanUserType + testUserName = "Joe" + testUpdatedUserName = "Donald" + testCreatedBy = "Creator" + testUpdatedBy = "Updater" + dbDateLayout = "2006-01-02 15:04:05 -0700 MST" +) + +var () + +func createUser(port string) { + client := graphql.NewClient(fmt.Sprintf("http://localhost:%s/query", port)) + + //@todo may need to make this more fault proof?! What if the test is executed from the root dir? does it still work? + b, err := os.ReadFile("../api/graphql/graph/queryCollection/user/create.graphql") + Expect(err).To(BeNil()) + str := string(b) + req := graphql.NewRequest(str) + + req.Var("input", map[string]string{ + "uniqueUserId": testUniqueUserId, + "type": entity.GetUserTypeString(testUserType), + "name": testUserName, + }) + + req.Header.Set("Cache-Control", "no-cache") + ctx := context.Background() + + var respData struct { + User model.User `json:"createUser"` + } + if err := util2.RequestWithBackoff(func() error { return client.Run(ctx, req, &respData) }); err != nil { + logrus.WithError(err).WithField("request", req).Fatalln("Error while unmarshaling") + } + + Expect(*respData.User.Name).To(Equal(testUserName)) + Expect(*respData.User.UniqueUserID).To(Equal(testUniqueUserId)) + Expect(entity.UserType(respData.User.Type)).To(Equal(testUserType)) +} + +func updateUser(port string) { + // create a queryCollection (safe to share across requests) + client := graphql.NewClient(fmt.Sprintf("http://localhost:%s/query", port)) + + //@todo may need to make this more fault proof?! What if the test is executed from the root dir? does it still work? + b, err := os.ReadFile("../api/graphql/graph/queryCollection/user/update.graphql") + Expect(err).To(BeNil()) + str := string(b) + req := graphql.NewRequest(str) + + req.Var("id", testUniqueUserId) + req.Var("input", map[string]string{ + "name": testUpdatedUserName, + }) + + req.Header.Set("Cache-Control", "no-cache") + ctx := context.Background() + + var respData struct { + User model.User `json:"updateUser"` + } + if err := util2.RequestWithBackoff(func() error { return client.Run(ctx, req, &respData) }); err != nil { + logrus.WithError(err).WithField("request", req).Fatalln("Error while unmarshaling") + } + + Expect(*respData.User.Name).To(Equal(testUpdatedUserName)) + Expect(*respData.User.UniqueUserID).To(Equal(testUniqueUserId)) + Expect(entity.UserType(respData.User.Type)).To(Equal(testUserType)) +} + +func getUser(port string) model.User { + // create a queryCollection (safe to share across requests) + client := graphql.NewClient(fmt.Sprintf("http://localhost:%s/query", port)) + + //@todo may need to make this more fault proof?! What if the test is executed from the root dir? does it still work? + b, err := os.ReadFile("../api/graphql/graph/queryCollection/user/listUsers.graphql") + Expect(err).To(BeNil()) + str := string(b) + req := graphql.NewRequest(str) + + req.Var("filter", map[string]string{"uniqueUserId": testUniqueUserId}) + req.Var("first", 1) + req.Var("after", "0") + + req.Header.Set("Cache-Control", "no-cache") + ctx := context.Background() + + var respData struct { + Users model.UserConnection `json:"Users"` + } + if err := util2.RequestWithBackoff(func() error { return client.Run(ctx, req, &respData) }); err != nil { + logrus.WithError(err).WithField("request", req).Fatalln("Error while unmarshaling") + } + Expect(respData.Users.TotalCount).To(Equal(1)) + return *respData.Users.Edges[0].Node +} + +var _ = Describe("Creating and updating entity via API", Label("e2e", "Entities"), func() { + var s *server.Server + var cfg util.Config + + BeforeEach(func() { + _ = dbm.NewTestSchema() + + cfg = dbm.DbConfig() + cfg.Port = util2.GetRandomFreePort() + s = server.NewServer(cfg) + + s.NonBlockingStart() + }) + + AfterEach(func() { + s.BlockingStop() + }) + + When("New user is created via API", func() { + var user model.User + BeforeEach(func() { + createUser(cfg.Port) + user = getUser(cfg.Port) + }) + It("shall assign CreatedBy and CreatedAt metadata fields and shall keep nil in UpdatedBy, UpdatedAt and DeltedAt metadata fields", func() { + Expect(entity.UserType(user.Type)).To(Equal(testUserType)) + Expect(user.Metadata).To(Not(BeNil())) + Expect(*user.Metadata.CreatedBy).To(Equal(testCreatedBy)) + + createdAt, err := time.Parse(dbDateLayout, *user.Metadata.CreatedAt) + Expect(err).Should(BeNil()) + Expect(createdAt).Should(BeTemporally("~", time.Now().UTC(), 3*time.Second)) + + Expect(*user.Metadata.UpdatedBy).To(BeEmpty()) + + updatedAt, err := time.Parse(dbDateLayout, *user.Metadata.UpdatedAt) + Expect(err).Should(BeNil()) + Expect(updatedAt).To(Equal(createdAt)) + }) + }) + When("User is updated via API", func() { + var user model.User + BeforeEach(func() { + createUser(cfg.Port) + time.Sleep(1100 * time.Millisecond) + updateUser(cfg.Port) + user = getUser(cfg.Port) + }) + It("shall assign UpdatedBy and UpdatedAt metadata fields and shall keep nil in DeletedAt metadata field", func() { + Expect(entity.UserType(user.Type)).To(Equal(testUserType)) + Expect(user.Metadata).To(Not(BeNil())) + Expect(*user.Metadata.CreatedBy).To(Equal(testCreatedBy)) + + createdAt, err := time.Parse(dbDateLayout, *user.Metadata.CreatedAt) + Expect(err).Should(BeNil()) + Expect(createdAt).Should(BeTemporally("~", time.Now().UTC(), 3*time.Second)) + + Expect(*user.Metadata.UpdatedBy).To(Equal(testUpdatedBy)) + + updatedAt, err := time.Parse(dbDateLayout, *user.Metadata.UpdatedAt) + Expect(err).Should(BeNil()) + Expect(updatedAt).Should(BeTemporally("~", time.Now().UTC(), 2*time.Second)) + Expect(updatedAt).Should(BeTemporally(">", createdAt)) + }) + }) + +}) diff --git a/internal/entity/activity.go b/internal/entity/activity.go index d637ec6c..356dffbb 100644 --- a/internal/entity/activity.go +++ b/internal/entity/activity.go @@ -34,7 +34,7 @@ var AllActivityStatusValues = []string{ } type Activity struct { - Info + Metadata Id int64 `json:"id"` Status ActivityStatusValue `json:"status"` Service *Service `json:"service,omitempty"` @@ -47,17 +47,17 @@ func (a *Activity) GetId() int64 { } type ActivityHasIssue struct { - Info + Metadata ActivityId int64 `json:"activity_id"` IssueId int64 `json:"issue_id"` } type ActivityAggregations struct { - Info + Metadata } type ActivityFilter struct { - Info + Metadata Paginated Status []*string `json:"status"` ServiceName []*string `json:"service_name"` diff --git a/internal/entity/common.go b/internal/entity/common.go index be47aa81..547d9185 100644 --- a/internal/entity/common.go +++ b/internal/entity/common.go @@ -93,7 +93,7 @@ type ResultList struct { } type ListOptions struct { - Info + Metadata ShowTotalCount bool `json:"show_total_count"` ShowPageInfo bool `json:"show_page_info"` IncludeAggregations bool `json:"include_aggregations"` @@ -108,7 +108,7 @@ func NewListOptions() *ListOptions { } type PageInfo struct { - Info + Metadata HasNextPage *bool `json:"has_next_page,omitempty"` HasPreviousPage *bool `json:"has_previous_page,omitempty"` IsValidPage *bool `json:"is_valid_page,omitempty"` @@ -120,7 +120,7 @@ type PageInfo struct { } type Page struct { - Info + Metadata After *string `json:"after,omitempty"` PageNumber *int `json:"page_number,omitempty"` IsCurrent bool `json:"is_current,omitempty"` @@ -134,13 +134,13 @@ type List[T interface{}] struct { } type TimeFilter struct { - Info + Metadata After time.Time `json:"after"` Before time.Time `json:"before"` } type Paginated struct { - Info + Metadata First *int `json:"first"` After *int64 `json:"from"` } @@ -152,7 +152,7 @@ func MaxPaginated() Paginated { } type Severity struct { - Info + Metadata Value string Score float64 Cvss Cvss @@ -194,14 +194,14 @@ func NewSeverity(url string) Severity { } type Cvss struct { - Info + Metadata Vector string Base *metric.Base Temporal *metric.Temporal Environmental *metric.Environmental } -type Info struct { +type Metadata struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` UpdatedAt time.Time `json:"updated_at"` diff --git a/internal/entity/component.go b/internal/entity/component.go index 17efa12a..b10dbe09 100644 --- a/internal/entity/component.go +++ b/internal/entity/component.go @@ -4,7 +4,7 @@ package entity type Component struct { - Info + Metadata Id int64 `json:"id"` Name string `json:"name"` Type string `json:"type"` @@ -17,7 +17,7 @@ type ComponentResult struct { } type ComponentFilter struct { - Info + Metadata Paginated Name []*string `json:"name"` Id []*int64 `json:"id"` @@ -25,4 +25,5 @@ type ComponentFilter struct { } type ComponentAggregations struct { + Metadata } diff --git a/internal/entity/component_instance.go b/internal/entity/component_instance.go index 36fd81f4..5340766e 100644 --- a/internal/entity/component_instance.go +++ b/internal/entity/component_instance.go @@ -4,7 +4,7 @@ package entity type ComponentInstanceFilter struct { - Info + Metadata Paginated IssueMatchId []*int64 `json:"issue_match_id"` ServiceId []*int64 `json:"service_id"` @@ -13,7 +13,7 @@ type ComponentInstanceFilter struct { } type ComponentInstanceAggregations struct { - Info + Metadata } type ComponentInstanceResult struct { @@ -23,7 +23,7 @@ type ComponentInstanceResult struct { } type ComponentInstance struct { - Info + Metadata Id int64 `json:"id"` CCRN string `json:"ccrn"` Count int16 `json:"count"` diff --git a/internal/entity/component_version.go b/internal/entity/component_version.go index 768fcb1d..06cb7fd7 100644 --- a/internal/entity/component_version.go +++ b/internal/entity/component_version.go @@ -4,7 +4,7 @@ package entity type ComponentVersionFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` IssueId []*int64 `json:"issue_id"` @@ -13,7 +13,7 @@ type ComponentVersionFilter struct { } type ComponentVersionAggregations struct { - Info + Metadata } type ComponentVersionResult struct { @@ -23,7 +23,7 @@ type ComponentVersionResult struct { } type ComponentVersion struct { - Info + Metadata Id int64 `json:"id"` Version string `json:"version"` Component *Component `json:"component,omitempty"` diff --git a/internal/entity/evidence.go b/internal/entity/evidence.go index a708ef6b..e68f93fb 100644 --- a/internal/entity/evidence.go +++ b/internal/entity/evidence.go @@ -42,7 +42,7 @@ var AllEvidenceTypeValues = []string{ } type Evidence struct { - Info + Metadata Id int64 `json:"id"` Description string `json:"description"` Type EvidenceType `json:"type"` @@ -55,7 +55,7 @@ type Evidence struct { } type EvidenceFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` ActivityId []*int64 `json:"activity_id"` @@ -63,7 +63,7 @@ type EvidenceFilter struct { UserId []*int64 `json:"user_id"` } type EvidenceAggregations struct { - Info + Metadata } type EvidenceResult struct { diff --git a/internal/entity/issue.go b/internal/entity/issue.go index 7eb80503..abf3b66e 100644 --- a/internal/entity/issue.go +++ b/internal/entity/issue.go @@ -8,7 +8,7 @@ import ( ) type IssueWithAggregations struct { - Info + Metadata IssueAggregations Issue } @@ -51,7 +51,7 @@ type IssueResult struct { } type IssueFilter struct { - Info + Metadata Paginated PrimaryName []*string `json:"primary_name"` ServiceName []*string `json:"service_name"` @@ -68,7 +68,7 @@ type IssueFilter struct { } type IssueAggregations struct { - Info + Metadata Activites int64 IssueMatches int64 AffectedServices int64 @@ -79,7 +79,7 @@ type IssueAggregations struct { } type Issue struct { - Info + Metadata Id int64 `json:"id"` Type IssueType `json:"type"` PrimaryName string `json:"primary_name"` @@ -91,13 +91,13 @@ type Issue struct { } type IssueCount struct { - Info + Metadata Count int64 `json:"count"` Type IssueType `json:"type"` } type IssueTypeCounts struct { - Info + Metadata VulnerabilityCount int64 `json:"vulnerability_count"` PolicyViolationCount int64 `json:"policy_violation_count"` SecurityEventCount int64 `json:"security_event_count"` diff --git a/internal/entity/issue_match.go b/internal/entity/issue_match.go index e5d95609..8206ad49 100644 --- a/internal/entity/issue_match.go +++ b/internal/entity/issue_match.go @@ -39,7 +39,7 @@ var AllIssueMatchStatusValues = []string{ } type IssueMatch struct { - Info + Metadata Id int64 `json:"id"` Status IssueMatchStatusValue `json:"status"` User *User `json:"user,omitempty"` @@ -55,7 +55,7 @@ type IssueMatch struct { } type IssueMatchFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` AffectedServiceName []*string `json:"affected_service_name"` diff --git a/internal/entity/issue_match_change.go b/internal/entity/issue_match_change.go index ea66f9db..69122b36 100644 --- a/internal/entity/issue_match_change.go +++ b/internal/entity/issue_match_change.go @@ -30,7 +30,7 @@ var AllIssueMatchChangeActions = []string{ } type IssueMatchChange struct { - Info + Metadata Id int64 `json:"id"` ActivityId int64 `json:"activity_id"` Activity *Activity @@ -40,7 +40,7 @@ type IssueMatchChange struct { } type IssueMatchChangeFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` ActivityId []*int64 `json:"activity_id"` diff --git a/internal/entity/issue_repository.go b/internal/entity/issue_repository.go index 2577d96f..3d259e3e 100644 --- a/internal/entity/issue_repository.go +++ b/internal/entity/issue_repository.go @@ -4,7 +4,7 @@ package entity type BaseIssueRepository struct { - Info + Metadata Id int64 `json:"id"` Name string `json:"name"` Url string `json:"url"` @@ -13,7 +13,7 @@ type BaseIssueRepository struct { } type IssueRepositoryFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` ServiceId []*int64 `json:"service_id"` @@ -35,11 +35,11 @@ func NewIssueRepositoryFilter() *IssueRepositoryFilter { } type IssueRepositoryAggregations struct { - Info + Metadata } type IssueRepository struct { - Info + Metadata BaseIssueRepository IssueRepositoryService } diff --git a/internal/entity/issue_repository_service.go b/internal/entity/issue_repository_service.go index 83b40703..5005b841 100644 --- a/internal/entity/issue_repository_service.go +++ b/internal/entity/issue_repository_service.go @@ -4,7 +4,7 @@ package entity type IssueRepositoryService struct { - Info + Metadata ServiceId int64 `json:"service_id"` IssueRepositoryId int64 `json:"issue_repository_id"` Priority int64 `json:"priority"` diff --git a/internal/entity/issue_variant.go b/internal/entity/issue_variant.go index 745ab991..8408894e 100644 --- a/internal/entity/issue_variant.go +++ b/internal/entity/issue_variant.go @@ -4,7 +4,7 @@ package entity type IssueVariant struct { - Info + Metadata Id int64 `json:"id"` IssueRepositoryId int64 `json:"issue_repository_id"` IssueRepository *IssueRepository `json:"issue_repository"` @@ -16,7 +16,7 @@ type IssueVariant struct { } type IssueVariantFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` SecondaryName []*string `json:"secondary_name"` @@ -42,7 +42,7 @@ func NewIssueVariantFilter() *IssueVariantFilter { } type IssueVariantAggregations struct { - Info + Metadata } type IssueVariantResult struct { diff --git a/internal/entity/service.go b/internal/entity/service.go index ee62309a..5735bfa3 100644 --- a/internal/entity/service.go +++ b/internal/entity/service.go @@ -4,7 +4,7 @@ package entity type BaseService struct { - Info + Metadata Id int64 `json:"id"` Name string `json:"name"` SupportGroup *SupportGroup `json:"support_group,omitempty"` @@ -15,11 +15,11 @@ type BaseService struct { } type ServiceAggregations struct { - Info + Metadata } type ServiceFilter struct { - Info + Metadata Paginated SupportGroupName []*string `json:"support_group_name"` Id []*int64 `json:"id"` @@ -34,7 +34,7 @@ type ServiceFilter struct { } type Service struct { - Info + Metadata BaseService IssueRepositoryService } diff --git a/internal/entity/severity.go b/internal/entity/severity.go index bc9a7b26..83e88b96 100644 --- a/internal/entity/severity.go +++ b/internal/entity/severity.go @@ -4,7 +4,7 @@ package entity type SeverityFilter struct { - Info + Metadata IssueMatchId []*int64 `json:"issue_match_id"` IssueId []*int64 `json:"issue_id"` } diff --git a/internal/entity/support_group.go b/internal/entity/support_group.go index 7a94d65e..eb307517 100644 --- a/internal/entity/support_group.go +++ b/internal/entity/support_group.go @@ -4,13 +4,13 @@ package entity type SupportGroup struct { - Info + Metadata Id int64 `json:"id"` Name string `json:"name"` } type SupportGroupFilter struct { - Info + Metadata Paginated Id []*int64 `json:"id"` ServiceId []*int64 `json:"service_id"` @@ -19,7 +19,7 @@ type SupportGroupFilter struct { } type SupportGroupAggregations struct { - Info + Metadata } type SupportGroupResult struct { diff --git a/internal/entity/support_group_service.go b/internal/entity/support_group_service.go index af070b4f..b098a564 100644 --- a/internal/entity/support_group_service.go +++ b/internal/entity/support_group_service.go @@ -4,7 +4,7 @@ package entity type SupportGroupService struct { - Info + Metadata SupportGroupId int64 `json:"support_group_id"` ServiceId int64 `json:"service_id"` } diff --git a/internal/entity/support_group_user.go b/internal/entity/support_group_user.go index 2c781add..d811acff 100644 --- a/internal/entity/support_group_user.go +++ b/internal/entity/support_group_user.go @@ -4,7 +4,7 @@ package entity type SupportGroupUser struct { - Info + Metadata SupportGroupId int64 `json:"support_group_id"` UserId int64 `json:"user_id"` } diff --git a/internal/entity/test/activity.go b/internal/entity/test/activity.go index 4df12e1e..da70be19 100644 --- a/internal/entity/test/activity.go +++ b/internal/entity/test/activity.go @@ -15,7 +15,7 @@ func NewFakeActivityEntity() entity.Activity { Issues: nil, Evidences: nil, Service: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/component.go b/internal/entity/test/component.go index fcac3f6b..c11b3f95 100644 --- a/internal/entity/test/component.go +++ b/internal/entity/test/component.go @@ -13,7 +13,7 @@ func NewFakeComponentEntity() entity.Component { Id: int64(gofakeit.Number(1, 10000000)), Name: gofakeit.Name(), Type: gofakeit.Word(), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/component_instance.go b/internal/entity/test/component_instance.go index 12052b5f..d34fc3c4 100644 --- a/internal/entity/test/component_instance.go +++ b/internal/entity/test/component_instance.go @@ -17,7 +17,7 @@ func NewFakeComponentInstanceEntity() entity.ComponentInstance { ComponentVersionId: int64(gofakeit.Number(1, 10000000)), Service: nil, ServiceId: int64(gofakeit.Number(1, 10000000)), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/component_version.go b/internal/entity/test/component_version.go index 97848fdf..07fff6d2 100644 --- a/internal/entity/test/component_version.go +++ b/internal/entity/test/component_version.go @@ -15,7 +15,7 @@ func NewFakeComponentVersionEntity() entity.ComponentVersion { ComponentId: 0, ComponentInstances: nil, Issues: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/evidence.go b/internal/entity/test/evidence.go index 4a1380a8..ea837675 100644 --- a/internal/entity/test/evidence.go +++ b/internal/entity/test/evidence.go @@ -19,7 +19,7 @@ func NewFakeEvidenceEntity() entity.Evidence { RaaEnd: gofakeit.Date(), Type: entity.NewEvidenceTypeValue(t), Severity: severity, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/issue.go b/internal/entity/test/issue.go index a6053737..a2f65147 100644 --- a/internal/entity/test/issue.go +++ b/internal/entity/test/issue.go @@ -22,7 +22,7 @@ func NewFakeIssueEntity() entity.Issue { IssueMatches: nil, ComponentVersions: nil, Activity: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/issue_match.go b/internal/entity/test/issue_match.go index a62ec3a8..45ecfc62 100644 --- a/internal/entity/test/issue_match.go +++ b/internal/entity/test/issue_match.go @@ -25,7 +25,7 @@ func NewFakeIssueMatch() entity.IssueMatch { Issue: nil, RemediationDate: gofakeit.Date(), TargetRemediationDate: gofakeit.Date(), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/issue_match_change.go b/internal/entity/test/issue_match_change.go index 83236092..b706a086 100644 --- a/internal/entity/test/issue_match_change.go +++ b/internal/entity/test/issue_match_change.go @@ -15,7 +15,7 @@ func NewFakeIssueMatchChange() entity.IssueMatchChange { Action: gofakeit.RandomString(actions), IssueMatch: nil, Activity: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/issue_repository.go b/internal/entity/test/issue_repository.go index a3511a01..f0c6ecf4 100644 --- a/internal/entity/test/issue_repository.go +++ b/internal/entity/test/issue_repository.go @@ -14,7 +14,7 @@ func NewFakeIssueRepositoryEntity() entity.IssueRepository { Id: int64(gofakeit.Number(1, 10000000)), Name: gofakeit.Noun(), Url: gofakeit.URL(), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/issue_variant.go b/internal/entity/test/issue_variant.go index 22df8d29..a3c4790e 100644 --- a/internal/entity/test/issue_variant.go +++ b/internal/entity/test/issue_variant.go @@ -21,7 +21,7 @@ func NewFakeIssueVariantEntity() entity.IssueVariant { Issue: nil, IssueRepositoryId: 0, IssueRepository: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/service.go b/internal/entity/test/service.go index 6a6aabb3..1e7cf98c 100644 --- a/internal/entity/test/service.go +++ b/internal/entity/test/service.go @@ -16,7 +16,7 @@ func NewFakeServiceEntity() entity.Service { SupportGroup: nil, Activities: nil, Owners: nil, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/support_group.go b/internal/entity/test/support_group.go index 9a6d6b02..508ff31a 100644 --- a/internal/entity/test/support_group.go +++ b/internal/entity/test/support_group.go @@ -12,7 +12,7 @@ func NewFakeSupportGroupEntity() entity.SupportGroup { return entity.SupportGroup{ Id: int64(gofakeit.Number(1, 10000000)), Name: gofakeit.AppName(), - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/test/user.go b/internal/entity/test/user.go index eb25ce79..0cf39c0e 100644 --- a/internal/entity/test/user.go +++ b/internal/entity/test/user.go @@ -17,7 +17,7 @@ func NewFakeUserEntity() entity.User { Name: gofakeit.Name(), UniqueUserID: uniqueUserId, Type: entity.HumanUserType, - Info: entity.Info{ + Metadata: entity.Metadata{ CreatedAt: gofakeit.Date(), DeletedAt: gofakeit.Date(), UpdatedAt: gofakeit.Date(), diff --git a/internal/entity/user.go b/internal/entity/user.go index 77c7a34f..da53a7ac 100644 --- a/internal/entity/user.go +++ b/internal/entity/user.go @@ -12,7 +12,7 @@ const ( ) type User struct { - Info + Metadata Id int64 `json:"id"` Name string `json:"name"` UniqueUserID string `json:"uniqueUserId"` @@ -20,7 +20,7 @@ type User struct { } type UserFilter struct { - Info + Metadata Paginated Name []*string `json:"name"` UniqueUserID []*string `json:"uniqueUserId"` @@ -31,7 +31,7 @@ type UserFilter struct { } type UserAggregations struct { - Info + Metadata } type UserResult struct {