aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/graphql/graph/bug.generated.go878
-rw-r--r--api/graphql/graph/bug_comment.generated.go854
-rw-r--r--api/graphql/graph/bug_mutations.generated.go (renamed from api/graphql/graph/mutations.generated.go)929
-rw-r--r--api/graphql/graph/bug_operations.generated.go (renamed from api/graphql/graph/operations.generated.go)1214
-rw-r--r--api/graphql/graph/bug_timeline.generated.go (renamed from api/graphql/graph/timeline.generated.go)782
-rw-r--r--api/graphql/graph/label.generated.go194
-rw-r--r--api/graphql/graph/operation.generated.go589
-rw-r--r--api/graphql/graph/root.generated.go312
-rw-r--r--api/graphql/graph/root_.generated.go2165
-rw-r--r--api/graphql/graph/status.generated.go53
-rw-r--r--api/graphql/graph/types.generated.go34
-rw-r--r--api/graphql/graphql_test.go16
-rw-r--r--api/graphql/models/edges.go4
-rw-r--r--api/graphql/models/gen_models.go224
-rw-r--r--api/graphql/models/models.go5
-rw-r--r--api/graphql/resolvers/bug.go24
-rw-r--r--api/graphql/resolvers/bug_operations.go61
-rw-r--r--api/graphql/resolvers/bug_root.go59
-rw-r--r--api/graphql/resolvers/bug_timeline.go94
-rw-r--r--api/graphql/resolvers/comment.go22
-rw-r--r--api/graphql/resolvers/identity.go4
-rw-r--r--api/graphql/resolvers/mutation.go36
-rw-r--r--api/graphql/resolvers/operations.go92
-rw-r--r--api/graphql/resolvers/root.go65
-rw-r--r--api/graphql/resolvers/timeline.go115
-rw-r--r--api/graphql/schema/bug.graphql35
-rw-r--r--api/graphql/schema/bug_comment.graphql26
-rw-r--r--api/graphql/schema/bug_mutations.graphql (renamed from api/graphql/schema/mutations.graphql)94
-rw-r--r--api/graphql/schema/bug_operations.graphql (renamed from api/graphql/schema/operations.graphql)58
-rw-r--r--api/graphql/schema/bug_timeline.graphql93
-rw-r--r--api/graphql/schema/directives.graphql18
-rw-r--r--api/graphql/schema/identity.graphql2
-rw-r--r--api/graphql/schema/label.graphql17
-rw-r--r--api/graphql/schema/operation.graphql25
-rw-r--r--api/graphql/schema/repository.graphql1
-rw-r--r--api/graphql/schema/root.graphql21
-rw-r--r--api/graphql/schema/status.graphql4
-rw-r--r--api/graphql/schema/timeline.graphql86
-rw-r--r--api/graphql/tracer.go28
39 files changed, 4572 insertions, 4761 deletions
diff --git a/api/graphql/graph/bug.generated.go b/api/graphql/graph/bug.generated.go
index 49ce3e4a..200b9591 100644
--- a/api/graphql/graph/bug.generated.go
+++ b/api/graphql/graph/bug.generated.go
@@ -13,10 +13,8 @@ import (
"github.com/99designs/gqlgen/graphql"
"github.com/git-bug/git-bug/api/graphql/models"
- "github.com/git-bug/git-bug/entities/bug"
"github.com/git-bug/git-bug/entities/common"
"github.com/git-bug/git-bug/entity"
- "github.com/git-bug/git-bug/repository"
"github.com/vektah/gqlparser/v2/ast"
)
@@ -27,14 +25,10 @@ type BugResolver interface {
Actors(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error)
Participants(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error)
- Comments(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.CommentConnection, error)
- Timeline(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.TimelineItemConnection, error)
+ Comments(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.BugCommentConnection, error)
+ Timeline(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.BugTimelineItemConnection, error)
Operations(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.OperationConnection, error)
}
-type CommentResolver interface {
- ID(ctx context.Context, obj *bug.Comment) (entity.CombinedId, error)
- Author(ctx context.Context, obj *bug.Comment) (models.IdentityWrapper, error)
-}
// endregion ************************** generated!.gotpl **************************
@@ -790,9 +784,9 @@ func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.Col
}
return graphql.Null
}
- res := resTmp.(*models.CommentConnection)
+ res := resTmp.(*models.BugCommentConnection)
fc.Result = res
- return ec.marshalNCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentConnection(ctx, field.Selections, res)
+ return ec.marshalNBugCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentConnection(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Bug_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
@@ -804,15 +798,15 @@ func (ec *executionContext) fieldContext_Bug_comments(ctx context.Context, field
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "edges":
- return ec.fieldContext_CommentConnection_edges(ctx, field)
+ return ec.fieldContext_BugCommentConnection_edges(ctx, field)
case "nodes":
- return ec.fieldContext_CommentConnection_nodes(ctx, field)
+ return ec.fieldContext_BugCommentConnection_nodes(ctx, field)
case "pageInfo":
- return ec.fieldContext_CommentConnection_pageInfo(ctx, field)
+ return ec.fieldContext_BugCommentConnection_pageInfo(ctx, field)
case "totalCount":
- return ec.fieldContext_CommentConnection_totalCount(ctx, field)
+ return ec.fieldContext_BugCommentConnection_totalCount(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type CommentConnection", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugCommentConnection", field.Name)
},
}
defer func() {
@@ -855,9 +849,9 @@ func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.Col
}
return graphql.Null
}
- res := resTmp.(*models.TimelineItemConnection)
+ res := resTmp.(*models.BugTimelineItemConnection)
fc.Result = res
- return ec.marshalNTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemConnection(ctx, field.Selections, res)
+ return ec.marshalNBugTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemConnection(ctx, field.Selections, res)
}
func (ec *executionContext) fieldContext_Bug_timeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
@@ -869,15 +863,15 @@ func (ec *executionContext) fieldContext_Bug_timeline(ctx context.Context, field
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "edges":
- return ec.fieldContext_TimelineItemConnection_edges(ctx, field)
+ return ec.fieldContext_BugTimelineItemConnection_edges(ctx, field)
case "nodes":
- return ec.fieldContext_TimelineItemConnection_nodes(ctx, field)
+ return ec.fieldContext_BugTimelineItemConnection_nodes(ctx, field)
case "pageInfo":
- return ec.fieldContext_TimelineItemConnection_pageInfo(ctx, field)
+ return ec.fieldContext_BugTimelineItemConnection_pageInfo(ctx, field)
case "totalCount":
- return ec.fieldContext_TimelineItemConnection_totalCount(ctx, field)
+ return ec.fieldContext_BugTimelineItemConnection_totalCount(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type TimelineItemConnection", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugTimelineItemConnection", field.Name)
},
}
defer func() {
@@ -1295,500 +1289,6 @@ func (ec *executionContext) fieldContext_BugEdge_node(_ context.Context, field g
return fc, nil
}
-func (ec *executionContext) _Comment_id(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Comment_id(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.Comment().ID(rctx, obj)
- })
- 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.(entity.CombinedId)
- fc.Result = res
- return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_Comment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "Comment",
- Field: field,
- IsMethod: true,
- IsResolver: true,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- return nil, errors.New("field of type CombinedId does not have child fields")
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _Comment_author(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Comment_author(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.Comment().Author(rctx, obj)
- })
- 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.(models.IdentityWrapper)
- fc.Result = res
- return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_Comment_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "Comment",
- 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_Identity_id(ctx, field)
- case "humanId":
- return ec.fieldContext_Identity_humanId(ctx, field)
- case "name":
- return ec.fieldContext_Identity_name(ctx, field)
- case "email":
- return ec.fieldContext_Identity_email(ctx, field)
- case "login":
- return ec.fieldContext_Identity_login(ctx, field)
- case "displayName":
- return ec.fieldContext_Identity_displayName(ctx, field)
- case "avatarUrl":
- return ec.fieldContext_Identity_avatarUrl(ctx, field)
- case "isProtected":
- return ec.fieldContext_Identity_isProtected(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _Comment_message(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Comment_message(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.Message, 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)
- fc.Result = res
- return ec.marshalNString2string(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_Comment_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "Comment",
- 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) _Comment_files(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Comment_files(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.Files, 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.([]repository.Hash)
- fc.Result = res
- return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_Comment_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "Comment",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- return nil, errors.New("field of type Hash does not have child fields")
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentConnection_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 {
- if !graphql.HasFieldError(ctx, fc) {
- ec.Errorf(ctx, "must not be null")
- }
- return graphql.Null
- }
- res := resTmp.([]*models.CommentEdge)
- fc.Result = res
- return ec.marshalNCommentEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentEdgeᚄ(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_CommentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentConnection",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- switch field.Name {
- case "cursor":
- return ec.fieldContext_CommentEdge_cursor(ctx, field)
- case "node":
- return ec.fieldContext_CommentEdge_node(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type CommentEdge", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentConnection_nodes(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.Nodes, 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.([]*bug.Comment)
- fc.Result = res
- return ec.marshalNComment2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentᚄ(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_CommentConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentConnection",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- switch field.Name {
- case "id":
- return ec.fieldContext_Comment_id(ctx, field)
- case "author":
- return ec.fieldContext_Comment_author(ctx, field)
- case "message":
- return ec.fieldContext_Comment_message(ctx, field)
- case "files":
- return ec.fieldContext_Comment_files(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type Comment", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _CommentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentConnection_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 {
- if !graphql.HasFieldError(ctx, fc) {
- ec.Errorf(ctx, "must not be null")
- }
- return graphql.Null
- }
- res := resTmp.(*models.PageInfo)
- fc.Result = res
- return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_CommentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentConnection",
- 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 "startCursor":
- return ec.fieldContext_PageInfo_startCursor(ctx, field)
- case "endCursor":
- return ec.fieldContext_PageInfo_endCursor(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _CommentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentConnection_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_CommentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentConnection",
- 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) _CommentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentEdge_cursor(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.Cursor, 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)
- fc.Result = res
- return ec.marshalNString2string(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_CommentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentEdge",
- 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) _CommentEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentEdge_node(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.Node, 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.(*bug.Comment)
- fc.Result = res
- return ec.marshalNComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_CommentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "CommentEdge",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- switch field.Name {
- case "id":
- return ec.fieldContext_Comment_id(ctx, field)
- case "author":
- return ec.fieldContext_Comment_author(ctx, field)
- case "message":
- return ec.fieldContext_Comment_message(ctx, field)
- case "files":
- return ec.fieldContext_Comment_files(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type Comment", field.Name)
- },
- }
- return fc, nil
-}
-
// endregion **************************** field.gotpl *****************************
// region **************************** input.gotpl *****************************
@@ -2184,220 +1684,6 @@ func (ec *executionContext) _BugEdge(ctx context.Context, sel ast.SelectionSet,
return out
}
-var commentImplementors = []string{"Comment", "Authored"}
-
-func (ec *executionContext) _Comment(ctx context.Context, sel ast.SelectionSet, obj *bug.Comment) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, commentImplementors)
-
- 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("Comment")
- case "id":
- 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._Comment_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // 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 "author":
- 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._Comment_author(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // 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 "message":
- out.Values[i] = ec._Comment_message(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- atomic.AddUint32(&out.Invalids, 1)
- }
- case "files":
- out.Values[i] = ec._Comment_files(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- atomic.AddUint32(&out.Invalids, 1)
- }
- 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 commentConnectionImplementors = []string{"CommentConnection"}
-
-func (ec *executionContext) _CommentConnection(ctx context.Context, sel ast.SelectionSet, obj *models.CommentConnection) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, commentConnectionImplementors)
-
- 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("CommentConnection")
- case "edges":
- out.Values[i] = ec._CommentConnection_edges(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "nodes":
- out.Values[i] = ec._CommentConnection_nodes(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "pageInfo":
- out.Values[i] = ec._CommentConnection_pageInfo(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "totalCount":
- out.Values[i] = ec._CommentConnection_totalCount(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
- }
-
- 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 commentEdgeImplementors = []string{"CommentEdge"}
-
-func (ec *executionContext) _CommentEdge(ctx context.Context, sel ast.SelectionSet, obj *models.CommentEdge) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, commentEdgeImplementors)
-
- 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("CommentEdge")
- case "cursor":
- out.Values[i] = ec._CommentEdge_cursor(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "node":
- out.Values[i] = ec._CommentEdge_node(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
- }
-
- 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
-}
-
// endregion **************************** object.gotpl ****************************
// region ***************************** type.gotpl *****************************
@@ -2524,138 +1810,6 @@ func (ec *executionContext) marshalNBugEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑ
return ec._BugEdge(ctx, sel, v)
}
-func (ec *executionContext) marshalNComment2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentᚄ(ctx context.Context, sel ast.SelectionSet, v []*bug.Comment) graphql.Marshaler {
- ret := make(graphql.Array, len(v))
- var wg sync.WaitGroup
- isLen1 := len(v) == 1
- if !isLen1 {
- wg.Add(len(v))
- }
- for i := range v {
- i := i
- fc := &graphql.FieldContext{
- Index: &i,
- Result: &v[i],
- }
- ctx := graphql.WithFieldContext(ctx, fc)
- f := func(i int) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- ret = nil
- }
- }()
- if !isLen1 {
- defer wg.Done()
- }
- ret[i] = ec.marshalNComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx, sel, v[i])
- }
- if isLen1 {
- f(i)
- } else {
- go f(i)
- }
-
- }
- wg.Wait()
-
- for _, e := range ret {
- if e == graphql.Null {
- return graphql.Null
- }
- }
-
- return ret
-}
-
-func (ec *executionContext) marshalNComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx context.Context, sel ast.SelectionSet, v *bug.Comment) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._Comment(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNCommentConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentConnection(ctx context.Context, sel ast.SelectionSet, v models.CommentConnection) graphql.Marshaler {
- return ec._CommentConnection(ctx, sel, &v)
-}
-
-func (ec *executionContext) marshalNCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentConnection(ctx context.Context, sel ast.SelectionSet, v *models.CommentConnection) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._CommentConnection(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNCommentEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.CommentEdge) graphql.Marshaler {
- ret := make(graphql.Array, len(v))
- var wg sync.WaitGroup
- isLen1 := len(v) == 1
- if !isLen1 {
- wg.Add(len(v))
- }
- for i := range v {
- i := i
- fc := &graphql.FieldContext{
- Index: &i,
- Result: &v[i],
- }
- ctx := graphql.WithFieldContext(ctx, fc)
- f := func(i int) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- ret = nil
- }
- }()
- if !isLen1 {
- defer wg.Done()
- }
- ret[i] = ec.marshalNCommentEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentEdge(ctx, sel, v[i])
- }
- if isLen1 {
- f(i)
- } else {
- go f(i)
- }
-
- }
- wg.Wait()
-
- for _, e := range ret {
- if e == graphql.Null {
- return graphql.Null
- }
- }
-
- return ret
-}
-
-func (ec *executionContext) marshalNCommentEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCommentEdge(ctx context.Context, sel ast.SelectionSet, v *models.CommentEdge) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._CommentEdge(ctx, sel, v)
-}
-
-func (ec *executionContext) unmarshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx context.Context, v interface{}) (common.Status, error) {
- var res common.Status
- err := res.UnmarshalGQL(v)
- return res, graphql.ErrorOnPath(ctx, err)
-}
-
-func (ec *executionContext) marshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx context.Context, sel ast.SelectionSet, v common.Status) graphql.Marshaler {
- return v
-}
-
func (ec *executionContext) marshalOBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx context.Context, sel ast.SelectionSet, v models.BugWrapper) graphql.Marshaler {
if v == nil {
return graphql.Null
diff --git a/api/graphql/graph/bug_comment.generated.go b/api/graphql/graph/bug_comment.generated.go
new file mode 100644
index 00000000..139d74fe
--- /dev/null
+++ b/api/graphql/graph/bug_comment.generated.go
@@ -0,0 +1,854 @@
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
+
+package graph
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "strconv"
+ "sync"
+ "sync/atomic"
+
+ "github.com/99designs/gqlgen/graphql"
+ "github.com/git-bug/git-bug/api/graphql/models"
+ "github.com/git-bug/git-bug/entities/bug"
+ "github.com/git-bug/git-bug/entity"
+ "github.com/git-bug/git-bug/repository"
+ "github.com/vektah/gqlparser/v2/ast"
+)
+
+// region ************************** generated!.gotpl **************************
+
+type BugCommentResolver interface {
+ Author(ctx context.Context, obj *bug.Comment) (models.IdentityWrapper, error)
+}
+
+// endregion ************************** generated!.gotpl **************************
+
+// region ***************************** args.gotpl *****************************
+
+// endregion ***************************** args.gotpl *****************************
+
+// region ************************** directives.gotpl **************************
+
+// endregion ************************** directives.gotpl **************************
+
+// region **************************** field.gotpl *****************************
+
+func (ec *executionContext) _BugComment_id(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugComment_id(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.CombinedId(), 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.(entity.CombinedId)
+ fc.Result = res
+ return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugComment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugComment",
+ Field: field,
+ IsMethod: true,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ return nil, errors.New("field of type CombinedId does not have child fields")
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugComment_author(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugComment_author(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.BugComment().Author(rctx, obj)
+ })
+ 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.(models.IdentityWrapper)
+ fc.Result = res
+ return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugComment_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugComment",
+ 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_Identity_id(ctx, field)
+ case "humanId":
+ return ec.fieldContext_Identity_humanId(ctx, field)
+ case "name":
+ return ec.fieldContext_Identity_name(ctx, field)
+ case "email":
+ return ec.fieldContext_Identity_email(ctx, field)
+ case "login":
+ return ec.fieldContext_Identity_login(ctx, field)
+ case "displayName":
+ return ec.fieldContext_Identity_displayName(ctx, field)
+ case "avatarUrl":
+ return ec.fieldContext_Identity_avatarUrl(ctx, field)
+ case "isProtected":
+ return ec.fieldContext_Identity_isProtected(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugComment_message(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugComment_message(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.Message, 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)
+ fc.Result = res
+ return ec.marshalNString2string(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugComment_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugComment",
+ 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) _BugComment_files(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugComment_files(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.Files, 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.([]repository.Hash)
+ fc.Result = res
+ return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugComment_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugComment",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ return nil, errors.New("field of type Hash does not have child fields")
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugCommentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentConnection_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 {
+ if !graphql.HasFieldError(ctx, fc) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.([]*models.BugCommentEdge)
+ fc.Result = res
+ return ec.marshalNBugCommentEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentEdgeᚄ(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugCommentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentConnection",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ switch field.Name {
+ case "cursor":
+ return ec.fieldContext_BugCommentEdge_cursor(ctx, field)
+ case "node":
+ return ec.fieldContext_BugCommentEdge_node(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type BugCommentEdge", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugCommentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentConnection_nodes(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.Nodes, 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.([]*bug.Comment)
+ fc.Result = res
+ return ec.marshalNBugComment2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentᚄ(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugCommentConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentConnection",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ switch field.Name {
+ case "id":
+ return ec.fieldContext_BugComment_id(ctx, field)
+ case "author":
+ return ec.fieldContext_BugComment_author(ctx, field)
+ case "message":
+ return ec.fieldContext_BugComment_message(ctx, field)
+ case "files":
+ return ec.fieldContext_BugComment_files(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type BugComment", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugCommentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentConnection_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 {
+ if !graphql.HasFieldError(ctx, fc) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.(*models.PageInfo)
+ fc.Result = res
+ return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugCommentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentConnection",
+ 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 "startCursor":
+ return ec.fieldContext_PageInfo_startCursor(ctx, field)
+ case "endCursor":
+ return ec.fieldContext_PageInfo_endCursor(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _BugCommentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentConnection_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_BugCommentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentConnection",
+ 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) _BugCommentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentEdge_cursor(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.Cursor, 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)
+ fc.Result = res
+ return ec.marshalNString2string(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugCommentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentEdge",
+ 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) _BugCommentEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.BugCommentEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentEdge_node(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.Node, 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.(*bug.Comment)
+ fc.Result = res
+ return ec.marshalNBugComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_BugCommentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "BugCommentEdge",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ switch field.Name {
+ case "id":
+ return ec.fieldContext_BugComment_id(ctx, field)
+ case "author":
+ return ec.fieldContext_BugComment_author(ctx, field)
+ case "message":
+ return ec.fieldContext_BugComment_message(ctx, field)
+ case "files":
+ return ec.fieldContext_BugComment_files(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type BugComment", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+// endregion **************************** field.gotpl *****************************
+
+// region **************************** input.gotpl *****************************
+
+// endregion **************************** input.gotpl *****************************
+
+// region ************************** interface.gotpl ***************************
+
+// endregion ************************** interface.gotpl ***************************
+
+// region **************************** object.gotpl ****************************
+
+var bugCommentImplementors = []string{"BugComment", "Authored"}
+
+func (ec *executionContext) _BugComment(ctx context.Context, sel ast.SelectionSet, obj *bug.Comment) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCommentImplementors)
+
+ 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("BugComment")
+ case "id":
+ out.Values[i] = ec._BugComment_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
+ }
+ case "author":
+ 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._BugComment_author(ctx, field, obj)
+ if res == graphql.Null {
+ atomic.AddUint32(&fs.Invalids, 1)
+ }
+ 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 innerFunc(ctx, dfs)
+ })
+
+ // 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 "message":
+ out.Values[i] = ec._BugComment_message(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
+ }
+ case "files":
+ out.Values[i] = ec._BugComment_files(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
+ }
+ 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 bugCommentConnectionImplementors = []string{"BugCommentConnection"}
+
+func (ec *executionContext) _BugCommentConnection(ctx context.Context, sel ast.SelectionSet, obj *models.BugCommentConnection) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCommentConnectionImplementors)
+
+ 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("BugCommentConnection")
+ case "edges":
+ out.Values[i] = ec._BugCommentConnection_edges(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "nodes":
+ out.Values[i] = ec._BugCommentConnection_nodes(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "pageInfo":
+ out.Values[i] = ec._BugCommentConnection_pageInfo(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "totalCount":
+ out.Values[i] = ec._BugCommentConnection_totalCount(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
+ }
+
+ 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 bugCommentEdgeImplementors = []string{"BugCommentEdge"}
+
+func (ec *executionContext) _BugCommentEdge(ctx context.Context, sel ast.SelectionSet, obj *models.BugCommentEdge) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCommentEdgeImplementors)
+
+ 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("BugCommentEdge")
+ case "cursor":
+ out.Values[i] = ec._BugCommentEdge_cursor(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "node":
+ out.Values[i] = ec._BugCommentEdge_node(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
+ }
+
+ 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
+}
+
+// endregion **************************** object.gotpl ****************************
+
+// region ***************************** type.gotpl *****************************
+
+func (ec *executionContext) marshalNBugComment2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentᚄ(ctx context.Context, sel ast.SelectionSet, v []*bug.Comment) graphql.Marshaler {
+ ret := make(graphql.Array, len(v))
+ var wg sync.WaitGroup
+ isLen1 := len(v) == 1
+ if !isLen1 {
+ wg.Add(len(v))
+ }
+ for i := range v {
+ i := i
+ fc := &graphql.FieldContext{
+ Index: &i,
+ Result: &v[i],
+ }
+ ctx := graphql.WithFieldContext(ctx, fc)
+ f := func(i int) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = nil
+ }
+ }()
+ if !isLen1 {
+ defer wg.Done()
+ }
+ ret[i] = ec.marshalNBugComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx, sel, v[i])
+ }
+ if isLen1 {
+ f(i)
+ } else {
+ go f(i)
+ }
+
+ }
+ wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
+ return ret
+}
+
+func (ec *executionContext) marshalNBugComment2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐComment(ctx context.Context, sel ast.SelectionSet, v *bug.Comment) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._BugComment(ctx, sel, v)
+}
+
+func (ec *executionContext) marshalNBugCommentConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentConnection(ctx context.Context, sel ast.SelectionSet, v models.BugCommentConnection) graphql.Marshaler {
+ return ec._BugCommentConnection(ctx, sel, &v)
+}
+
+func (ec *executionContext) marshalNBugCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentConnection(ctx context.Context, sel ast.SelectionSet, v *models.BugCommentConnection) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._BugCommentConnection(ctx, sel, v)
+}
+
+func (ec *executionContext) marshalNBugCommentEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.BugCommentEdge) graphql.Marshaler {
+ ret := make(graphql.Array, len(v))
+ var wg sync.WaitGroup
+ isLen1 := len(v) == 1
+ if !isLen1 {
+ wg.Add(len(v))
+ }
+ for i := range v {
+ i := i
+ fc := &graphql.FieldContext{
+ Index: &i,
+ Result: &v[i],
+ }
+ ctx := graphql.WithFieldContext(ctx, fc)
+ f := func(i int) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = nil
+ }
+ }()
+ if !isLen1 {
+ defer wg.Done()
+ }
+ ret[i] = ec.marshalNBugCommentEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentEdge(ctx, sel, v[i])
+ }
+ if isLen1 {
+ f(i)
+ } else {
+ go f(i)
+ }
+
+ }
+ wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
+ return ret
+}
+
+func (ec *executionContext) marshalNBugCommentEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentEdge(ctx context.Context, sel ast.SelectionSet, v *models.BugCommentEdge) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._BugCommentEdge(ctx, sel, v)
+}
+
+// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/mutations.generated.go b/api/graphql/graph/bug_mutations.generated.go
index 48a31d2a..14d4d553 100644
--- a/api/graphql/graph/mutations.generated.go
+++ b/api/graphql/graph/bug_mutations.generated.go
@@ -7,13 +7,11 @@ import (
"errors"
"fmt"
"strconv"
- "sync"
"sync/atomic"
"github.com/99designs/gqlgen/graphql"
"github.com/git-bug/git-bug/api/graphql/models"
"github.com/git-bug/git-bug/entities/bug"
- "github.com/git-bug/git-bug/entities/common"
"github.com/vektah/gqlparser/v2/ast"
)
@@ -31,8 +29,8 @@ import (
// region **************************** field.gotpl *****************************
-func (ec *executionContext) _AddCommentAndCloseBugPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndCloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndCloseBugPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugAddCommentAndClosePayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndClosePayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -59,9 +57,9 @@ func (ec *executionContext) _AddCommentAndCloseBugPayload_clientMutationId(ctx c
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndClosePayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndCloseBugPayload",
+ Object: "BugAddCommentAndClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -72,8 +70,8 @@ func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_clientMuta
return fc, nil
}
-func (ec *executionContext) _AddCommentAndCloseBugPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndCloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndCloseBugPayload_bug(ctx, field)
+func (ec *executionContext) _BugAddCommentAndClosePayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndClosePayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -103,9 +101,9 @@ func (ec *executionContext) _AddCommentAndCloseBugPayload_bug(ctx context.Contex
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndClosePayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndCloseBugPayload",
+ Object: "BugAddCommentAndClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -144,8 +142,8 @@ func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_bug(_ cont
return fc, nil
}
-func (ec *executionContext) _AddCommentAndCloseBugPayload_commentOperation(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndCloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndCloseBugPayload_commentOperation(ctx, field)
+func (ec *executionContext) _BugAddCommentAndClosePayload_commentOperation(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndClosePayload_commentOperation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -172,36 +170,36 @@ func (ec *executionContext) _AddCommentAndCloseBugPayload_commentOperation(ctx c
}
res := resTmp.(*bug.AddCommentOperation)
fc.Result = res
- return ec.marshalNAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_commentOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndClosePayload_commentOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndCloseBugPayload",
+ Object: "BugAddCommentAndClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_AddCommentOperation_id(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_id(ctx, field)
case "author":
- return ec.fieldContext_AddCommentOperation_author(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_author(ctx, field)
case "date":
- return ec.fieldContext_AddCommentOperation_date(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_date(ctx, field)
case "message":
- return ec.fieldContext_AddCommentOperation_message(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_message(ctx, field)
case "files":
- return ec.fieldContext_AddCommentOperation_files(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_files(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _AddCommentAndCloseBugPayload_statusOperation(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndCloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndCloseBugPayload_statusOperation(ctx, field)
+func (ec *executionContext) _BugAddCommentAndClosePayload_statusOperation(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndClosePayload_statusOperation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -228,34 +226,34 @@ func (ec *executionContext) _AddCommentAndCloseBugPayload_statusOperation(ctx co
}
res := resTmp.(*bug.SetStatusOperation)
fc.Result = res
- return ec.marshalNSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
+ return ec.marshalNBugSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndCloseBugPayload_statusOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndClosePayload_statusOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndCloseBugPayload",
+ Object: "BugAddCommentAndClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_SetStatusOperation_id(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_id(ctx, field)
case "author":
- return ec.fieldContext_SetStatusOperation_author(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_author(ctx, field)
case "date":
- return ec.fieldContext_SetStatusOperation_date(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_date(ctx, field)
case "status":
- return ec.fieldContext_SetStatusOperation_status(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_status(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetStatusOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetStatusOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _AddCommentAndReopenBugPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndReopenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndReopenBugPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugAddCommentAndReopenPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndReopenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndReopenPayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -282,9 +280,9 @@ func (ec *executionContext) _AddCommentAndReopenBugPayload_clientMutationId(ctx
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndReopenPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndReopenBugPayload",
+ Object: "BugAddCommentAndReopenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -295,8 +293,8 @@ func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_clientMut
return fc, nil
}
-func (ec *executionContext) _AddCommentAndReopenBugPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndReopenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndReopenBugPayload_bug(ctx, field)
+func (ec *executionContext) _BugAddCommentAndReopenPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndReopenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndReopenPayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -326,9 +324,9 @@ func (ec *executionContext) _AddCommentAndReopenBugPayload_bug(ctx context.Conte
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndReopenPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndReopenBugPayload",
+ Object: "BugAddCommentAndReopenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -367,8 +365,8 @@ func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_bug(_ con
return fc, nil
}
-func (ec *executionContext) _AddCommentAndReopenBugPayload_commentOperation(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndReopenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndReopenBugPayload_commentOperation(ctx, field)
+func (ec *executionContext) _BugAddCommentAndReopenPayload_commentOperation(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndReopenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndReopenPayload_commentOperation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -395,36 +393,36 @@ func (ec *executionContext) _AddCommentAndReopenBugPayload_commentOperation(ctx
}
res := resTmp.(*bug.AddCommentOperation)
fc.Result = res
- return ec.marshalNAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_commentOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndReopenPayload_commentOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndReopenBugPayload",
+ Object: "BugAddCommentAndReopenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_AddCommentOperation_id(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_id(ctx, field)
case "author":
- return ec.fieldContext_AddCommentOperation_author(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_author(ctx, field)
case "date":
- return ec.fieldContext_AddCommentOperation_date(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_date(ctx, field)
case "message":
- return ec.fieldContext_AddCommentOperation_message(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_message(ctx, field)
case "files":
- return ec.fieldContext_AddCommentOperation_files(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_files(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _AddCommentAndReopenBugPayload_statusOperation(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentAndReopenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentAndReopenBugPayload_statusOperation(ctx, field)
+func (ec *executionContext) _BugAddCommentAndReopenPayload_statusOperation(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentAndReopenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentAndReopenPayload_statusOperation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -451,34 +449,34 @@ func (ec *executionContext) _AddCommentAndReopenBugPayload_statusOperation(ctx c
}
res := resTmp.(*bug.SetStatusOperation)
fc.Result = res
- return ec.marshalNSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
+ return ec.marshalNBugSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentAndReopenBugPayload_statusOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentAndReopenPayload_statusOperation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentAndReopenBugPayload",
+ Object: "BugAddCommentAndReopenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_SetStatusOperation_id(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_id(ctx, field)
case "author":
- return ec.fieldContext_SetStatusOperation_author(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_author(ctx, field)
case "date":
- return ec.fieldContext_SetStatusOperation_date(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_date(ctx, field)
case "status":
- return ec.fieldContext_SetStatusOperation_status(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_status(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetStatusOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetStatusOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _AddCommentPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugAddCommentPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentPayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -505,9 +503,9 @@ func (ec *executionContext) _AddCommentPayload_clientMutationId(ctx context.Cont
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentPayload",
+ Object: "BugAddCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -518,8 +516,8 @@ func (ec *executionContext) fieldContext_AddCommentPayload_clientMutationId(_ co
return fc, nil
}
-func (ec *executionContext) _AddCommentPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentPayload_bug(ctx, field)
+func (ec *executionContext) _BugAddCommentPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentPayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -549,9 +547,9 @@ func (ec *executionContext) _AddCommentPayload_bug(ctx context.Context, field gr
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentPayload",
+ Object: "BugAddCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -590,8 +588,8 @@ func (ec *executionContext) fieldContext_AddCommentPayload_bug(_ context.Context
return fc, nil
}
-func (ec *executionContext) _AddCommentPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.AddCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentPayload_operation(ctx, field)
+func (ec *executionContext) _BugAddCommentPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugAddCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentPayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -618,36 +616,36 @@ func (ec *executionContext) _AddCommentPayload_operation(ctx context.Context, fi
}
res := resTmp.(*bug.AddCommentOperation)
fc.Result = res
- return ec.marshalNAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentPayload",
+ Object: "BugAddCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_AddCommentOperation_id(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_id(ctx, field)
case "author":
- return ec.fieldContext_AddCommentOperation_author(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_author(ctx, field)
case "date":
- return ec.fieldContext_AddCommentOperation_date(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_date(ctx, field)
case "message":
- return ec.fieldContext_AddCommentOperation_message(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_message(ctx, field)
case "files":
- return ec.fieldContext_AddCommentOperation_files(ctx, field)
+ return ec.fieldContext_BugAddCommentOperation_files(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _ChangeLabelPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.ChangeLabelPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_ChangeLabelPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugChangeLabelPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugChangeLabelPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugChangeLabelPayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -674,9 +672,9 @@ func (ec *executionContext) _ChangeLabelPayload_clientMutationId(ctx context.Con
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_ChangeLabelPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugChangeLabelPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "ChangeLabelPayload",
+ Object: "BugChangeLabelPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -687,8 +685,8 @@ func (ec *executionContext) fieldContext_ChangeLabelPayload_clientMutationId(_ c
return fc, nil
}
-func (ec *executionContext) _ChangeLabelPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.ChangeLabelPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_ChangeLabelPayload_bug(ctx, field)
+func (ec *executionContext) _BugChangeLabelPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugChangeLabelPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugChangeLabelPayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -718,9 +716,9 @@ func (ec *executionContext) _ChangeLabelPayload_bug(ctx context.Context, field g
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_ChangeLabelPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugChangeLabelPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "ChangeLabelPayload",
+ Object: "BugChangeLabelPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -759,8 +757,8 @@ func (ec *executionContext) fieldContext_ChangeLabelPayload_bug(_ context.Contex
return fc, nil
}
-func (ec *executionContext) _ChangeLabelPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.ChangeLabelPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_ChangeLabelPayload_operation(ctx, field)
+func (ec *executionContext) _BugChangeLabelPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugChangeLabelPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugChangeLabelPayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -787,36 +785,36 @@ func (ec *executionContext) _ChangeLabelPayload_operation(ctx context.Context, f
}
res := resTmp.(*bug.LabelChangeOperation)
fc.Result = res
- return ec.marshalNLabelChangeOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeOperation(ctx, field.Selections, res)
+ return ec.marshalNBugLabelChangeOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_ChangeLabelPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugChangeLabelPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "ChangeLabelPayload",
+ Object: "BugChangeLabelPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_LabelChangeOperation_id(ctx, field)
+ return ec.fieldContext_BugLabelChangeOperation_id(ctx, field)
case "author":
- return ec.fieldContext_LabelChangeOperation_author(ctx, field)
+ return ec.fieldContext_BugLabelChangeOperation_author(ctx, field)
case "date":
- return ec.fieldContext_LabelChangeOperation_date(ctx, field)
+ return ec.fieldContext_BugLabelChangeOperation_date(ctx, field)
case "added":
- return ec.fieldContext_LabelChangeOperation_added(ctx, field)
+ return ec.fieldContext_BugLabelChangeOperation_added(ctx, field)
case "removed":
- return ec.fieldContext_LabelChangeOperation_removed(ctx, field)
+ return ec.fieldContext_BugLabelChangeOperation_removed(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type LabelChangeOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugLabelChangeOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _ChangeLabelPayload_results(ctx context.Context, field graphql.CollectedField, obj *models.ChangeLabelPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_ChangeLabelPayload_results(ctx, field)
+func (ec *executionContext) _BugChangeLabelPayload_results(ctx context.Context, field graphql.CollectedField, obj *models.BugChangeLabelPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugChangeLabelPayload_results(ctx, field)
if err != nil {
return graphql.Null
}
@@ -846,9 +844,9 @@ func (ec *executionContext) _ChangeLabelPayload_results(ctx context.Context, fie
return ec.marshalNLabelChangeResult2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_ChangeLabelPayload_results(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugChangeLabelPayload_results(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "ChangeLabelPayload",
+ Object: "BugChangeLabelPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -865,8 +863,8 @@ func (ec *executionContext) fieldContext_ChangeLabelPayload_results(_ context.Co
return fc, nil
}
-func (ec *executionContext) _CloseBugPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.CloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CloseBugPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugCreatePayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugCreatePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreatePayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -893,9 +891,9 @@ func (ec *executionContext) _CloseBugPayload_clientMutationId(ctx context.Contex
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CloseBugPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreatePayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CloseBugPayload",
+ Object: "BugCreatePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -906,8 +904,8 @@ func (ec *executionContext) fieldContext_CloseBugPayload_clientMutationId(_ cont
return fc, nil
}
-func (ec *executionContext) _CloseBugPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.CloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CloseBugPayload_bug(ctx, field)
+func (ec *executionContext) _BugCreatePayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugCreatePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreatePayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -937,9 +935,9 @@ func (ec *executionContext) _CloseBugPayload_bug(ctx context.Context, field grap
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CloseBugPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreatePayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CloseBugPayload",
+ Object: "BugCreatePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -978,8 +976,8 @@ func (ec *executionContext) fieldContext_CloseBugPayload_bug(_ context.Context,
return fc, nil
}
-func (ec *executionContext) _CloseBugPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.CloseBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CloseBugPayload_operation(ctx, field)
+func (ec *executionContext) _BugCreatePayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugCreatePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreatePayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1004,36 +1002,40 @@ func (ec *executionContext) _CloseBugPayload_operation(ctx context.Context, fiel
}
return graphql.Null
}
- res := resTmp.(*bug.SetStatusOperation)
+ res := resTmp.(*bug.CreateOperation)
fc.Result = res
- return ec.marshalNSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
+ return ec.marshalNBugCreateOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCreateOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CloseBugPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreatePayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CloseBugPayload",
+ Object: "BugCreatePayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_SetStatusOperation_id(ctx, field)
+ return ec.fieldContext_BugCreateOperation_id(ctx, field)
case "author":
- return ec.fieldContext_SetStatusOperation_author(ctx, field)
+ return ec.fieldContext_BugCreateOperation_author(ctx, field)
case "date":
- return ec.fieldContext_SetStatusOperation_date(ctx, field)
- case "status":
- return ec.fieldContext_SetStatusOperation_status(ctx, field)
+ return ec.fieldContext_BugCreateOperation_date(ctx, field)
+ case "title":
+ return ec.fieldContext_BugCreateOperation_title(ctx, field)
+ case "message":
+ return ec.fieldContext_BugCreateOperation_message(ctx, field)
+ case "files":
+ return ec.fieldContext_BugCreateOperation_files(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetStatusOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugCreateOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _EditCommentPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.EditCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugEditCommentPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugEditCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentPayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1060,9 +1062,9 @@ func (ec *executionContext) _EditCommentPayload_clientMutationId(ctx context.Con
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentPayload",
+ Object: "BugEditCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1073,8 +1075,8 @@ func (ec *executionContext) fieldContext_EditCommentPayload_clientMutationId(_ c
return fc, nil
}
-func (ec *executionContext) _EditCommentPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.EditCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentPayload_bug(ctx, field)
+func (ec *executionContext) _BugEditCommentPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugEditCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentPayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1104,9 +1106,9 @@ func (ec *executionContext) _EditCommentPayload_bug(ctx context.Context, field g
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentPayload",
+ Object: "BugEditCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1145,8 +1147,8 @@ func (ec *executionContext) fieldContext_EditCommentPayload_bug(_ context.Contex
return fc, nil
}
-func (ec *executionContext) _EditCommentPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.EditCommentPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentPayload_operation(ctx, field)
+func (ec *executionContext) _BugEditCommentPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugEditCommentPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentPayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1173,132 +1175,38 @@ func (ec *executionContext) _EditCommentPayload_operation(ctx context.Context, f
}
res := resTmp.(*bug.EditCommentOperation)
fc.Result = res
- return ec.marshalNEditCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐEditCommentOperation(ctx, field.Selections, res)
+ return ec.marshalNBugEditCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐEditCommentOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentPayload",
+ Object: "BugEditCommentPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_EditCommentOperation_id(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_id(ctx, field)
case "author":
- return ec.fieldContext_EditCommentOperation_author(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_author(ctx, field)
case "date":
- return ec.fieldContext_EditCommentOperation_date(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_date(ctx, field)
case "target":
- return ec.fieldContext_EditCommentOperation_target(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_target(ctx, field)
case "message":
- return ec.fieldContext_EditCommentOperation_message(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_message(ctx, field)
case "files":
- return ec.fieldContext_EditCommentOperation_files(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type EditCommentOperation", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _LabelChangeResult_label(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeResult) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeResult_label(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.Label, 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.(common.Label)
- fc.Result = res
- return ec.marshalNLabel2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabel(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_LabelChangeResult_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "LabelChangeResult",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- switch field.Name {
- case "name":
- return ec.fieldContext_Label_name(ctx, field)
- case "color":
- return ec.fieldContext_Label_color(ctx, field)
+ return ec.fieldContext_BugEditCommentOperation_files(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type Label", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugEditCommentOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _LabelChangeResult_status(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeResult) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeResult_status(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.Status, 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.(bug.LabelChangeStatus)
- fc.Result = res
- return ec.marshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_LabelChangeResult_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "LabelChangeResult",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- return nil, errors.New("field of type LabelChangeStatus does not have child fields")
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _NewBugPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.NewBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_NewBugPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugSetTitlePayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugSetTitlePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitlePayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1325,9 +1233,9 @@ func (ec *executionContext) _NewBugPayload_clientMutationId(ctx context.Context,
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_NewBugPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitlePayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "NewBugPayload",
+ Object: "BugSetTitlePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1338,8 +1246,8 @@ func (ec *executionContext) fieldContext_NewBugPayload_clientMutationId(_ contex
return fc, nil
}
-func (ec *executionContext) _NewBugPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.NewBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_NewBugPayload_bug(ctx, field)
+func (ec *executionContext) _BugSetTitlePayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugSetTitlePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitlePayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1369,9 +1277,9 @@ func (ec *executionContext) _NewBugPayload_bug(ctx context.Context, field graphq
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_NewBugPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitlePayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "NewBugPayload",
+ Object: "BugSetTitlePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1410,8 +1318,8 @@ func (ec *executionContext) fieldContext_NewBugPayload_bug(_ context.Context, fi
return fc, nil
}
-func (ec *executionContext) _NewBugPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.NewBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_NewBugPayload_operation(ctx, field)
+func (ec *executionContext) _BugSetTitlePayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugSetTitlePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitlePayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1436,40 +1344,38 @@ func (ec *executionContext) _NewBugPayload_operation(ctx context.Context, field
}
return graphql.Null
}
- res := resTmp.(*bug.CreateOperation)
+ res := resTmp.(*bug.SetTitleOperation)
fc.Result = res
- return ec.marshalNCreateOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCreateOperation(ctx, field.Selections, res)
+ return ec.marshalNBugSetTitleOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetTitleOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_NewBugPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitlePayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "NewBugPayload",
+ Object: "BugSetTitlePayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_CreateOperation_id(ctx, field)
+ return ec.fieldContext_BugSetTitleOperation_id(ctx, field)
case "author":
- return ec.fieldContext_CreateOperation_author(ctx, field)
+ return ec.fieldContext_BugSetTitleOperation_author(ctx, field)
case "date":
- return ec.fieldContext_CreateOperation_date(ctx, field)
+ return ec.fieldContext_BugSetTitleOperation_date(ctx, field)
case "title":
- return ec.fieldContext_CreateOperation_title(ctx, field)
- case "message":
- return ec.fieldContext_CreateOperation_message(ctx, field)
- case "files":
- return ec.fieldContext_CreateOperation_files(ctx, field)
+ return ec.fieldContext_BugSetTitleOperation_title(ctx, field)
+ case "was":
+ return ec.fieldContext_BugSetTitleOperation_was(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type CreateOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetTitleOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _OpenBugPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.OpenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OpenBugPayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugStatusClosePayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusClosePayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1496,9 +1402,9 @@ func (ec *executionContext) _OpenBugPayload_clientMutationId(ctx context.Context
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_OpenBugPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusClosePayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "OpenBugPayload",
+ Object: "BugStatusClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1509,8 +1415,8 @@ func (ec *executionContext) fieldContext_OpenBugPayload_clientMutationId(_ conte
return fc, nil
}
-func (ec *executionContext) _OpenBugPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.OpenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OpenBugPayload_bug(ctx, field)
+func (ec *executionContext) _BugStatusClosePayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusClosePayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1540,9 +1446,9 @@ func (ec *executionContext) _OpenBugPayload_bug(ctx context.Context, field graph
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_OpenBugPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusClosePayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "OpenBugPayload",
+ Object: "BugStatusClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1581,8 +1487,8 @@ func (ec *executionContext) fieldContext_OpenBugPayload_bug(_ context.Context, f
return fc, nil
}
-func (ec *executionContext) _OpenBugPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.OpenBugPayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OpenBugPayload_operation(ctx, field)
+func (ec *executionContext) _BugStatusClosePayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusClosePayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusClosePayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1609,34 +1515,34 @@ func (ec *executionContext) _OpenBugPayload_operation(ctx context.Context, field
}
res := resTmp.(*bug.SetStatusOperation)
fc.Result = res
- return ec.marshalNSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
+ return ec.marshalNBugSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_OpenBugPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusClosePayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "OpenBugPayload",
+ Object: "BugStatusClosePayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_SetStatusOperation_id(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_id(ctx, field)
case "author":
- return ec.fieldContext_SetStatusOperation_author(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_author(ctx, field)
case "date":
- return ec.fieldContext_SetStatusOperation_date(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_date(ctx, field)
case "status":
- return ec.fieldContext_SetStatusOperation_status(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_status(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetStatusOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetStatusOperation", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _SetTitlePayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.SetTitlePayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitlePayload_clientMutationId(ctx, field)
+func (ec *executionContext) _BugStatusOpenPayload_clientMutationId(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusOpenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusOpenPayload_clientMutationId(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1663,9 +1569,9 @@ func (ec *executionContext) _SetTitlePayload_clientMutationId(ctx context.Contex
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitlePayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusOpenPayload_clientMutationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitlePayload",
+ Object: "BugStatusOpenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1676,8 +1582,8 @@ func (ec *executionContext) fieldContext_SetTitlePayload_clientMutationId(_ cont
return fc, nil
}
-func (ec *executionContext) _SetTitlePayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.SetTitlePayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitlePayload_bug(ctx, field)
+func (ec *executionContext) _BugStatusOpenPayload_bug(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusOpenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusOpenPayload_bug(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1707,9 +1613,9 @@ func (ec *executionContext) _SetTitlePayload_bug(ctx context.Context, field grap
return ec.marshalNBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitlePayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusOpenPayload_bug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitlePayload",
+ Object: "BugStatusOpenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1748,8 +1654,8 @@ func (ec *executionContext) fieldContext_SetTitlePayload_bug(_ context.Context,
return fc, nil
}
-func (ec *executionContext) _SetTitlePayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.SetTitlePayload) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitlePayload_operation(ctx, field)
+func (ec *executionContext) _BugStatusOpenPayload_operation(ctx context.Context, field graphql.CollectedField, obj *models.BugStatusOpenPayload) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugStatusOpenPayload_operation(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1774,31 +1680,29 @@ func (ec *executionContext) _SetTitlePayload_operation(ctx context.Context, fiel
}
return graphql.Null
}
- res := resTmp.(*bug.SetTitleOperation)
+ res := resTmp.(*bug.SetStatusOperation)
fc.Result = res
- return ec.marshalNSetTitleOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetTitleOperation(ctx, field.Selections, res)
+ return ec.marshalNBugSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitlePayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugStatusOpenPayload_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitlePayload",
+ Object: "BugStatusOpenPayload",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
- return ec.fieldContext_SetTitleOperation_id(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_id(ctx, field)
case "author":
- return ec.fieldContext_SetTitleOperation_author(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_author(ctx, field)
case "date":
- return ec.fieldContext_SetTitleOperation_date(ctx, field)
- case "title":
- return ec.fieldContext_SetTitleOperation_title(ctx, field)
- case "was":
- return ec.fieldContext_SetTitleOperation_was(ctx, field)
+ return ec.fieldContext_BugSetStatusOperation_date(ctx, field)
+ case "status":
+ return ec.fieldContext_BugSetStatusOperation_status(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetTitleOperation", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetStatusOperation", field.Name)
},
}
return fc, nil
@@ -1808,8 +1712,8 @@ func (ec *executionContext) fieldContext_SetTitlePayload_operation(_ context.Con
// region **************************** input.gotpl *****************************
-func (ec *executionContext) unmarshalInputAddCommentAndCloseBugInput(ctx context.Context, obj interface{}) (models.AddCommentAndCloseBugInput, error) {
- var it models.AddCommentAndCloseBugInput
+func (ec *executionContext) unmarshalInputBugAddCommentAndCloseInput(ctx context.Context, obj interface{}) (models.BugAddCommentAndCloseInput, error) {
+ var it models.BugAddCommentAndCloseInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -1863,8 +1767,8 @@ func (ec *executionContext) unmarshalInputAddCommentAndCloseBugInput(ctx context
return it, nil
}
-func (ec *executionContext) unmarshalInputAddCommentAndReopenBugInput(ctx context.Context, obj interface{}) (models.AddCommentAndReopenBugInput, error) {
- var it models.AddCommentAndReopenBugInput
+func (ec *executionContext) unmarshalInputBugAddCommentAndReopenInput(ctx context.Context, obj interface{}) (models.BugAddCommentAndReopenInput, error) {
+ var it models.BugAddCommentAndReopenInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -1918,8 +1822,8 @@ func (ec *executionContext) unmarshalInputAddCommentAndReopenBugInput(ctx contex
return it, nil
}
-func (ec *executionContext) unmarshalInputAddCommentInput(ctx context.Context, obj interface{}) (models.AddCommentInput, error) {
- var it models.AddCommentInput
+func (ec *executionContext) unmarshalInputBugAddCommentInput(ctx context.Context, obj interface{}) (models.BugAddCommentInput, error) {
+ var it models.BugAddCommentInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -1973,8 +1877,8 @@ func (ec *executionContext) unmarshalInputAddCommentInput(ctx context.Context, o
return it, nil
}
-func (ec *executionContext) unmarshalInputChangeLabelInput(ctx context.Context, obj interface{}) (models.ChangeLabelInput, error) {
- var it models.ChangeLabelInput
+func (ec *executionContext) unmarshalInputBugChangeLabelInput(ctx context.Context, obj interface{}) (models.BugChangeLabelInput, error) {
+ var it models.BugChangeLabelInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -2028,14 +1932,14 @@ func (ec *executionContext) unmarshalInputChangeLabelInput(ctx context.Context,
return it, nil
}
-func (ec *executionContext) unmarshalInputCloseBugInput(ctx context.Context, obj interface{}) (models.CloseBugInput, error) {
- var it models.CloseBugInput
+func (ec *executionContext) unmarshalInputBugCreateInput(ctx context.Context, obj interface{}) (models.BugCreateInput, error) {
+ var it models.BugCreateInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
- fieldsInOrder := [...]string{"clientMutationId", "repoRef", "prefix"}
+ fieldsInOrder := [...]string{"clientMutationId", "repoRef", "title", "message", "files"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
@@ -2056,21 +1960,35 @@ func (ec *executionContext) unmarshalInputCloseBugInput(ctx context.Context, obj
return it, err
}
it.RepoRef = data
- case "prefix":
- ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("prefix"))
+ case "title":
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
- it.Prefix = data
+ it.Title = data
+ case "message":
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message"))
+ data, err := ec.unmarshalNString2string(ctx, v)
+ if err != nil {
+ return it, err
+ }
+ it.Message = data
+ case "files":
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("files"))
+ data, err := ec.unmarshalOHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, v)
+ if err != nil {
+ return it, err
+ }
+ it.Files = data
}
}
return it, nil
}
-func (ec *executionContext) unmarshalInputEditCommentInput(ctx context.Context, obj interface{}) (models.EditCommentInput, error) {
- var it models.EditCommentInput
+func (ec *executionContext) unmarshalInputBugEditCommentInput(ctx context.Context, obj interface{}) (models.BugEditCommentInput, error) {
+ var it models.BugEditCommentInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -2124,14 +2042,14 @@ func (ec *executionContext) unmarshalInputEditCommentInput(ctx context.Context,
return it, nil
}
-func (ec *executionContext) unmarshalInputNewBugInput(ctx context.Context, obj interface{}) (models.NewBugInput, error) {
- var it models.NewBugInput
+func (ec *executionContext) unmarshalInputBugSetTitleInput(ctx context.Context, obj interface{}) (models.BugSetTitleInput, error) {
+ var it models.BugSetTitleInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
- fieldsInOrder := [...]string{"clientMutationId", "repoRef", "title", "message", "files"}
+ fieldsInOrder := [...]string{"clientMutationId", "repoRef", "prefix", "title"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
@@ -2152,35 +2070,28 @@ func (ec *executionContext) unmarshalInputNewBugInput(ctx context.Context, obj i
return it, err
}
it.RepoRef = data
- case "title":
- ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
+ case "prefix":
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("prefix"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
- it.Title = data
- case "message":
- ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message"))
+ it.Prefix = data
+ case "title":
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
- it.Message = data
- case "files":
- ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("files"))
- data, err := ec.unmarshalOHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, v)
- if err != nil {
- return it, err
- }
- it.Files = data
+ it.Title = data
}
}
return it, nil
}
-func (ec *executionContext) unmarshalInputOpenBugInput(ctx context.Context, obj interface{}) (models.OpenBugInput, error) {
- var it models.OpenBugInput
+func (ec *executionContext) unmarshalInputBugStatusCloseInput(ctx context.Context, obj interface{}) (models.BugStatusCloseInput, error) {
+ var it models.BugStatusCloseInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
@@ -2220,14 +2131,14 @@ func (ec *executionContext) unmarshalInputOpenBugInput(ctx context.Context, obj
return it, nil
}
-func (ec *executionContext) unmarshalInputSetTitleInput(ctx context.Context, obj interface{}) (models.SetTitleInput, error) {
- var it models.SetTitleInput
+func (ec *executionContext) unmarshalInputBugStatusOpenInput(ctx context.Context, obj interface{}) (models.BugStatusOpenInput, error) {
+ var it models.BugStatusOpenInput
asMap := map[string]interface{}{}
for k, v := range obj.(map[string]interface{}) {
asMap[k] = v
}
- fieldsInOrder := [...]string{"clientMutationId", "repoRef", "prefix", "title"}
+ fieldsInOrder := [...]string{"clientMutationId", "repoRef", "prefix"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
@@ -2255,13 +2166,6 @@ func (ec *executionContext) unmarshalInputSetTitleInput(ctx context.Context, obj
return it, err
}
it.Prefix = data
- case "title":
- ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
- data, err := ec.unmarshalNString2string(ctx, v)
- if err != nil {
- return it, err
- }
- it.Title = data
}
}
@@ -2276,31 +2180,31 @@ func (ec *executionContext) unmarshalInputSetTitleInput(ctx context.Context, obj
// region **************************** object.gotpl ****************************
-var addCommentAndCloseBugPayloadImplementors = []string{"AddCommentAndCloseBugPayload"}
+var bugAddCommentAndClosePayloadImplementors = []string{"BugAddCommentAndClosePayload"}
-func (ec *executionContext) _AddCommentAndCloseBugPayload(ctx context.Context, sel ast.SelectionSet, obj *models.AddCommentAndCloseBugPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, addCommentAndCloseBugPayloadImplementors)
+func (ec *executionContext) _BugAddCommentAndClosePayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugAddCommentAndClosePayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugAddCommentAndClosePayloadImplementors)
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("AddCommentAndCloseBugPayload")
+ out.Values[i] = graphql.MarshalString("BugAddCommentAndClosePayload")
case "clientMutationId":
- out.Values[i] = ec._AddCommentAndCloseBugPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndClosePayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._AddCommentAndCloseBugPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndClosePayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "commentOperation":
- out.Values[i] = ec._AddCommentAndCloseBugPayload_commentOperation(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndClosePayload_commentOperation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "statusOperation":
- out.Values[i] = ec._AddCommentAndCloseBugPayload_statusOperation(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndClosePayload_statusOperation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2327,31 +2231,31 @@ func (ec *executionContext) _AddCommentAndCloseBugPayload(ctx context.Context, s
return out
}
-var addCommentAndReopenBugPayloadImplementors = []string{"AddCommentAndReopenBugPayload"}
+var bugAddCommentAndReopenPayloadImplementors = []string{"BugAddCommentAndReopenPayload"}
-func (ec *executionContext) _AddCommentAndReopenBugPayload(ctx context.Context, sel ast.SelectionSet, obj *models.AddCommentAndReopenBugPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, addCommentAndReopenBugPayloadImplementors)
+func (ec *executionContext) _BugAddCommentAndReopenPayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugAddCommentAndReopenPayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugAddCommentAndReopenPayloadImplementors)
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("AddCommentAndReopenBugPayload")
+ out.Values[i] = graphql.MarshalString("BugAddCommentAndReopenPayload")
case "clientMutationId":
- out.Values[i] = ec._AddCommentAndReopenBugPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndReopenPayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._AddCommentAndReopenBugPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndReopenPayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "commentOperation":
- out.Values[i] = ec._AddCommentAndReopenBugPayload_commentOperation(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndReopenPayload_commentOperation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "statusOperation":
- out.Values[i] = ec._AddCommentAndReopenBugPayload_statusOperation(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentAndReopenPayload_statusOperation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2378,26 +2282,26 @@ func (ec *executionContext) _AddCommentAndReopenBugPayload(ctx context.Context,
return out
}
-var addCommentPayloadImplementors = []string{"AddCommentPayload"}
+var bugAddCommentPayloadImplementors = []string{"BugAddCommentPayload"}
-func (ec *executionContext) _AddCommentPayload(ctx context.Context, sel ast.SelectionSet, obj *models.AddCommentPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, addCommentPayloadImplementors)
+func (ec *executionContext) _BugAddCommentPayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugAddCommentPayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugAddCommentPayloadImplementors)
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("AddCommentPayload")
+ out.Values[i] = graphql.MarshalString("BugAddCommentPayload")
case "clientMutationId":
- out.Values[i] = ec._AddCommentPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentPayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._AddCommentPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentPayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._AddCommentPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentPayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2424,31 +2328,31 @@ func (ec *executionContext) _AddCommentPayload(ctx context.Context, sel ast.Sele
return out
}
-var changeLabelPayloadImplementors = []string{"ChangeLabelPayload"}
+var bugChangeLabelPayloadImplementors = []string{"BugChangeLabelPayload"}
-func (ec *executionContext) _ChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, obj *models.ChangeLabelPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, changeLabelPayloadImplementors)
+func (ec *executionContext) _BugChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugChangeLabelPayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugChangeLabelPayloadImplementors)
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("ChangeLabelPayload")
+ out.Values[i] = graphql.MarshalString("BugChangeLabelPayload")
case "clientMutationId":
- out.Values[i] = ec._ChangeLabelPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugChangeLabelPayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._ChangeLabelPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugChangeLabelPayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._ChangeLabelPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugChangeLabelPayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "results":
- out.Values[i] = ec._ChangeLabelPayload_results(ctx, field, obj)
+ out.Values[i] = ec._BugChangeLabelPayload_results(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2475,26 +2379,26 @@ func (ec *executionContext) _ChangeLabelPayload(ctx context.Context, sel ast.Sel
return out
}
-var closeBugPayloadImplementors = []string{"CloseBugPayload"}
+var bugCreatePayloadImplementors = []string{"BugCreatePayload"}
-func (ec *executionContext) _CloseBugPayload(ctx context.Context, sel ast.SelectionSet, obj *models.CloseBugPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, closeBugPayloadImplementors)
+func (ec *executionContext) _BugCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugCreatePayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCreatePayloadImplementors)
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("CloseBugPayload")
+ out.Values[i] = graphql.MarshalString("BugCreatePayload")
case "clientMutationId":
- out.Values[i] = ec._CloseBugPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugCreatePayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._CloseBugPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugCreatePayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._CloseBugPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugCreatePayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2521,26 +2425,26 @@ func (ec *executionContext) _CloseBugPayload(ctx context.Context, sel ast.Select
return out
}
-var editCommentPayloadImplementors = []string{"EditCommentPayload"}
+var bugEditCommentPayloadImplementors = []string{"BugEditCommentPayload"}
-func (ec *executionContext) _EditCommentPayload(ctx context.Context, sel ast.SelectionSet, obj *models.EditCommentPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, editCommentPayloadImplementors)
+func (ec *executionContext) _BugEditCommentPayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugEditCommentPayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugEditCommentPayloadImplementors)
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("EditCommentPayload")
+ out.Values[i] = graphql.MarshalString("BugEditCommentPayload")
case "clientMutationId":
- out.Values[i] = ec._EditCommentPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentPayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._EditCommentPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentPayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._EditCommentPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentPayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2567,70 +2471,26 @@ func (ec *executionContext) _EditCommentPayload(ctx context.Context, sel ast.Sel
return out
}
-var labelChangeResultImplementors = []string{"LabelChangeResult"}
+var bugSetTitlePayloadImplementors = []string{"BugSetTitlePayload"}
-func (ec *executionContext) _LabelChangeResult(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeResult) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, labelChangeResultImplementors)
+func (ec *executionContext) _BugSetTitlePayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugSetTitlePayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugSetTitlePayloadImplementors)
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("LabelChangeResult")
- case "label":
- out.Values[i] = ec._LabelChangeResult_label(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "status":
- out.Values[i] = ec._LabelChangeResult_status(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
- }
-
- 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 newBugPayloadImplementors = []string{"NewBugPayload"}
-
-func (ec *executionContext) _NewBugPayload(ctx context.Context, sel ast.SelectionSet, obj *models.NewBugPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, newBugPayloadImplementors)
-
- 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("NewBugPayload")
+ out.Values[i] = graphql.MarshalString("BugSetTitlePayload")
case "clientMutationId":
- out.Values[i] = ec._NewBugPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitlePayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._NewBugPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitlePayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._NewBugPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitlePayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2657,26 +2517,26 @@ func (ec *executionContext) _NewBugPayload(ctx context.Context, sel ast.Selectio
return out
}
-var openBugPayloadImplementors = []string{"OpenBugPayload"}
+var bugStatusClosePayloadImplementors = []string{"BugStatusClosePayload"}
-func (ec *executionContext) _OpenBugPayload(ctx context.Context, sel ast.SelectionSet, obj *models.OpenBugPayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, openBugPayloadImplementors)
+func (ec *executionContext) _BugStatusClosePayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugStatusClosePayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugStatusClosePayloadImplementors)
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("OpenBugPayload")
+ out.Values[i] = graphql.MarshalString("BugStatusClosePayload")
case "clientMutationId":
- out.Values[i] = ec._OpenBugPayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugStatusClosePayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._OpenBugPayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugStatusClosePayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._OpenBugPayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugStatusClosePayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2703,26 +2563,26 @@ func (ec *executionContext) _OpenBugPayload(ctx context.Context, sel ast.Selecti
return out
}
-var setTitlePayloadImplementors = []string{"SetTitlePayload"}
+var bugStatusOpenPayloadImplementors = []string{"BugStatusOpenPayload"}
-func (ec *executionContext) _SetTitlePayload(ctx context.Context, sel ast.SelectionSet, obj *models.SetTitlePayload) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, setTitlePayloadImplementors)
+func (ec *executionContext) _BugStatusOpenPayload(ctx context.Context, sel ast.SelectionSet, obj *models.BugStatusOpenPayload) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugStatusOpenPayloadImplementors)
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("SetTitlePayload")
+ out.Values[i] = graphql.MarshalString("BugStatusOpenPayload")
case "clientMutationId":
- out.Values[i] = ec._SetTitlePayload_clientMutationId(ctx, field, obj)
+ out.Values[i] = ec._BugStatusOpenPayload_clientMutationId(ctx, field, obj)
case "bug":
- out.Values[i] = ec._SetTitlePayload_bug(ctx, field, obj)
+ out.Values[i] = ec._BugStatusOpenPayload_bug(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "operation":
- out.Values[i] = ec._SetTitlePayload_operation(ctx, field, obj)
+ out.Values[i] = ec._BugStatusOpenPayload_operation(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2753,233 +2613,178 @@ func (ec *executionContext) _SetTitlePayload(ctx context.Context, sel ast.Select
// region ***************************** type.gotpl *****************************
-func (ec *executionContext) unmarshalNAddCommentAndCloseBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndCloseBugInput(ctx context.Context, v interface{}) (models.AddCommentAndCloseBugInput, error) {
- res, err := ec.unmarshalInputAddCommentAndCloseBugInput(ctx, v)
+func (ec *executionContext) unmarshalNBugAddCommentAndCloseInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndCloseInput(ctx context.Context, v interface{}) (models.BugAddCommentAndCloseInput, error) {
+ res, err := ec.unmarshalInputBugAddCommentAndCloseInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNAddCommentAndCloseBugPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndCloseBugPayload(ctx context.Context, sel ast.SelectionSet, v models.AddCommentAndCloseBugPayload) graphql.Marshaler {
- return ec._AddCommentAndCloseBugPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugAddCommentAndClosePayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndClosePayload(ctx context.Context, sel ast.SelectionSet, v models.BugAddCommentAndClosePayload) graphql.Marshaler {
+ return ec._BugAddCommentAndClosePayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNAddCommentAndCloseBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndCloseBugPayload(ctx context.Context, sel ast.SelectionSet, v *models.AddCommentAndCloseBugPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugAddCommentAndClosePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndClosePayload(ctx context.Context, sel ast.SelectionSet, v *models.BugAddCommentAndClosePayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._AddCommentAndCloseBugPayload(ctx, sel, v)
+ return ec._BugAddCommentAndClosePayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNAddCommentAndReopenBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndReopenBugInput(ctx context.Context, v interface{}) (models.AddCommentAndReopenBugInput, error) {
- res, err := ec.unmarshalInputAddCommentAndReopenBugInput(ctx, v)
+func (ec *executionContext) unmarshalNBugAddCommentAndReopenInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndReopenInput(ctx context.Context, v interface{}) (models.BugAddCommentAndReopenInput, error) {
+ res, err := ec.unmarshalInputBugAddCommentAndReopenInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNAddCommentAndReopenBugPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndReopenBugPayload(ctx context.Context, sel ast.SelectionSet, v models.AddCommentAndReopenBugPayload) graphql.Marshaler {
- return ec._AddCommentAndReopenBugPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugAddCommentAndReopenPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndReopenPayload(ctx context.Context, sel ast.SelectionSet, v models.BugAddCommentAndReopenPayload) graphql.Marshaler {
+ return ec._BugAddCommentAndReopenPayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNAddCommentAndReopenBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndReopenBugPayload(ctx context.Context, sel ast.SelectionSet, v *models.AddCommentAndReopenBugPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugAddCommentAndReopenPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndReopenPayload(ctx context.Context, sel ast.SelectionSet, v *models.BugAddCommentAndReopenPayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._AddCommentAndReopenBugPayload(ctx, sel, v)
+ return ec._BugAddCommentAndReopenPayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNAddCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentInput(ctx context.Context, v interface{}) (models.AddCommentInput, error) {
- res, err := ec.unmarshalInputAddCommentInput(ctx, v)
+func (ec *executionContext) unmarshalNBugAddCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentInput(ctx context.Context, v interface{}) (models.BugAddCommentInput, error) {
+ res, err := ec.unmarshalInputBugAddCommentInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNAddCommentPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentPayload(ctx context.Context, sel ast.SelectionSet, v models.AddCommentPayload) graphql.Marshaler {
- return ec._AddCommentPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugAddCommentPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentPayload(ctx context.Context, sel ast.SelectionSet, v models.BugAddCommentPayload) graphql.Marshaler {
+ return ec._BugAddCommentPayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNAddCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentPayload(ctx context.Context, sel ast.SelectionSet, v *models.AddCommentPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugAddCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentPayload(ctx context.Context, sel ast.SelectionSet, v *models.BugAddCommentPayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._AddCommentPayload(ctx, sel, v)
+ return ec._BugAddCommentPayload(ctx, sel, v)
}
-func (ec *executionContext) marshalNChangeLabelPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, v models.ChangeLabelPayload) graphql.Marshaler {
- return ec._ChangeLabelPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugChangeLabelPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, v models.BugChangeLabelPayload) graphql.Marshaler {
+ return ec._BugChangeLabelPayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNChangeLabelPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, v *models.ChangeLabelPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugChangeLabelPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugChangeLabelPayload(ctx context.Context, sel ast.SelectionSet, v *models.BugChangeLabelPayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._ChangeLabelPayload(ctx, sel, v)
+ return ec._BugChangeLabelPayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNCloseBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCloseBugInput(ctx context.Context, v interface{}) (models.CloseBugInput, error) {
- res, err := ec.unmarshalInputCloseBugInput(ctx, v)
+func (ec *executionContext) unmarshalNBugCreateInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCreateInput(ctx context.Context, v interface{}) (models.BugCreateInput, error) {
+ res, err := ec.unmarshalInputBugCreateInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNCloseBugPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCloseBugPayload(ctx context.Context, sel ast.SelectionSet, v models.CloseBugPayload) graphql.Marshaler {
- return ec._CloseBugPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugCreatePayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCreatePayload(ctx context.Context, sel ast.SelectionSet, v models.BugCreatePayload) graphql.Marshaler {
+ return ec._BugCreatePayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNCloseBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCloseBugPayload(ctx context.Context, sel ast.SelectionSet, v *models.CloseBugPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugCreatePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCreatePayload(ctx context.Context, sel ast.SelectionSet, v *models.BugCreatePayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._CloseBugPayload(ctx, sel, v)
+ return ec._BugCreatePayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNEditCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐEditCommentInput(ctx context.Context, v interface{}) (models.EditCommentInput, error) {
- res, err := ec.unmarshalInputEditCommentInput(ctx, v)
+func (ec *executionContext) unmarshalNBugEditCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugEditCommentInput(ctx context.Context, v interface{}) (models.BugEditCommentInput, error) {
+ res, err := ec.unmarshalInputBugEditCommentInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNEditCommentPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐEditCommentPayload(ctx context.Context, sel ast.SelectionSet, v models.EditCommentPayload) graphql.Marshaler {
- return ec._EditCommentPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugEditCommentPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugEditCommentPayload(ctx context.Context, sel ast.SelectionSet, v models.BugEditCommentPayload) graphql.Marshaler {
+ return ec._BugEditCommentPayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNEditCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐEditCommentPayload(ctx context.Context, sel ast.SelectionSet, v *models.EditCommentPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugEditCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugEditCommentPayload(ctx context.Context, sel ast.SelectionSet, v *models.BugEditCommentPayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._EditCommentPayload(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNLabelChangeResult2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx context.Context, sel ast.SelectionSet, v []*bug.LabelChangeResult) graphql.Marshaler {
- ret := make(graphql.Array, len(v))
- var wg sync.WaitGroup
- isLen1 := len(v) == 1
- if !isLen1 {
- wg.Add(len(v))
- }
- for i := range v {
- i := i
- fc := &graphql.FieldContext{
- Index: &i,
- Result: &v[i],
- }
- ctx := graphql.WithFieldContext(ctx, fc)
- f := func(i int) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- ret = nil
- }
- }()
- if !isLen1 {
- defer wg.Done()
- }
- ret[i] = ec.marshalOLabelChangeResult2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx, sel, v[i])
- }
- if isLen1 {
- f(i)
- } else {
- go f(i)
- }
-
- }
- wg.Wait()
-
- return ret
-}
-
-func (ec *executionContext) unmarshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx context.Context, v interface{}) (bug.LabelChangeStatus, error) {
- var res bug.LabelChangeStatus
- err := res.UnmarshalGQL(v)
- return res, graphql.ErrorOnPath(ctx, err)
-}
-
-func (ec *executionContext) marshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx context.Context, sel ast.SelectionSet, v bug.LabelChangeStatus) graphql.Marshaler {
- return v
+ return ec._BugEditCommentPayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNNewBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐNewBugInput(ctx context.Context, v interface{}) (models.NewBugInput, error) {
- res, err := ec.unmarshalInputNewBugInput(ctx, v)
+func (ec *executionContext) unmarshalNBugSetTitleInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitleInput(ctx context.Context, v interface{}) (models.BugSetTitleInput, error) {
+ res, err := ec.unmarshalInputBugSetTitleInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNNewBugPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐNewBugPayload(ctx context.Context, sel ast.SelectionSet, v models.NewBugPayload) graphql.Marshaler {
- return ec._NewBugPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugSetTitlePayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitlePayload(ctx context.Context, sel ast.SelectionSet, v models.BugSetTitlePayload) graphql.Marshaler {
+ return ec._BugSetTitlePayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNNewBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐNewBugPayload(ctx context.Context, sel ast.SelectionSet, v *models.NewBugPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugSetTitlePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitlePayload(ctx context.Context, sel ast.SelectionSet, v *models.BugSetTitlePayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._NewBugPayload(ctx, sel, v)
+ return ec._BugSetTitlePayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNOpenBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOpenBugInput(ctx context.Context, v interface{}) (models.OpenBugInput, error) {
- res, err := ec.unmarshalInputOpenBugInput(ctx, v)
+func (ec *executionContext) unmarshalNBugStatusCloseInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusCloseInput(ctx context.Context, v interface{}) (models.BugStatusCloseInput, error) {
+ res, err := ec.unmarshalInputBugStatusCloseInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNOpenBugPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOpenBugPayload(ctx context.Context, sel ast.SelectionSet, v models.OpenBugPayload) graphql.Marshaler {
- return ec._OpenBugPayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugStatusClosePayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusClosePayload(ctx context.Context, sel ast.SelectionSet, v models.BugStatusClosePayload) graphql.Marshaler {
+ return ec._BugStatusClosePayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNOpenBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOpenBugPayload(ctx context.Context, sel ast.SelectionSet, v *models.OpenBugPayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugStatusClosePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusClosePayload(ctx context.Context, sel ast.SelectionSet, v *models.BugStatusClosePayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._OpenBugPayload(ctx, sel, v)
+ return ec._BugStatusClosePayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalNSetTitleInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐSetTitleInput(ctx context.Context, v interface{}) (models.SetTitleInput, error) {
- res, err := ec.unmarshalInputSetTitleInput(ctx, v)
+func (ec *executionContext) unmarshalNBugStatusOpenInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusOpenInput(ctx context.Context, v interface{}) (models.BugStatusOpenInput, error) {
+ res, err := ec.unmarshalInputBugStatusOpenInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalNSetTitlePayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐSetTitlePayload(ctx context.Context, sel ast.SelectionSet, v models.SetTitlePayload) graphql.Marshaler {
- return ec._SetTitlePayload(ctx, sel, &v)
+func (ec *executionContext) marshalNBugStatusOpenPayload2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusOpenPayload(ctx context.Context, sel ast.SelectionSet, v models.BugStatusOpenPayload) graphql.Marshaler {
+ return ec._BugStatusOpenPayload(ctx, sel, &v)
}
-func (ec *executionContext) marshalNSetTitlePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐSetTitlePayload(ctx context.Context, sel ast.SelectionSet, v *models.SetTitlePayload) graphql.Marshaler {
+func (ec *executionContext) marshalNBugStatusOpenPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusOpenPayload(ctx context.Context, sel ast.SelectionSet, v *models.BugStatusOpenPayload) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._SetTitlePayload(ctx, sel, v)
+ return ec._BugStatusOpenPayload(ctx, sel, v)
}
-func (ec *executionContext) unmarshalOChangeLabelInput2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐChangeLabelInput(ctx context.Context, v interface{}) (*models.ChangeLabelInput, error) {
+func (ec *executionContext) unmarshalOBugChangeLabelInput2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugChangeLabelInput(ctx context.Context, v interface{}) (*models.BugChangeLabelInput, error) {
if v == nil {
return nil, nil
}
- res, err := ec.unmarshalInputChangeLabelInput(ctx, v)
+ res, err := ec.unmarshalInputBugChangeLabelInput(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
-func (ec *executionContext) marshalOLabelChangeResult2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx context.Context, sel ast.SelectionSet, v *bug.LabelChangeResult) graphql.Marshaler {
- if v == nil {
- return graphql.Null
- }
- return ec._LabelChangeResult(ctx, sel, v)
-}
-
// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/operations.generated.go b/api/graphql/graph/bug_operations.generated.go
index f8acf02c..9124bfed 100644
--- a/api/graphql/graph/operations.generated.go
+++ b/api/graphql/graph/bug_operations.generated.go
@@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"strconv"
- "sync"
"sync/atomic"
"time"
@@ -16,37 +15,31 @@ import (
"github.com/git-bug/git-bug/entities/bug"
"github.com/git-bug/git-bug/entities/common"
"github.com/git-bug/git-bug/entity"
- "github.com/git-bug/git-bug/entity/dag"
"github.com/git-bug/git-bug/repository"
"github.com/vektah/gqlparser/v2/ast"
)
// region ************************** generated!.gotpl **************************
-type AddCommentOperationResolver interface {
+type BugAddCommentOperationResolver interface {
Author(ctx context.Context, obj *bug.AddCommentOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.AddCommentOperation) (*time.Time, error)
}
-type CreateOperationResolver interface {
+type BugCreateOperationResolver interface {
Author(ctx context.Context, obj *bug.CreateOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.CreateOperation) (*time.Time, error)
}
-type EditCommentOperationResolver interface {
+type BugEditCommentOperationResolver interface {
Author(ctx context.Context, obj *bug.EditCommentOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.EditCommentOperation) (*time.Time, error)
+
Target(ctx context.Context, obj *bug.EditCommentOperation) (string, error)
}
-type LabelChangeOperationResolver interface {
+type BugLabelChangeOperationResolver interface {
Author(ctx context.Context, obj *bug.LabelChangeOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.LabelChangeOperation) (*time.Time, error)
}
-type SetStatusOperationResolver interface {
+type BugSetStatusOperationResolver interface {
Author(ctx context.Context, obj *bug.SetStatusOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.SetStatusOperation) (*time.Time, error)
}
-type SetTitleOperationResolver interface {
+type BugSetTitleOperationResolver interface {
Author(ctx context.Context, obj *bug.SetTitleOperation) (models.IdentityWrapper, error)
- Date(ctx context.Context, obj *bug.SetTitleOperation) (*time.Time, error)
}
// endregion ************************** generated!.gotpl **************************
@@ -61,8 +54,8 @@ type SetTitleOperationResolver interface {
// region **************************** field.gotpl *****************************
-func (ec *executionContext) _AddCommentOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentOperation_id(ctx, field)
+func (ec *executionContext) _BugAddCommentOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -92,9 +85,9 @@ func (ec *executionContext) _AddCommentOperation_id(ctx context.Context, field g
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentOperation",
+ Object: "BugAddCommentOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -105,8 +98,8 @@ func (ec *executionContext) fieldContext_AddCommentOperation_id(_ context.Contex
return fc, nil
}
-func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentOperation_author(ctx, field)
+func (ec *executionContext) _BugAddCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -119,7 +112,7 @@ func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, fie
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.AddCommentOperation().Author(rctx, obj)
+ return ec.resolvers.BugAddCommentOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -136,9 +129,9 @@ func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, fie
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentOperation",
+ Object: "BugAddCommentOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -167,8 +160,8 @@ func (ec *executionContext) fieldContext_AddCommentOperation_author(_ context.Co
return fc, nil
}
-func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentOperation_date(ctx, field)
+func (ec *executionContext) _BugAddCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -181,7 +174,7 @@ func (ec *executionContext) _AddCommentOperation_date(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 ec.resolvers.AddCommentOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -193,17 +186,17 @@ func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentOperation",
+ Object: "BugAddCommentOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -211,8 +204,8 @@ func (ec *executionContext) fieldContext_AddCommentOperation_date(_ context.Cont
return fc, nil
}
-func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentOperation_message(ctx, field)
+func (ec *executionContext) _BugAddCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentOperation_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -242,9 +235,9 @@ func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, fi
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentOperation",
+ Object: "BugAddCommentOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -255,8 +248,8 @@ func (ec *executionContext) fieldContext_AddCommentOperation_message(_ context.C
return fc, nil
}
-func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentOperation_files(ctx, field)
+func (ec *executionContext) _BugAddCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentOperation_files(ctx, field)
if err != nil {
return graphql.Null
}
@@ -286,9 +279,9 @@ func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, fiel
return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentOperation",
+ Object: "BugAddCommentOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -299,8 +292,8 @@ func (ec *executionContext) fieldContext_AddCommentOperation_files(_ context.Con
return fc, nil
}
-func (ec *executionContext) _CreateOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_id(ctx, field)
+func (ec *executionContext) _BugCreateOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -330,9 +323,9 @@ func (ec *executionContext) _CreateOperation_id(ctx context.Context, field graph
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -343,8 +336,8 @@ func (ec *executionContext) fieldContext_CreateOperation_id(_ context.Context, f
return fc, nil
}
-func (ec *executionContext) _CreateOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_author(ctx, field)
+func (ec *executionContext) _BugCreateOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -357,7 +350,7 @@ func (ec *executionContext) _CreateOperation_author(ctx context.Context, field g
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.CreateOperation().Author(rctx, obj)
+ return ec.resolvers.BugCreateOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -374,9 +367,9 @@ func (ec *executionContext) _CreateOperation_author(ctx context.Context, field g
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -405,8 +398,8 @@ func (ec *executionContext) fieldContext_CreateOperation_author(_ context.Contex
return fc, nil
}
-func (ec *executionContext) _CreateOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_date(ctx, field)
+func (ec *executionContext) _BugCreateOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -419,7 +412,7 @@ func (ec *executionContext) _CreateOperation_date(ctx context.Context, field gra
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.CreateOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -431,17 +424,17 @@ func (ec *executionContext) _CreateOperation_date(ctx context.Context, field gra
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -449,8 +442,8 @@ func (ec *executionContext) fieldContext_CreateOperation_date(_ context.Context,
return fc, nil
}
-func (ec *executionContext) _CreateOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_title(ctx, field)
+func (ec *executionContext) _BugCreateOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_title(ctx, field)
if err != nil {
return graphql.Null
}
@@ -480,9 +473,9 @@ func (ec *executionContext) _CreateOperation_title(ctx context.Context, field gr
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -493,8 +486,8 @@ func (ec *executionContext) fieldContext_CreateOperation_title(_ context.Context
return fc, nil
}
-func (ec *executionContext) _CreateOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_message(ctx, field)
+func (ec *executionContext) _BugCreateOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -524,9 +517,9 @@ func (ec *executionContext) _CreateOperation_message(ctx context.Context, field
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -537,8 +530,8 @@ func (ec *executionContext) fieldContext_CreateOperation_message(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _CreateOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateOperation_files(ctx, field)
+func (ec *executionContext) _BugCreateOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateOperation_files(ctx, field)
if err != nil {
return graphql.Null
}
@@ -568,9 +561,9 @@ func (ec *executionContext) _CreateOperation_files(ctx context.Context, field gr
return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateOperation",
+ Object: "BugCreateOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -581,8 +574,8 @@ func (ec *executionContext) fieldContext_CreateOperation_files(_ context.Context
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_id(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -612,9 +605,9 @@ func (ec *executionContext) _EditCommentOperation_id(ctx context.Context, field
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -625,8 +618,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_id(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_author(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -639,7 +632,7 @@ func (ec *executionContext) _EditCommentOperation_author(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.EditCommentOperation().Author(rctx, obj)
+ return ec.resolvers.BugEditCommentOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -656,9 +649,9 @@ func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, fi
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -687,8 +680,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_author(_ context.C
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_date(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -701,7 +694,7 @@ func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.EditCommentOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -713,17 +706,17 @@ func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, fiel
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -731,8 +724,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_date(_ context.Con
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_target(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_target(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_target(ctx, field)
if err != nil {
return graphql.Null
}
@@ -745,7 +738,7 @@ func (ec *executionContext) _EditCommentOperation_target(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.EditCommentOperation().Target(rctx, obj)
+ return ec.resolvers.BugEditCommentOperation().Target(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -762,9 +755,9 @@ func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, fi
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_target(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_target(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -775,8 +768,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_target(_ context.C
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_message(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -806,9 +799,9 @@ func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, f
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -819,8 +812,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_message(_ context.
return fc, nil
}
-func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_EditCommentOperation_files(ctx, field)
+func (ec *executionContext) _BugEditCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugEditCommentOperation_files(ctx, field)
if err != nil {
return graphql.Null
}
@@ -850,9 +843,9 @@ func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, fie
return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_EditCommentOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugEditCommentOperation_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "EditCommentOperation",
+ Object: "BugEditCommentOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -863,8 +856,8 @@ func (ec *executionContext) fieldContext_EditCommentOperation_files(_ context.Co
return fc, nil
}
-func (ec *executionContext) _LabelChangeOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeOperation_id(ctx, field)
+func (ec *executionContext) _BugLabelChangeOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -894,9 +887,9 @@ func (ec *executionContext) _LabelChangeOperation_id(ctx context.Context, field
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeOperation",
+ Object: "BugLabelChangeOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -907,8 +900,8 @@ func (ec *executionContext) fieldContext_LabelChangeOperation_id(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeOperation_author(ctx, field)
+func (ec *executionContext) _BugLabelChangeOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -921,7 +914,7 @@ func (ec *executionContext) _LabelChangeOperation_author(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.LabelChangeOperation().Author(rctx, obj)
+ return ec.resolvers.BugLabelChangeOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -938,9 +931,9 @@ func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, fi
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeOperation",
+ Object: "BugLabelChangeOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -969,8 +962,8 @@ func (ec *executionContext) fieldContext_LabelChangeOperation_author(_ context.C
return fc, nil
}
-func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeOperation_date(ctx, field)
+func (ec *executionContext) _BugLabelChangeOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -983,7 +976,7 @@ func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.LabelChangeOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -995,17 +988,17 @@ func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, fiel
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeOperation",
+ Object: "BugLabelChangeOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -1013,8 +1006,8 @@ func (ec *executionContext) fieldContext_LabelChangeOperation_date(_ context.Con
return fc, nil
}
-func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeOperation_added(ctx, field)
+func (ec *executionContext) _BugLabelChangeOperation_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeOperation_added(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1044,9 +1037,9 @@ func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, fie
return ec.marshalNLabel2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabelᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeOperation_added(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeOperation_added(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeOperation",
+ Object: "BugLabelChangeOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1063,8 +1056,8 @@ func (ec *executionContext) fieldContext_LabelChangeOperation_added(_ context.Co
return fc, nil
}
-func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeOperation_removed(ctx, field)
+func (ec *executionContext) _BugLabelChangeOperation_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeOperation_removed(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1094,9 +1087,9 @@ func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, f
return ec.marshalNLabel2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabelᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeOperation_removed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeOperation_removed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeOperation",
+ Object: "BugLabelChangeOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1113,288 +1106,8 @@ func (ec *executionContext) fieldContext_LabelChangeOperation_removed(_ context.
return fc, nil
}
-func (ec *executionContext) _OperationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationConnection_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 {
- if !graphql.HasFieldError(ctx, fc) {
- ec.Errorf(ctx, "must not be null")
- }
- return graphql.Null
- }
- res := resTmp.([]*models.OperationEdge)
- fc.Result = res
- return ec.marshalNOperationEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdgeᚄ(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_OperationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationConnection",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- switch field.Name {
- case "cursor":
- return ec.fieldContext_OperationEdge_cursor(ctx, field)
- case "node":
- return ec.fieldContext_OperationEdge_node(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type OperationEdge", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationConnection_nodes(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.Nodes, 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.([]dag.Operation)
- fc.Result = res
- return ec.marshalNOperation2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperationᚄ(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_OperationConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationConnection",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationConnection_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 {
- if !graphql.HasFieldError(ctx, fc) {
- ec.Errorf(ctx, "must not be null")
- }
- return graphql.Null
- }
- res := resTmp.(*models.PageInfo)
- fc.Result = res
- return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_OperationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationConnection",
- 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 "startCursor":
- return ec.fieldContext_PageInfo_startCursor(ctx, field)
- case "endCursor":
- return ec.fieldContext_PageInfo_endCursor(ctx, field)
- }
- return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationConnection_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_OperationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationConnection",
- 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) _OperationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationEdge_cursor(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.Cursor, 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)
- fc.Result = res
- return ec.marshalNString2string(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_OperationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationEdge",
- 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) _OperationEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_OperationEdge_node(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.Node, 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.(dag.Operation)
- fc.Result = res
- return ec.marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx, field.Selections, res)
-}
-
-func (ec *executionContext) fieldContext_OperationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
- fc = &graphql.FieldContext{
- Object: "OperationEdge",
- Field: field,
- IsMethod: false,
- IsResolver: false,
- Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
- return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
- },
- }
- return fc, nil
-}
-
-func (ec *executionContext) _SetStatusOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusOperation_id(ctx, field)
+func (ec *executionContext) _BugSetStatusOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1424,9 +1137,9 @@ func (ec *executionContext) _SetStatusOperation_id(ctx context.Context, field gr
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusOperation",
+ Object: "BugSetStatusOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -1437,8 +1150,8 @@ func (ec *executionContext) fieldContext_SetStatusOperation_id(_ context.Context
return fc, nil
}
-func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusOperation_author(ctx, field)
+func (ec *executionContext) _BugSetStatusOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1451,7 +1164,7 @@ func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.SetStatusOperation().Author(rctx, obj)
+ return ec.resolvers.BugSetStatusOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1468,9 +1181,9 @@ func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, fiel
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusOperation",
+ Object: "BugSetStatusOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1499,8 +1212,8 @@ func (ec *executionContext) fieldContext_SetStatusOperation_author(_ context.Con
return fc, nil
}
-func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusOperation_date(ctx, field)
+func (ec *executionContext) _BugSetStatusOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1513,7 +1226,7 @@ func (ec *executionContext) _SetStatusOperation_date(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 ec.resolvers.SetStatusOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -1525,17 +1238,17 @@ func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusOperation",
+ Object: "BugSetStatusOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -1543,8 +1256,8 @@ func (ec *executionContext) fieldContext_SetStatusOperation_date(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusOperation_status(ctx, field)
+func (ec *executionContext) _BugSetStatusOperation_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusOperation_status(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1574,9 +1287,9 @@ func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, fiel
return ec.marshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusOperation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusOperation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusOperation",
+ Object: "BugSetStatusOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1587,8 +1300,8 @@ func (ec *executionContext) fieldContext_SetStatusOperation_status(_ context.Con
return fc, nil
}
-func (ec *executionContext) _SetTitleOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleOperation_id(ctx, field)
+func (ec *executionContext) _BugSetTitleOperation_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleOperation_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1618,9 +1331,9 @@ func (ec *executionContext) _SetTitleOperation_id(ctx context.Context, field gra
return ec.marshalNID2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleOperation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleOperation",
+ Object: "BugSetTitleOperation",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -1631,8 +1344,8 @@ func (ec *executionContext) fieldContext_SetTitleOperation_id(_ context.Context,
return fc, nil
}
-func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleOperation_author(ctx, field)
+func (ec *executionContext) _BugSetTitleOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleOperation_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1645,7 +1358,7 @@ func (ec *executionContext) _SetTitleOperation_author(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 ec.resolvers.SetTitleOperation().Author(rctx, obj)
+ return ec.resolvers.BugSetTitleOperation().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1662,9 +1375,9 @@ func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleOperation_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleOperation",
+ Object: "BugSetTitleOperation",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1693,8 +1406,8 @@ func (ec *executionContext) fieldContext_SetTitleOperation_author(_ context.Cont
return fc, nil
}
-func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleOperation_date(ctx, field)
+func (ec *executionContext) _BugSetTitleOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleOperation_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1707,7 +1420,7 @@ func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field g
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.SetTitleOperation().Date(rctx, obj)
+ return obj.Time(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -1719,17 +1432,17 @@ func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field g
}
return graphql.Null
}
- res := resTmp.(*time.Time)
+ res := resTmp.(time.Time)
fc.Result = res
- return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
+ return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleOperation_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleOperation",
+ Object: "BugSetTitleOperation",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Time does not have child fields")
},
@@ -1737,8 +1450,8 @@ func (ec *executionContext) fieldContext_SetTitleOperation_date(_ context.Contex
return fc, nil
}
-func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleOperation_title(ctx, field)
+func (ec *executionContext) _BugSetTitleOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleOperation_title(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1768,9 +1481,9 @@ func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleOperation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleOperation_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleOperation",
+ Object: "BugSetTitleOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1781,8 +1494,8 @@ func (ec *executionContext) fieldContext_SetTitleOperation_title(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleOperation_was(ctx, field)
+func (ec *executionContext) _BugSetTitleOperation_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleOperation_was(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1812,9 +1525,9 @@ func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field gr
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleOperation_was(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleOperation_was(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleOperation",
+ Object: "BugSetTitleOperation",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1833,62 +1546,23 @@ func (ec *executionContext) fieldContext_SetTitleOperation_was(_ context.Context
// region ************************** interface.gotpl ***************************
-func (ec *executionContext) _Operation(ctx context.Context, sel ast.SelectionSet, obj dag.Operation) graphql.Marshaler {
- switch obj := (obj).(type) {
- case nil:
- return graphql.Null
- case *bug.CreateOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._CreateOperation(ctx, sel, obj)
- case *bug.SetTitleOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._SetTitleOperation(ctx, sel, obj)
- case *bug.AddCommentOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._AddCommentOperation(ctx, sel, obj)
- case *bug.EditCommentOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._EditCommentOperation(ctx, sel, obj)
- case *bug.SetStatusOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._SetStatusOperation(ctx, sel, obj)
- case *bug.LabelChangeOperation:
- if obj == nil {
- return graphql.Null
- }
- return ec._LabelChangeOperation(ctx, sel, obj)
- default:
- panic(fmt.Errorf("unexpected type %T", obj))
- }
-}
-
// endregion ************************** interface.gotpl ***************************
// region **************************** object.gotpl ****************************
-var addCommentOperationImplementors = []string{"AddCommentOperation", "Operation", "Authored"}
+var bugAddCommentOperationImplementors = []string{"BugAddCommentOperation", "Operation", "Authored"}
-func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.AddCommentOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, addCommentOperationImplementors)
+func (ec *executionContext) _BugAddCommentOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.AddCommentOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugAddCommentOperationImplementors)
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("AddCommentOperation")
+ out.Values[i] = graphql.MarshalString("BugAddCommentOperation")
case "id":
- out.Values[i] = ec._AddCommentOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -1901,7 +1575,7 @@ func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.Se
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._AddCommentOperation_author(ctx, field, obj)
+ res = ec._BugAddCommentOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -1929,48 +1603,17 @@ func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.Se
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._AddCommentOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugAddCommentOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "message":
- out.Values[i] = ec._AddCommentOperation_message(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentOperation_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "files":
- out.Values[i] = ec._AddCommentOperation_files(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentOperation_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -1997,19 +1640,19 @@ func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.Se
return out
}
-var createOperationImplementors = []string{"CreateOperation", "Operation", "Authored"}
+var bugCreateOperationImplementors = []string{"BugCreateOperation", "Operation", "Authored"}
-func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.CreateOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, createOperationImplementors)
+func (ec *executionContext) _BugCreateOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.CreateOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCreateOperationImplementors)
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("CreateOperation")
+ out.Values[i] = graphql.MarshalString("BugCreateOperation")
case "id":
- out.Values[i] = ec._CreateOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugCreateOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2022,7 +1665,7 @@ func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.Select
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._CreateOperation_author(ctx, field, obj)
+ res = ec._BugCreateOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2050,53 +1693,22 @@ func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.Select
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._CreateOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugCreateOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "title":
- out.Values[i] = ec._CreateOperation_title(ctx, field, obj)
+ out.Values[i] = ec._BugCreateOperation_title(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "message":
- out.Values[i] = ec._CreateOperation_message(ctx, field, obj)
+ out.Values[i] = ec._BugCreateOperation_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "files":
- out.Values[i] = ec._CreateOperation_files(ctx, field, obj)
+ out.Values[i] = ec._BugCreateOperation_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2123,19 +1735,19 @@ func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.Select
return out
}
-var editCommentOperationImplementors = []string{"EditCommentOperation", "Operation", "Authored"}
+var bugEditCommentOperationImplementors = []string{"BugEditCommentOperation", "Operation", "Authored"}
-func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.EditCommentOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, editCommentOperationImplementors)
+func (ec *executionContext) _BugEditCommentOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.EditCommentOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugEditCommentOperationImplementors)
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("EditCommentOperation")
+ out.Values[i] = graphql.MarshalString("BugEditCommentOperation")
case "id":
- out.Values[i] = ec._EditCommentOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2148,7 +1760,7 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._EditCommentOperation_author(ctx, field, obj)
+ res = ec._BugEditCommentOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2176,41 +1788,10 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._EditCommentOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugEditCommentOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "target":
field := field
@@ -2220,7 +1801,7 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._EditCommentOperation_target(ctx, field, obj)
+ res = ec._BugEditCommentOperation_target(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2248,12 +1829,12 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "message":
- out.Values[i] = ec._EditCommentOperation_message(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentOperation_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "files":
- out.Values[i] = ec._EditCommentOperation_files(ctx, field, obj)
+ out.Values[i] = ec._BugEditCommentOperation_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2280,19 +1861,19 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
return out
}
-var labelChangeOperationImplementors = []string{"LabelChangeOperation", "Operation", "Authored"}
+var bugLabelChangeOperationImplementors = []string{"BugLabelChangeOperation", "Operation", "Authored"}
-func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, labelChangeOperationImplementors)
+func (ec *executionContext) _BugLabelChangeOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugLabelChangeOperationImplementors)
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("LabelChangeOperation")
+ out.Values[i] = graphql.MarshalString("BugLabelChangeOperation")
case "id":
- out.Values[i] = ec._LabelChangeOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugLabelChangeOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2305,7 +1886,7 @@ func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.S
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._LabelChangeOperation_author(ctx, field, obj)
+ res = ec._BugLabelChangeOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2333,48 +1914,17 @@ func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.S
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._LabelChangeOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugLabelChangeOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "added":
- out.Values[i] = ec._LabelChangeOperation_added(ctx, field, obj)
+ out.Values[i] = ec._BugLabelChangeOperation_added(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "removed":
- out.Values[i] = ec._LabelChangeOperation_removed(ctx, field, obj)
+ out.Values[i] = ec._BugLabelChangeOperation_removed(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2401,117 +1951,19 @@ func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.S
return out
}
-var operationConnectionImplementors = []string{"OperationConnection"}
+var bugSetStatusOperationImplementors = []string{"BugSetStatusOperation", "Operation", "Authored"}
-func (ec *executionContext) _OperationConnection(ctx context.Context, sel ast.SelectionSet, obj *models.OperationConnection) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, operationConnectionImplementors)
+func (ec *executionContext) _BugSetStatusOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.SetStatusOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugSetStatusOperationImplementors)
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("OperationConnection")
- case "edges":
- out.Values[i] = ec._OperationConnection_edges(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "nodes":
- out.Values[i] = ec._OperationConnection_nodes(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "pageInfo":
- out.Values[i] = ec._OperationConnection_pageInfo(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "totalCount":
- out.Values[i] = ec._OperationConnection_totalCount(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
- }
-
- 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 operationEdgeImplementors = []string{"OperationEdge"}
-
-func (ec *executionContext) _OperationEdge(ctx context.Context, sel ast.SelectionSet, obj *models.OperationEdge) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, operationEdgeImplementors)
-
- 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("OperationEdge")
- case "cursor":
- out.Values[i] = ec._OperationEdge_cursor(ctx, field, obj)
- if out.Values[i] == graphql.Null {
- out.Invalids++
- }
- case "node":
- out.Values[i] = ec._OperationEdge_node(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
- }
-
- 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 setStatusOperationImplementors = []string{"SetStatusOperation", "Operation", "Authored"}
-
-func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.SetStatusOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, setStatusOperationImplementors)
-
- 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("SetStatusOperation")
+ out.Values[i] = graphql.MarshalString("BugSetStatusOperation")
case "id":
- out.Values[i] = ec._SetStatusOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugSetStatusOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2524,7 +1976,7 @@ func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.Sel
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetStatusOperation_author(ctx, field, obj)
+ res = ec._BugSetStatusOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2552,43 +2004,12 @@ func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.Sel
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._SetStatusOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugSetStatusOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "status":
- out.Values[i] = ec._SetStatusOperation_status(ctx, field, obj)
+ out.Values[i] = ec._BugSetStatusOperation_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2615,19 +2036,19 @@ func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.Sel
return out
}
-var setTitleOperationImplementors = []string{"SetTitleOperation", "Operation", "Authored"}
+var bugSetTitleOperationImplementors = []string{"BugSetTitleOperation", "Operation", "Authored"}
-func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.SetTitleOperation) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, setTitleOperationImplementors)
+func (ec *executionContext) _BugSetTitleOperation(ctx context.Context, sel ast.SelectionSet, obj *bug.SetTitleOperation) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugSetTitleOperationImplementors)
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("SetTitleOperation")
+ out.Values[i] = graphql.MarshalString("BugSetTitleOperation")
case "id":
- out.Values[i] = ec._SetTitleOperation_id(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitleOperation_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2640,7 +2061,7 @@ func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.Sele
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetTitleOperation_author(ctx, field, obj)
+ res = ec._BugSetTitleOperation_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2668,48 +2089,17 @@ func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.Sele
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "date":
- 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._SetTitleOperation_date(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugSetTitleOperation_date(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "title":
- out.Values[i] = ec._SetTitleOperation_title(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitleOperation_title(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "was":
- out.Values[i] = ec._SetTitleOperation_was(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitleOperation_was(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2740,186 +2130,64 @@ func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.Sele
// region ***************************** type.gotpl *****************************
-func (ec *executionContext) marshalNAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx context.Context, sel ast.SelectionSet, v *bug.AddCommentOperation) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._AddCommentOperation(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNCreateOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCreateOperation(ctx context.Context, sel ast.SelectionSet, v *bug.CreateOperation) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._CreateOperation(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNEditCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐEditCommentOperation(ctx context.Context, sel ast.SelectionSet, v *bug.EditCommentOperation) graphql.Marshaler {
- if v == nil {
- if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
- ec.Errorf(ctx, "the requested element is null which the schema does not allow")
- }
- return graphql.Null
- }
- return ec._EditCommentOperation(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNLabelChangeOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeOperation(ctx context.Context, sel ast.SelectionSet, v *bug.LabelChangeOperation) graphql.Marshaler {
+func (ec *executionContext) marshalNBugAddCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐAddCommentOperation(ctx context.Context, sel ast.SelectionSet, v *bug.AddCommentOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._LabelChangeOperation(ctx, sel, v)
+ return ec._BugAddCommentOperation(ctx, sel, v)
}
-func (ec *executionContext) marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx context.Context, sel ast.SelectionSet, v dag.Operation) graphql.Marshaler {
+func (ec *executionContext) marshalNBugCreateOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCreateOperation(ctx context.Context, sel ast.SelectionSet, v *bug.CreateOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._Operation(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNOperation2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperationᚄ(ctx context.Context, sel ast.SelectionSet, v []dag.Operation) graphql.Marshaler {
- ret := make(graphql.Array, len(v))
- var wg sync.WaitGroup
- isLen1 := len(v) == 1
- if !isLen1 {
- wg.Add(len(v))
- }
- for i := range v {
- i := i
- fc := &graphql.FieldContext{
- Index: &i,
- Result: &v[i],
- }
- ctx := graphql.WithFieldContext(ctx, fc)
- f := func(i int) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- ret = nil
- }
- }()
- if !isLen1 {
- defer wg.Done()
- }
- ret[i] = ec.marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx, sel, v[i])
- }
- if isLen1 {
- f(i)
- } else {
- go f(i)
- }
-
- }
- wg.Wait()
-
- for _, e := range ret {
- if e == graphql.Null {
- return graphql.Null
- }
- }
-
- return ret
+ return ec._BugCreateOperation(ctx, sel, v)
}
-func (ec *executionContext) marshalNOperationConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx context.Context, sel ast.SelectionSet, v models.OperationConnection) graphql.Marshaler {
- return ec._OperationConnection(ctx, sel, &v)
-}
-
-func (ec *executionContext) marshalNOperationConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx context.Context, sel ast.SelectionSet, v *models.OperationConnection) graphql.Marshaler {
+func (ec *executionContext) marshalNBugEditCommentOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐEditCommentOperation(ctx context.Context, sel ast.SelectionSet, v *bug.EditCommentOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._OperationConnection(ctx, sel, v)
-}
-
-func (ec *executionContext) marshalNOperationEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationEdge) graphql.Marshaler {
- ret := make(graphql.Array, len(v))
- var wg sync.WaitGroup
- isLen1 := len(v) == 1
- if !isLen1 {
- wg.Add(len(v))
- }
- for i := range v {
- i := i
- fc := &graphql.FieldContext{
- Index: &i,
- Result: &v[i],
- }
- ctx := graphql.WithFieldContext(ctx, fc)
- f := func(i int) {
- defer func() {
- if r := recover(); r != nil {
- ec.Error(ctx, ec.Recover(ctx, r))
- ret = nil
- }
- }()
- if !isLen1 {
- defer wg.Done()
- }
- ret[i] = ec.marshalNOperationEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdge(ctx, sel, v[i])
- }
- if isLen1 {
- f(i)
- } else {
- go f(i)
- }
-
- }
- wg.Wait()
-
- for _, e := range ret {
- if e == graphql.Null {
- return graphql.Null
- }
- }
-
- return ret
+ return ec._BugEditCommentOperation(ctx, sel, v)
}
-func (ec *executionContext) marshalNOperationEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdge(ctx context.Context, sel ast.SelectionSet, v *models.OperationEdge) graphql.Marshaler {
+func (ec *executionContext) marshalNBugLabelChangeOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeOperation(ctx context.Context, sel ast.SelectionSet, v *bug.LabelChangeOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._OperationEdge(ctx, sel, v)
+ return ec._BugLabelChangeOperation(ctx, sel, v)
}
-func (ec *executionContext) marshalNSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx context.Context, sel ast.SelectionSet, v *bug.SetStatusOperation) graphql.Marshaler {
+func (ec *executionContext) marshalNBugSetStatusOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetStatusOperation(ctx context.Context, sel ast.SelectionSet, v *bug.SetStatusOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._SetStatusOperation(ctx, sel, v)
+ return ec._BugSetStatusOperation(ctx, sel, v)
}
-func (ec *executionContext) marshalNSetTitleOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetTitleOperation(ctx context.Context, sel ast.SelectionSet, v *bug.SetTitleOperation) graphql.Marshaler {
+func (ec *executionContext) marshalNBugSetTitleOperation2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐSetTitleOperation(ctx context.Context, sel ast.SelectionSet, v *bug.SetTitleOperation) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._SetTitleOperation(ctx, sel, v)
+ return ec._BugSetTitleOperation(ctx, sel, v)
}
// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/timeline.generated.go b/api/graphql/graph/bug_timeline.generated.go
index f2945710..4565a49b 100644
--- a/api/graphql/graph/timeline.generated.go
+++ b/api/graphql/graph/bug_timeline.generated.go
@@ -22,35 +22,30 @@ import (
// region ************************** generated!.gotpl **************************
-type AddCommentTimelineItemResolver interface {
- ID(ctx context.Context, obj *bug.AddCommentTimelineItem) (entity.CombinedId, error)
+type BugAddCommentTimelineItemResolver interface {
Author(ctx context.Context, obj *bug.AddCommentTimelineItem) (models.IdentityWrapper, error)
CreatedAt(ctx context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error)
LastEdit(ctx context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error)
}
-type CommentHistoryStepResolver interface {
+type BugCommentHistoryStepResolver interface {
Date(ctx context.Context, obj *bug.CommentHistoryStep) (*time.Time, error)
}
-type CreateTimelineItemResolver interface {
- ID(ctx context.Context, obj *bug.CreateTimelineItem) (entity.CombinedId, error)
+type BugCreateTimelineItemResolver interface {
Author(ctx context.Context, obj *bug.CreateTimelineItem) (models.IdentityWrapper, error)
CreatedAt(ctx context.Context, obj *bug.CreateTimelineItem) (*time.Time, error)
LastEdit(ctx context.Context, obj *bug.CreateTimelineItem) (*time.Time, error)
}
-type LabelChangeTimelineItemResolver interface {
- ID(ctx context.Context, obj *bug.LabelChangeTimelineItem) (entity.CombinedId, error)
+type BugLabelChangeTimelineItemResolver interface {
Author(ctx context.Context, obj *bug.LabelChangeTimelineItem) (models.IdentityWrapper, error)
Date(ctx context.Context, obj *bug.LabelChangeTimelineItem) (*time.Time, error)
}
-type SetStatusTimelineItemResolver interface {
- ID(ctx context.Context, obj *bug.SetStatusTimelineItem) (entity.CombinedId, error)
+type BugSetStatusTimelineItemResolver interface {
Author(ctx context.Context, obj *bug.SetStatusTimelineItem) (models.IdentityWrapper, error)
Date(ctx context.Context, obj *bug.SetStatusTimelineItem) (*time.Time, error)
}
-type SetTitleTimelineItemResolver interface {
- ID(ctx context.Context, obj *bug.SetTitleTimelineItem) (entity.CombinedId, error)
+type BugSetTitleTimelineItemResolver interface {
Author(ctx context.Context, obj *bug.SetTitleTimelineItem) (models.IdentityWrapper, error)
Date(ctx context.Context, obj *bug.SetTitleTimelineItem) (*time.Time, error)
}
@@ -67,8 +62,8 @@ type SetTitleTimelineItemResolver interface {
// region **************************** field.gotpl *****************************
-func (ec *executionContext) _AddCommentTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_id(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -81,7 +76,7 @@ func (ec *executionContext) _AddCommentTimelineItem_id(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.AddCommentTimelineItem().ID(rctx, obj)
+ return obj.CombinedId(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -98,12 +93,12 @@ func (ec *executionContext) _AddCommentTimelineItem_id(ctx context.Context, fiel
return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type CombinedId does not have child fields")
},
@@ -111,8 +106,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_id(_ context.Con
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_author(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -125,7 +120,7 @@ func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context,
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.AddCommentTimelineItem().Author(rctx, obj)
+ return ec.resolvers.BugAddCommentTimelineItem().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -142,9 +137,9 @@ func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context,
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -173,8 +168,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_author(_ context
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_message(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -204,9 +199,9 @@ func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context,
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -217,8 +212,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_message(_ contex
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_messageIsEmpty(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_messageIsEmpty(ctx, field)
if err != nil {
return graphql.Null
}
@@ -248,9 +243,9 @@ func (ec *executionContext) _AddCommentTimelineItem_messageIsEmpty(ctx context.C
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_messageIsEmpty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_messageIsEmpty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -261,8 +256,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_messageIsEmpty(_
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_files(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_files(ctx, field)
if err != nil {
return graphql.Null
}
@@ -292,9 +287,9 @@ func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, f
return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -305,8 +300,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_files(_ context.
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_createdAt(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
@@ -319,7 +314,7 @@ func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Contex
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.AddCommentTimelineItem().CreatedAt(rctx, obj)
+ return ec.resolvers.BugAddCommentTimelineItem().CreatedAt(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -336,9 +331,9 @@ func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Contex
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -349,8 +344,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_createdAt(_ cont
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_lastEdit(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_lastEdit(ctx, field)
if err != nil {
return graphql.Null
}
@@ -363,7 +358,7 @@ func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.AddCommentTimelineItem().LastEdit(rctx, obj)
+ return ec.resolvers.BugAddCommentTimelineItem().LastEdit(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -380,9 +375,9 @@ func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_lastEdit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_lastEdit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -393,8 +388,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_lastEdit(_ conte
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_edited(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_edited(ctx, field)
if err != nil {
return graphql.Null
}
@@ -424,9 +419,9 @@ func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context,
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_edited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_edited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -437,8 +432,8 @@ func (ec *executionContext) fieldContext_AddCommentTimelineItem_edited(_ context
return fc, nil
}
-func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_AddCommentTimelineItem_history(ctx, field)
+func (ec *executionContext) _BugAddCommentTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugAddCommentTimelineItem_history(ctx, field)
if err != nil {
return graphql.Null
}
@@ -465,30 +460,30 @@ func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context,
}
res := resTmp.([]bug.CommentHistoryStep)
fc.Result = res
- return ec.marshalNCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx, field.Selections, res)
+ return ec.marshalNBugCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_AddCommentTimelineItem_history(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugAddCommentTimelineItem_history(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "AddCommentTimelineItem",
+ Object: "BugAddCommentTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "message":
- return ec.fieldContext_CommentHistoryStep_message(ctx, field)
+ return ec.fieldContext_BugCommentHistoryStep_message(ctx, field)
case "date":
- return ec.fieldContext_CommentHistoryStep_date(ctx, field)
+ return ec.fieldContext_BugCommentHistoryStep_date(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type CommentHistoryStep", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugCommentHistoryStep", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentHistoryStep_message(ctx, field)
+func (ec *executionContext) _BugCommentHistoryStep_message(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentHistoryStep_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -518,9 +513,9 @@ func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, fie
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CommentHistoryStep_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCommentHistoryStep_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CommentHistoryStep",
+ Object: "BugCommentHistoryStep",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -531,8 +526,8 @@ func (ec *executionContext) fieldContext_CommentHistoryStep_message(_ context.Co
return fc, nil
}
-func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CommentHistoryStep_date(ctx, field)
+func (ec *executionContext) _BugCommentHistoryStep_date(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCommentHistoryStep_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -545,7 +540,7 @@ func (ec *executionContext) _CommentHistoryStep_date(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 ec.resolvers.CommentHistoryStep().Date(rctx, obj)
+ return ec.resolvers.BugCommentHistoryStep().Date(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -562,9 +557,9 @@ func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CommentHistoryStep_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCommentHistoryStep_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CommentHistoryStep",
+ Object: "BugCommentHistoryStep",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -575,8 +570,8 @@ func (ec *executionContext) fieldContext_CommentHistoryStep_date(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_id(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -589,7 +584,7 @@ func (ec *executionContext) _CreateTimelineItem_id(ctx context.Context, field gr
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.CreateTimelineItem().ID(rctx, obj)
+ return obj.CombinedId(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -606,12 +601,12 @@ func (ec *executionContext) _CreateTimelineItem_id(ctx context.Context, field gr
return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type CombinedId does not have child fields")
},
@@ -619,8 +614,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_id(_ context.Context
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_author(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -633,7 +628,7 @@ func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.CreateTimelineItem().Author(rctx, obj)
+ return ec.resolvers.BugCreateTimelineItem().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -650,9 +645,9 @@ func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, fiel
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -681,8 +676,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_author(_ context.Con
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_message(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_message(ctx, field)
if err != nil {
return graphql.Null
}
@@ -712,9 +707,9 @@ func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, fie
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -725,8 +720,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_message(_ context.Co
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_messageIsEmpty(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_messageIsEmpty(ctx, field)
if err != nil {
return graphql.Null
}
@@ -756,9 +751,9 @@ func (ec *executionContext) _CreateTimelineItem_messageIsEmpty(ctx context.Conte
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_messageIsEmpty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_messageIsEmpty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -769,8 +764,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_messageIsEmpty(_ con
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_files(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_files(ctx, field)
if err != nil {
return graphql.Null
}
@@ -800,9 +795,9 @@ func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field
return ec.marshalNHash2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋrepositoryᚐHashᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -813,8 +808,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_files(_ context.Cont
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_createdAt(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_createdAt(ctx, field)
if err != nil {
return graphql.Null
}
@@ -827,7 +822,7 @@ func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, f
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.CreateTimelineItem().CreatedAt(rctx, obj)
+ return ec.resolvers.BugCreateTimelineItem().CreatedAt(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -844,9 +839,9 @@ func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, f
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -857,8 +852,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_createdAt(_ context.
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_lastEdit(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_lastEdit(ctx, field)
if err != nil {
return graphql.Null
}
@@ -871,7 +866,7 @@ func (ec *executionContext) _CreateTimelineItem_lastEdit(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.CreateTimelineItem().LastEdit(rctx, obj)
+ return ec.resolvers.BugCreateTimelineItem().LastEdit(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -888,9 +883,9 @@ func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, fi
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_lastEdit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_lastEdit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -901,8 +896,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_lastEdit(_ context.C
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_edited(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_edited(ctx, field)
if err != nil {
return graphql.Null
}
@@ -932,9 +927,9 @@ func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, fiel
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_edited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_edited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: true,
IsResolver: false,
@@ -945,8 +940,8 @@ func (ec *executionContext) fieldContext_CreateTimelineItem_edited(_ context.Con
return fc, nil
}
-func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_CreateTimelineItem_history(ctx, field)
+func (ec *executionContext) _BugCreateTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugCreateTimelineItem_history(ctx, field)
if err != nil {
return graphql.Null
}
@@ -973,30 +968,30 @@ func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, fie
}
res := resTmp.([]bug.CommentHistoryStep)
fc.Result = res
- return ec.marshalNCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx, field.Selections, res)
+ return ec.marshalNBugCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_CreateTimelineItem_history(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugCreateTimelineItem_history(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "CreateTimelineItem",
+ Object: "BugCreateTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "message":
- return ec.fieldContext_CommentHistoryStep_message(ctx, field)
+ return ec.fieldContext_BugCommentHistoryStep_message(ctx, field)
case "date":
- return ec.fieldContext_CommentHistoryStep_date(ctx, field)
+ return ec.fieldContext_BugCommentHistoryStep_date(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type CommentHistoryStep", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugCommentHistoryStep", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _LabelChangeTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeTimelineItem_id(ctx, field)
+func (ec *executionContext) _BugLabelChangeTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeTimelineItem_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1009,7 +1004,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_id(ctx context.Context, fie
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.LabelChangeTimelineItem().ID(rctx, obj)
+ return obj.CombinedId(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -1026,12 +1021,12 @@ func (ec *executionContext) _LabelChangeTimelineItem_id(ctx context.Context, fie
return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeTimelineItem",
+ Object: "BugLabelChangeTimelineItem",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type CombinedId does not have child fields")
},
@@ -1039,8 +1034,8 @@ func (ec *executionContext) fieldContext_LabelChangeTimelineItem_id(_ context.Co
return fc, nil
}
-func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeTimelineItem_author(ctx, field)
+func (ec *executionContext) _BugLabelChangeTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeTimelineItem_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1053,7 +1048,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context,
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.LabelChangeTimelineItem().Author(rctx, obj)
+ return ec.resolvers.BugLabelChangeTimelineItem().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1070,9 +1065,9 @@ func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context,
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeTimelineItem",
+ Object: "BugLabelChangeTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1101,8 +1096,8 @@ func (ec *executionContext) fieldContext_LabelChangeTimelineItem_author(_ contex
return fc, nil
}
-func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeTimelineItem_date(ctx, field)
+func (ec *executionContext) _BugLabelChangeTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeTimelineItem_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1115,7 +1110,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, f
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.LabelChangeTimelineItem().Date(rctx, obj)
+ return ec.resolvers.BugLabelChangeTimelineItem().Date(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1132,9 +1127,9 @@ func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, f
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeTimelineItem",
+ Object: "BugLabelChangeTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1145,8 +1140,8 @@ func (ec *executionContext) fieldContext_LabelChangeTimelineItem_date(_ context.
return fc, nil
}
-func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeTimelineItem_added(ctx, field)
+func (ec *executionContext) _BugLabelChangeTimelineItem_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeTimelineItem_added(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1176,9 +1171,9 @@ func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context,
return ec.marshalNLabel2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabelᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeTimelineItem_added(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeTimelineItem_added(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeTimelineItem",
+ Object: "BugLabelChangeTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1195,8 +1190,8 @@ func (ec *executionContext) fieldContext_LabelChangeTimelineItem_added(_ context
return fc, nil
}
-func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_LabelChangeTimelineItem_removed(ctx, field)
+func (ec *executionContext) _BugLabelChangeTimelineItem_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugLabelChangeTimelineItem_removed(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1226,9 +1221,9 @@ func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context
return ec.marshalNLabel2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabelᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_LabelChangeTimelineItem_removed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugLabelChangeTimelineItem_removed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "LabelChangeTimelineItem",
+ Object: "BugLabelChangeTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1245,8 +1240,8 @@ func (ec *executionContext) fieldContext_LabelChangeTimelineItem_removed(_ conte
return fc, nil
}
-func (ec *executionContext) _SetStatusTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusTimelineItem_id(ctx, field)
+func (ec *executionContext) _BugSetStatusTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusTimelineItem_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1259,7 +1254,7 @@ func (ec *executionContext) _SetStatusTimelineItem_id(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 ec.resolvers.SetStatusTimelineItem().ID(rctx, obj)
+ return obj.CombinedId(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -1276,12 +1271,12 @@ func (ec *executionContext) _SetStatusTimelineItem_id(ctx context.Context, field
return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusTimelineItem",
+ Object: "BugSetStatusTimelineItem",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type CombinedId does not have child fields")
},
@@ -1289,8 +1284,8 @@ func (ec *executionContext) fieldContext_SetStatusTimelineItem_id(_ context.Cont
return fc, nil
}
-func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusTimelineItem_author(ctx, field)
+func (ec *executionContext) _BugSetStatusTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusTimelineItem_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1303,7 +1298,7 @@ func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, f
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.SetStatusTimelineItem().Author(rctx, obj)
+ return ec.resolvers.BugSetStatusTimelineItem().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1320,9 +1315,9 @@ func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, f
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusTimelineItem",
+ Object: "BugSetStatusTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1351,8 +1346,8 @@ func (ec *executionContext) fieldContext_SetStatusTimelineItem_author(_ context.
return fc, nil
}
-func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusTimelineItem_date(ctx, field)
+func (ec *executionContext) _BugSetStatusTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusTimelineItem_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1365,7 +1360,7 @@ func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, fie
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.SetStatusTimelineItem().Date(rctx, obj)
+ return ec.resolvers.BugSetStatusTimelineItem().Date(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1382,9 +1377,9 @@ func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, fie
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusTimelineItem",
+ Object: "BugSetStatusTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1395,8 +1390,8 @@ func (ec *executionContext) fieldContext_SetStatusTimelineItem_date(_ context.Co
return fc, nil
}
-func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetStatusTimelineItem_status(ctx, field)
+func (ec *executionContext) _BugSetStatusTimelineItem_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetStatusTimelineItem_status(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1426,9 +1421,9 @@ func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, f
return ec.marshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetStatusTimelineItem_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetStatusTimelineItem_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetStatusTimelineItem",
+ Object: "BugSetStatusTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1439,8 +1434,8 @@ func (ec *executionContext) fieldContext_SetStatusTimelineItem_status(_ context.
return fc, nil
}
-func (ec *executionContext) _SetTitleTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleTimelineItem_id(ctx, field)
+func (ec *executionContext) _BugSetTitleTimelineItem_id(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleTimelineItem_id(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1453,7 +1448,7 @@ func (ec *executionContext) _SetTitleTimelineItem_id(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 ec.resolvers.SetTitleTimelineItem().ID(rctx, obj)
+ return obj.CombinedId(), nil
})
if err != nil {
ec.Error(ctx, err)
@@ -1470,12 +1465,12 @@ func (ec *executionContext) _SetTitleTimelineItem_id(ctx context.Context, field
return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleTimelineItem_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleTimelineItem",
+ Object: "BugSetTitleTimelineItem",
Field: field,
IsMethod: true,
- IsResolver: true,
+ IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type CombinedId does not have child fields")
},
@@ -1483,8 +1478,8 @@ func (ec *executionContext) fieldContext_SetTitleTimelineItem_id(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleTimelineItem_author(ctx, field)
+func (ec *executionContext) _BugSetTitleTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleTimelineItem_author(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1497,7 +1492,7 @@ func (ec *executionContext) _SetTitleTimelineItem_author(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.SetTitleTimelineItem().Author(rctx, obj)
+ return ec.resolvers.BugSetTitleTimelineItem().Author(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1514,9 +1509,9 @@ func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, fi
return ec.marshalNIdentity2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityWrapper(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleTimelineItem_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleTimelineItem",
+ Object: "BugSetTitleTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1545,8 +1540,8 @@ func (ec *executionContext) fieldContext_SetTitleTimelineItem_author(_ context.C
return fc, nil
}
-func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleTimelineItem_date(ctx, field)
+func (ec *executionContext) _BugSetTitleTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleTimelineItem_date(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1559,7 +1554,7 @@ func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, fiel
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.SetTitleTimelineItem().Date(rctx, obj)
+ return ec.resolvers.BugSetTitleTimelineItem().Date(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
@@ -1576,9 +1571,9 @@ func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, fiel
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleTimelineItem_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleTimelineItem",
+ Object: "BugSetTitleTimelineItem",
Field: field,
IsMethod: true,
IsResolver: true,
@@ -1589,8 +1584,8 @@ func (ec *executionContext) fieldContext_SetTitleTimelineItem_date(_ context.Con
return fc, nil
}
-func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleTimelineItem_title(ctx, field)
+func (ec *executionContext) _BugSetTitleTimelineItem_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleTimelineItem_title(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1620,9 +1615,9 @@ func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, fie
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleTimelineItem_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleTimelineItem_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleTimelineItem",
+ Object: "BugSetTitleTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1633,8 +1628,8 @@ func (ec *executionContext) fieldContext_SetTitleTimelineItem_title(_ context.Co
return fc, nil
}
-func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_SetTitleTimelineItem_was(ctx, field)
+func (ec *executionContext) _BugSetTitleTimelineItem_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugSetTitleTimelineItem_was(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1664,9 +1659,9 @@ func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_SetTitleTimelineItem_was(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugSetTitleTimelineItem_was(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "SetTitleTimelineItem",
+ Object: "BugSetTitleTimelineItem",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1677,8 +1672,8 @@ func (ec *executionContext) fieldContext_SetTitleTimelineItem_was(_ context.Cont
return fc, nil
}
-func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemConnection_edges(ctx, field)
+func (ec *executionContext) _BugTimelineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemConnection_edges(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1703,32 +1698,32 @@ func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, f
}
return graphql.Null
}
- res := resTmp.([]*models.TimelineItemEdge)
+ res := resTmp.([]*models.BugTimelineItemEdge)
fc.Result = res
- return ec.marshalNTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemEdgeᚄ(ctx, field.Selections, res)
+ return ec.marshalNBugTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemEdgeᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemConnection",
+ Object: "BugTimelineItemConnection",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "cursor":
- return ec.fieldContext_TimelineItemEdge_cursor(ctx, field)
+ return ec.fieldContext_BugTimelineItemEdge_cursor(ctx, field)
case "node":
- return ec.fieldContext_TimelineItemEdge_node(ctx, field)
+ return ec.fieldContext_BugTimelineItemEdge_node(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type TimelineItemEdge", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugTimelineItemEdge", field.Name)
},
}
return fc, nil
}
-func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemConnection_nodes(ctx, field)
+func (ec *executionContext) _BugTimelineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemConnection_nodes(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1755,12 +1750,12 @@ func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, f
}
res := resTmp.([]bug.TimelineItem)
fc.Result = res
- return ec.marshalNTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItemᚄ(ctx, field.Selections, res)
+ return ec.marshalNBugTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItemᚄ(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemConnection",
+ Object: "BugTimelineItemConnection",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1771,8 +1766,8 @@ func (ec *executionContext) fieldContext_TimelineItemConnection_nodes(_ context.
return fc, nil
}
-func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemConnection_pageInfo(ctx, field)
+func (ec *executionContext) _BugTimelineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemConnection_pageInfo(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1802,9 +1797,9 @@ func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemConnection",
+ Object: "BugTimelineItemConnection",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1825,8 +1820,8 @@ func (ec *executionContext) fieldContext_TimelineItemConnection_pageInfo(_ conte
return fc, nil
}
-func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemConnection_totalCount(ctx, field)
+func (ec *executionContext) _BugTimelineItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemConnection_totalCount(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1856,9 +1851,9 @@ func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Conte
return ec.marshalNInt2int(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemConnection",
+ Object: "BugTimelineItemConnection",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1869,8 +1864,8 @@ func (ec *executionContext) fieldContext_TimelineItemConnection_totalCount(_ con
return fc, nil
}
-func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemEdge_cursor(ctx, field)
+func (ec *executionContext) _BugTimelineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemEdge_cursor(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1900,9 +1895,9 @@ func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field
return ec.marshalNString2string(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemEdge",
+ Object: "BugTimelineItemEdge",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1913,8 +1908,8 @@ func (ec *executionContext) fieldContext_TimelineItemEdge_cursor(_ context.Conte
return fc, nil
}
-func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_TimelineItemEdge_node(ctx, field)
+func (ec *executionContext) _BugTimelineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.BugTimelineItemEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_BugTimelineItemEdge_node(ctx, field)
if err != nil {
return graphql.Null
}
@@ -1941,12 +1936,12 @@ func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field gr
}
res := resTmp.(bug.TimelineItem)
fc.Result = res
- return ec.marshalNTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx, field.Selections, res)
+ return ec.marshalNBugTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_TimelineItemEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_BugTimelineItemEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
- Object: "TimelineItemEdge",
+ Object: "BugTimelineItemEdge",
Field: field,
IsMethod: false,
IsResolver: false,
@@ -1965,7 +1960,7 @@ func (ec *executionContext) fieldContext_TimelineItemEdge_node(_ context.Context
// region ************************** interface.gotpl ***************************
-func (ec *executionContext) _TimelineItem(ctx context.Context, sel ast.SelectionSet, obj bug.TimelineItem) graphql.Marshaler {
+func (ec *executionContext) _BugTimelineItem(ctx context.Context, sel ast.SelectionSet, obj bug.TimelineItem) graphql.Marshaler {
switch obj := (obj).(type) {
case nil:
return graphql.Null
@@ -1973,33 +1968,33 @@ func (ec *executionContext) _TimelineItem(ctx context.Context, sel ast.Selection
if obj == nil {
return graphql.Null
}
- return ec._CreateTimelineItem(ctx, sel, obj)
+ return ec._BugCreateTimelineItem(ctx, sel, obj)
case *bug.AddCommentTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._AddCommentTimelineItem(ctx, sel, obj)
+ return ec._BugAddCommentTimelineItem(ctx, sel, obj)
case bug.LabelChangeTimelineItem:
- return ec._LabelChangeTimelineItem(ctx, sel, &obj)
+ return ec._BugLabelChangeTimelineItem(ctx, sel, &obj)
case *bug.LabelChangeTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._LabelChangeTimelineItem(ctx, sel, obj)
+ return ec._BugLabelChangeTimelineItem(ctx, sel, obj)
case bug.SetStatusTimelineItem:
- return ec._SetStatusTimelineItem(ctx, sel, &obj)
+ return ec._BugSetStatusTimelineItem(ctx, sel, &obj)
case *bug.SetStatusTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._SetStatusTimelineItem(ctx, sel, obj)
+ return ec._BugSetStatusTimelineItem(ctx, sel, obj)
case bug.SetTitleTimelineItem:
- return ec._SetTitleTimelineItem(ctx, sel, &obj)
+ return ec._BugSetTitleTimelineItem(ctx, sel, &obj)
case *bug.SetTitleTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._SetTitleTimelineItem(ctx, sel, obj)
+ return ec._BugSetTitleTimelineItem(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
}
@@ -2009,53 +2004,22 @@ func (ec *executionContext) _TimelineItem(ctx context.Context, sel ast.Selection
// region **************************** object.gotpl ****************************
-var addCommentTimelineItemImplementors = []string{"AddCommentTimelineItem", "TimelineItem", "Authored"}
+var bugAddCommentTimelineItemImplementors = []string{"BugAddCommentTimelineItem", "BugTimelineItem", "Authored"}
-func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, addCommentTimelineItemImplementors)
+func (ec *executionContext) _BugAddCommentTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugAddCommentTimelineItemImplementors)
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("AddCommentTimelineItem")
+ out.Values[i] = graphql.MarshalString("BugAddCommentTimelineItem")
case "id":
- 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._AddCommentTimelineItem_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugAddCommentTimelineItem_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "author":
field := field
@@ -2065,7 +2029,7 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._AddCommentTimelineItem_author(ctx, field, obj)
+ res = ec._BugAddCommentTimelineItem_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2093,17 +2057,17 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "message":
- out.Values[i] = ec._AddCommentTimelineItem_message(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentTimelineItem_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "messageIsEmpty":
- out.Values[i] = ec._AddCommentTimelineItem_messageIsEmpty(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentTimelineItem_messageIsEmpty(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "files":
- out.Values[i] = ec._AddCommentTimelineItem_files(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentTimelineItem_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2116,7 +2080,7 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._AddCommentTimelineItem_createdAt(ctx, field, obj)
+ res = ec._BugAddCommentTimelineItem_createdAt(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2152,7 +2116,7 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._AddCommentTimelineItem_lastEdit(ctx, field, obj)
+ res = ec._BugAddCommentTimelineItem_lastEdit(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2180,12 +2144,12 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "edited":
- out.Values[i] = ec._AddCommentTimelineItem_edited(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentTimelineItem_edited(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "history":
- out.Values[i] = ec._AddCommentTimelineItem_history(ctx, field, obj)
+ out.Values[i] = ec._BugAddCommentTimelineItem_history(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2212,19 +2176,19 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
return out
}
-var commentHistoryStepImplementors = []string{"CommentHistoryStep"}
+var bugCommentHistoryStepImplementors = []string{"BugCommentHistoryStep"}
-func (ec *executionContext) _CommentHistoryStep(ctx context.Context, sel ast.SelectionSet, obj *bug.CommentHistoryStep) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, commentHistoryStepImplementors)
+func (ec *executionContext) _BugCommentHistoryStep(ctx context.Context, sel ast.SelectionSet, obj *bug.CommentHistoryStep) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCommentHistoryStepImplementors)
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("CommentHistoryStep")
+ out.Values[i] = graphql.MarshalString("BugCommentHistoryStep")
case "message":
- out.Values[i] = ec._CommentHistoryStep_message(ctx, field, obj)
+ out.Values[i] = ec._BugCommentHistoryStep_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2237,7 +2201,7 @@ func (ec *executionContext) _CommentHistoryStep(ctx context.Context, sel ast.Sel
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._CommentHistoryStep_date(ctx, field, obj)
+ res = ec._BugCommentHistoryStep_date(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2287,53 +2251,22 @@ func (ec *executionContext) _CommentHistoryStep(ctx context.Context, sel ast.Sel
return out
}
-var createTimelineItemImplementors = []string{"CreateTimelineItem", "TimelineItem", "Authored"}
+var bugCreateTimelineItemImplementors = []string{"BugCreateTimelineItem", "BugTimelineItem", "Authored"}
-func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.CreateTimelineItem) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, createTimelineItemImplementors)
+func (ec *executionContext) _BugCreateTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugCreateTimelineItemImplementors)
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("CreateTimelineItem")
+ out.Values[i] = graphql.MarshalString("BugCreateTimelineItem")
case "id":
- 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._CreateTimelineItem_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugCreateTimelineItem_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "author":
field := field
@@ -2343,7 +2276,7 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._CreateTimelineItem_author(ctx, field, obj)
+ res = ec._BugCreateTimelineItem_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2371,17 +2304,17 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "message":
- out.Values[i] = ec._CreateTimelineItem_message(ctx, field, obj)
+ out.Values[i] = ec._BugCreateTimelineItem_message(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "messageIsEmpty":
- out.Values[i] = ec._CreateTimelineItem_messageIsEmpty(ctx, field, obj)
+ out.Values[i] = ec._BugCreateTimelineItem_messageIsEmpty(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "files":
- out.Values[i] = ec._CreateTimelineItem_files(ctx, field, obj)
+ out.Values[i] = ec._BugCreateTimelineItem_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2394,7 +2327,7 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._CreateTimelineItem_createdAt(ctx, field, obj)
+ res = ec._BugCreateTimelineItem_createdAt(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2430,7 +2363,7 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._CreateTimelineItem_lastEdit(ctx, field, obj)
+ res = ec._BugCreateTimelineItem_lastEdit(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2458,12 +2391,12 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "edited":
- out.Values[i] = ec._CreateTimelineItem_edited(ctx, field, obj)
+ out.Values[i] = ec._BugCreateTimelineItem_edited(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "history":
- out.Values[i] = ec._CreateTimelineItem_history(ctx, field, obj)
+ out.Values[i] = ec._BugCreateTimelineItem_history(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2490,53 +2423,22 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
return out
}
-var labelChangeTimelineItemImplementors = []string{"LabelChangeTimelineItem", "TimelineItem", "Authored"}
+var bugLabelChangeTimelineItemImplementors = []string{"BugLabelChangeTimelineItem", "BugTimelineItem", "Authored"}
-func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, labelChangeTimelineItemImplementors)
+func (ec *executionContext) _BugLabelChangeTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugLabelChangeTimelineItemImplementors)
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("LabelChangeTimelineItem")
+ out.Values[i] = graphql.MarshalString("BugLabelChangeTimelineItem")
case "id":
- 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._LabelChangeTimelineItem_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugLabelChangeTimelineItem_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "author":
field := field
@@ -2546,7 +2448,7 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._LabelChangeTimelineItem_author(ctx, field, obj)
+ res = ec._BugLabelChangeTimelineItem_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2582,7 +2484,7 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._LabelChangeTimelineItem_date(ctx, field, obj)
+ res = ec._BugLabelChangeTimelineItem_date(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2610,12 +2512,12 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "added":
- out.Values[i] = ec._LabelChangeTimelineItem_added(ctx, field, obj)
+ out.Values[i] = ec._BugLabelChangeTimelineItem_added(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "removed":
- out.Values[i] = ec._LabelChangeTimelineItem_removed(ctx, field, obj)
+ out.Values[i] = ec._BugLabelChangeTimelineItem_removed(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2642,53 +2544,22 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
return out
}
-var setStatusTimelineItemImplementors = []string{"SetStatusTimelineItem", "TimelineItem", "Authored"}
+var bugSetStatusTimelineItemImplementors = []string{"BugSetStatusTimelineItem", "BugTimelineItem", "Authored"}
-func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, setStatusTimelineItemImplementors)
+func (ec *executionContext) _BugSetStatusTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugSetStatusTimelineItemImplementors)
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("SetStatusTimelineItem")
+ out.Values[i] = graphql.MarshalString("BugSetStatusTimelineItem")
case "id":
- 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._SetStatusTimelineItem_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugSetStatusTimelineItem_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "author":
field := field
@@ -2698,7 +2569,7 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetStatusTimelineItem_author(ctx, field, obj)
+ res = ec._BugSetStatusTimelineItem_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2734,7 +2605,7 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetStatusTimelineItem_date(ctx, field, obj)
+ res = ec._BugSetStatusTimelineItem_date(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2762,7 +2633,7 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "status":
- out.Values[i] = ec._SetStatusTimelineItem_status(ctx, field, obj)
+ out.Values[i] = ec._BugSetStatusTimelineItem_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2789,53 +2660,22 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
return out
}
-var setTitleTimelineItemImplementors = []string{"SetTitleTimelineItem", "TimelineItem", "Authored"}
+var bugSetTitleTimelineItemImplementors = []string{"BugSetTitleTimelineItem", "BugTimelineItem", "Authored"}
-func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, setTitleTimelineItemImplementors)
+func (ec *executionContext) _BugSetTitleTimelineItem(ctx context.Context, sel ast.SelectionSet, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugSetTitleTimelineItemImplementors)
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("SetTitleTimelineItem")
+ out.Values[i] = graphql.MarshalString("BugSetTitleTimelineItem")
case "id":
- 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._SetTitleTimelineItem_id(ctx, field, obj)
- if res == graphql.Null {
- atomic.AddUint32(&fs.Invalids, 1)
- }
- 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 innerFunc(ctx, dfs)
- })
-
- // don't run the out.Concurrently() call below
- out.Values[i] = graphql.Null
- continue
+ out.Values[i] = ec._BugSetTitleTimelineItem_id(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ atomic.AddUint32(&out.Invalids, 1)
}
-
- out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "author":
field := field
@@ -2845,7 +2685,7 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetTitleTimelineItem_author(ctx, field, obj)
+ res = ec._BugSetTitleTimelineItem_author(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2881,7 +2721,7 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
- res = ec._SetTitleTimelineItem_date(ctx, field, obj)
+ res = ec._BugSetTitleTimelineItem_date(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
@@ -2909,12 +2749,12 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
case "title":
- out.Values[i] = ec._SetTitleTimelineItem_title(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitleTimelineItem_title(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "was":
- out.Values[i] = ec._SetTitleTimelineItem_was(ctx, field, obj)
+ out.Values[i] = ec._BugSetTitleTimelineItem_was(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
@@ -2941,34 +2781,34 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
return out
}
-var timelineItemConnectionImplementors = []string{"TimelineItemConnection"}
+var bugTimelineItemConnectionImplementors = []string{"BugTimelineItemConnection"}
-func (ec *executionContext) _TimelineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *models.TimelineItemConnection) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, timelineItemConnectionImplementors)
+func (ec *executionContext) _BugTimelineItemConnection(ctx context.Context, sel ast.SelectionSet, obj *models.BugTimelineItemConnection) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugTimelineItemConnectionImplementors)
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("TimelineItemConnection")
+ out.Values[i] = graphql.MarshalString("BugTimelineItemConnection")
case "edges":
- out.Values[i] = ec._TimelineItemConnection_edges(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemConnection_edges(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "nodes":
- out.Values[i] = ec._TimelineItemConnection_nodes(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemConnection_nodes(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "pageInfo":
- out.Values[i] = ec._TimelineItemConnection_pageInfo(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemConnection_pageInfo(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "totalCount":
- out.Values[i] = ec._TimelineItemConnection_totalCount(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemConnection_totalCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -2995,24 +2835,24 @@ func (ec *executionContext) _TimelineItemConnection(ctx context.Context, sel ast
return out
}
-var timelineItemEdgeImplementors = []string{"TimelineItemEdge"}
+var bugTimelineItemEdgeImplementors = []string{"BugTimelineItemEdge"}
-func (ec *executionContext) _TimelineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *models.TimelineItemEdge) graphql.Marshaler {
- fields := graphql.CollectFields(ec.OperationContext, sel, timelineItemEdgeImplementors)
+func (ec *executionContext) _BugTimelineItemEdge(ctx context.Context, sel ast.SelectionSet, obj *models.BugTimelineItemEdge) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, bugTimelineItemEdgeImplementors)
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("TimelineItemEdge")
+ out.Values[i] = graphql.MarshalString("BugTimelineItemEdge")
case "cursor":
- out.Values[i] = ec._TimelineItemEdge_cursor(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemEdge_cursor(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "node":
- out.Values[i] = ec._TimelineItemEdge_node(ctx, field, obj)
+ out.Values[i] = ec._BugTimelineItemEdge_node(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
@@ -3043,11 +2883,11 @@ func (ec *executionContext) _TimelineItemEdge(ctx context.Context, sel ast.Selec
// region ***************************** type.gotpl *****************************
-func (ec *executionContext) marshalNCommentHistoryStep2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStep(ctx context.Context, sel ast.SelectionSet, v bug.CommentHistoryStep) graphql.Marshaler {
- return ec._CommentHistoryStep(ctx, sel, &v)
+func (ec *executionContext) marshalNBugCommentHistoryStep2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStep(ctx context.Context, sel ast.SelectionSet, v bug.CommentHistoryStep) graphql.Marshaler {
+ return ec._BugCommentHistoryStep(ctx, sel, &v)
}
-func (ec *executionContext) marshalNCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx context.Context, sel ast.SelectionSet, v []bug.CommentHistoryStep) graphql.Marshaler {
+func (ec *executionContext) marshalNBugCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStepᚄ(ctx context.Context, sel ast.SelectionSet, v []bug.CommentHistoryStep) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
@@ -3071,7 +2911,7 @@ func (ec *executionContext) marshalNCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑb
if !isLen1 {
defer wg.Done()
}
- ret[i] = ec.marshalNCommentHistoryStep2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStep(ctx, sel, v[i])
+ ret[i] = ec.marshalNBugCommentHistoryStep2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐCommentHistoryStep(ctx, sel, v[i])
}
if isLen1 {
f(i)
@@ -3091,17 +2931,17 @@ func (ec *executionContext) marshalNCommentHistoryStep2ᚕgithubᚗcomᚋgitᚑb
return ret
}
-func (ec *executionContext) marshalNTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx context.Context, sel ast.SelectionSet, v bug.TimelineItem) graphql.Marshaler {
+func (ec *executionContext) marshalNBugTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx context.Context, sel ast.SelectionSet, v bug.TimelineItem) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._TimelineItem(ctx, sel, v)
+ return ec._BugTimelineItem(ctx, sel, v)
}
-func (ec *executionContext) marshalNTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []bug.TimelineItem) graphql.Marshaler {
+func (ec *executionContext) marshalNBugTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItemᚄ(ctx context.Context, sel ast.SelectionSet, v []bug.TimelineItem) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
@@ -3125,7 +2965,7 @@ func (ec *executionContext) marshalNTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋg
if !isLen1 {
defer wg.Done()
}
- ret[i] = ec.marshalNTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx, sel, v[i])
+ ret[i] = ec.marshalNBugTimelineItem2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐTimelineItem(ctx, sel, v[i])
}
if isLen1 {
f(i)
@@ -3145,21 +2985,21 @@ func (ec *executionContext) marshalNTimelineItem2ᚕgithubᚗcomᚋgitᚑbugᚋg
return ret
}
-func (ec *executionContext) marshalNTimelineItemConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemConnection(ctx context.Context, sel ast.SelectionSet, v models.TimelineItemConnection) graphql.Marshaler {
- return ec._TimelineItemConnection(ctx, sel, &v)
+func (ec *executionContext) marshalNBugTimelineItemConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemConnection(ctx context.Context, sel ast.SelectionSet, v models.BugTimelineItemConnection) graphql.Marshaler {
+ return ec._BugTimelineItemConnection(ctx, sel, &v)
}
-func (ec *executionContext) marshalNTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemConnection(ctx context.Context, sel ast.SelectionSet, v *models.TimelineItemConnection) graphql.Marshaler {
+func (ec *executionContext) marshalNBugTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemConnection(ctx context.Context, sel ast.SelectionSet, v *models.BugTimelineItemConnection) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._TimelineItemConnection(ctx, sel, v)
+ return ec._BugTimelineItemConnection(ctx, sel, v)
}
-func (ec *executionContext) marshalNTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.TimelineItemEdge) graphql.Marshaler {
+func (ec *executionContext) marshalNBugTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.BugTimelineItemEdge) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
@@ -3183,7 +3023,7 @@ func (ec *executionContext) marshalNTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑ
if !isLen1 {
defer wg.Done()
}
- ret[i] = ec.marshalNTimelineItemEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemEdge(ctx, sel, v[i])
+ ret[i] = ec.marshalNBugTimelineItemEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemEdge(ctx, sel, v[i])
}
if isLen1 {
f(i)
@@ -3203,14 +3043,14 @@ func (ec *executionContext) marshalNTimelineItemEdge2ᚕᚖgithubᚗcomᚋgitᚑ
return ret
}
-func (ec *executionContext) marshalNTimelineItemEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐTimelineItemEdge(ctx context.Context, sel ast.SelectionSet, v *models.TimelineItemEdge) graphql.Marshaler {
+func (ec *executionContext) marshalNBugTimelineItemEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemEdge(ctx context.Context, sel ast.SelectionSet, v *models.BugTimelineItemEdge) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
- return ec._TimelineItemEdge(ctx, sel, v)
+ return ec._BugTimelineItemEdge(ctx, sel, v)
}
// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/label.generated.go b/api/graphql/graph/label.generated.go
index 1f861c35..26b16477 100644
--- a/api/graphql/graph/label.generated.go
+++ b/api/graphql/graph/label.generated.go
@@ -13,6 +13,7 @@ import (
"github.com/99designs/gqlgen/graphql"
"github.com/git-bug/git-bug/api/graphql/models"
+ "github.com/git-bug/git-bug/entities/bug"
"github.com/git-bug/git-bug/entities/common"
"github.com/vektah/gqlparser/v2/ast"
)
@@ -132,6 +133,100 @@ func (ec *executionContext) fieldContext_Label_color(_ context.Context, field gr
return fc, nil
}
+func (ec *executionContext) _LabelChangeResult_label(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeResult) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_LabelChangeResult_label(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.Label, 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.(common.Label)
+ fc.Result = res
+ return ec.marshalNLabel2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabel(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_LabelChangeResult_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "LabelChangeResult",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ switch field.Name {
+ case "name":
+ return ec.fieldContext_Label_name(ctx, field)
+ case "color":
+ return ec.fieldContext_Label_color(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type Label", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _LabelChangeResult_status(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeResult) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_LabelChangeResult_status(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.Status, 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.(bug.LabelChangeStatus)
+ fc.Result = res
+ return ec.marshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_LabelChangeResult_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "LabelChangeResult",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ return nil, errors.New("field of type LabelChangeStatus does not have child fields")
+ },
+ }
+ return fc, nil
+}
+
func (ec *executionContext) _LabelConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.LabelConnection) (ret graphql.Marshaler) {
fc, err := ec.fieldContext_LabelConnection_edges(ctx, field)
if err != nil {
@@ -542,6 +637,50 @@ func (ec *executionContext) _Label(ctx context.Context, sel ast.SelectionSet, ob
return out
}
+var labelChangeResultImplementors = []string{"LabelChangeResult"}
+
+func (ec *executionContext) _LabelChangeResult(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeResult) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, labelChangeResultImplementors)
+
+ 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("LabelChangeResult")
+ case "label":
+ out.Values[i] = ec._LabelChangeResult_label(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "status":
+ out.Values[i] = ec._LabelChangeResult_status(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
+ }
+
+ 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 labelConnectionImplementors = []string{"LabelConnection"}
func (ec *executionContext) _LabelConnection(ctx context.Context, sel ast.SelectionSet, obj *models.LabelConnection) graphql.Marshaler {
@@ -692,6 +831,54 @@ func (ec *executionContext) marshalNLabel2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbu
return ret
}
+func (ec *executionContext) marshalNLabelChangeResult2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx context.Context, sel ast.SelectionSet, v []*bug.LabelChangeResult) graphql.Marshaler {
+ ret := make(graphql.Array, len(v))
+ var wg sync.WaitGroup
+ isLen1 := len(v) == 1
+ if !isLen1 {
+ wg.Add(len(v))
+ }
+ for i := range v {
+ i := i
+ fc := &graphql.FieldContext{
+ Index: &i,
+ Result: &v[i],
+ }
+ ctx := graphql.WithFieldContext(ctx, fc)
+ f := func(i int) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = nil
+ }
+ }()
+ if !isLen1 {
+ defer wg.Done()
+ }
+ ret[i] = ec.marshalOLabelChangeResult2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx, sel, v[i])
+ }
+ if isLen1 {
+ f(i)
+ } else {
+ go f(i)
+ }
+
+ }
+ wg.Wait()
+
+ return ret
+}
+
+func (ec *executionContext) unmarshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx context.Context, v interface{}) (bug.LabelChangeStatus, error) {
+ var res bug.LabelChangeStatus
+ err := res.UnmarshalGQL(v)
+ return res, graphql.ErrorOnPath(ctx, err)
+}
+
+func (ec *executionContext) marshalNLabelChangeStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeStatus(ctx context.Context, sel ast.SelectionSet, v bug.LabelChangeStatus) graphql.Marshaler {
+ return v
+}
+
func (ec *executionContext) marshalNLabelConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐLabelConnection(ctx context.Context, sel ast.SelectionSet, v models.LabelConnection) graphql.Marshaler {
return ec._LabelConnection(ctx, sel, &v)
}
@@ -760,4 +947,11 @@ func (ec *executionContext) marshalNLabelEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgit
return ec._LabelEdge(ctx, sel, v)
}
+func (ec *executionContext) marshalOLabelChangeResult2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋbugᚐLabelChangeResult(ctx context.Context, sel ast.SelectionSet, v *bug.LabelChangeResult) graphql.Marshaler {
+ if v == nil {
+ return graphql.Null
+ }
+ return ec._LabelChangeResult(ctx, sel, v)
+}
+
// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/operation.generated.go b/api/graphql/graph/operation.generated.go
new file mode 100644
index 00000000..13168b3d
--- /dev/null
+++ b/api/graphql/graph/operation.generated.go
@@ -0,0 +1,589 @@
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
+
+package graph
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "strconv"
+ "sync"
+ "sync/atomic"
+
+ "github.com/99designs/gqlgen/graphql"
+ "github.com/git-bug/git-bug/api/graphql/models"
+ "github.com/git-bug/git-bug/entities/bug"
+ "github.com/git-bug/git-bug/entity/dag"
+ "github.com/vektah/gqlparser/v2/ast"
+)
+
+// region ************************** generated!.gotpl **************************
+
+// endregion ************************** generated!.gotpl **************************
+
+// region ***************************** args.gotpl *****************************
+
+// endregion ***************************** args.gotpl *****************************
+
+// region ************************** directives.gotpl **************************
+
+// endregion ************************** directives.gotpl **************************
+
+// region **************************** field.gotpl *****************************
+
+func (ec *executionContext) _OperationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationConnection_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 {
+ if !graphql.HasFieldError(ctx, fc) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.([]*models.OperationEdge)
+ fc.Result = res
+ return ec.marshalNOperationEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdgeᚄ(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_OperationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationConnection",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ switch field.Name {
+ case "cursor":
+ return ec.fieldContext_OperationEdge_cursor(ctx, field)
+ case "node":
+ return ec.fieldContext_OperationEdge_node(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type OperationEdge", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationConnection_nodes(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.Nodes, 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.([]dag.Operation)
+ fc.Result = res
+ return ec.marshalNOperation2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperationᚄ(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_OperationConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationConnection",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationConnection_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 {
+ if !graphql.HasFieldError(ctx, fc) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.(*models.PageInfo)
+ fc.Result = res
+ return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_OperationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationConnection",
+ 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 "startCursor":
+ return ec.fieldContext_PageInfo_startCursor(ctx, field)
+ case "endCursor":
+ return ec.fieldContext_PageInfo_endCursor(ctx, field)
+ }
+ return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
+ },
+ }
+ return fc, nil
+}
+
+func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationConnection_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_OperationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationConnection",
+ 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) _OperationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationEdge_cursor(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.Cursor, 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)
+ fc.Result = res
+ return ec.marshalNString2string(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_OperationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationEdge",
+ 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) _OperationEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_OperationEdge_node(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.Node, 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.(dag.Operation)
+ fc.Result = res
+ return ec.marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx, field.Selections, res)
+}
+
+func (ec *executionContext) fieldContext_OperationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+ fc = &graphql.FieldContext{
+ Object: "OperationEdge",
+ Field: field,
+ IsMethod: false,
+ IsResolver: false,
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
+ return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
+ },
+ }
+ return fc, nil
+}
+
+// endregion **************************** field.gotpl *****************************
+
+// region **************************** input.gotpl *****************************
+
+// endregion **************************** input.gotpl *****************************
+
+// region ************************** interface.gotpl ***************************
+
+func (ec *executionContext) _Operation(ctx context.Context, sel ast.SelectionSet, obj dag.Operation) graphql.Marshaler {
+ switch obj := (obj).(type) {
+ case nil:
+ return graphql.Null
+ case *bug.CreateOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugCreateOperation(ctx, sel, obj)
+ case *bug.SetTitleOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugSetTitleOperation(ctx, sel, obj)
+ case *bug.AddCommentOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugAddCommentOperation(ctx, sel, obj)
+ case *bug.EditCommentOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugEditCommentOperation(ctx, sel, obj)
+ case *bug.SetStatusOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugSetStatusOperation(ctx, sel, obj)
+ case *bug.LabelChangeOperation:
+ if obj == nil {
+ return graphql.Null
+ }
+ return ec._BugLabelChangeOperation(ctx, sel, obj)
+ default:
+ panic(fmt.Errorf("unexpected type %T", obj))
+ }
+}
+
+// endregion ************************** interface.gotpl ***************************
+
+// region **************************** object.gotpl ****************************
+
+var operationConnectionImplementors = []string{"OperationConnection"}
+
+func (ec *executionContext) _OperationConnection(ctx context.Context, sel ast.SelectionSet, obj *models.OperationConnection) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, operationConnectionImplementors)
+
+ 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("OperationConnection")
+ case "edges":
+ out.Values[i] = ec._OperationConnection_edges(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "nodes":
+ out.Values[i] = ec._OperationConnection_nodes(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "pageInfo":
+ out.Values[i] = ec._OperationConnection_pageInfo(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "totalCount":
+ out.Values[i] = ec._OperationConnection_totalCount(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
+ }
+
+ 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 operationEdgeImplementors = []string{"OperationEdge"}
+
+func (ec *executionContext) _OperationEdge(ctx context.Context, sel ast.SelectionSet, obj *models.OperationEdge) graphql.Marshaler {
+ fields := graphql.CollectFields(ec.OperationContext, sel, operationEdgeImplementors)
+
+ 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("OperationEdge")
+ case "cursor":
+ out.Values[i] = ec._OperationEdge_cursor(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ out.Invalids++
+ }
+ case "node":
+ out.Values[i] = ec._OperationEdge_node(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
+ }
+
+ 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
+}
+
+// endregion **************************** object.gotpl ****************************
+
+// region ***************************** type.gotpl *****************************
+
+func (ec *executionContext) marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx context.Context, sel ast.SelectionSet, v dag.Operation) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._Operation(ctx, sel, v)
+}
+
+func (ec *executionContext) marshalNOperation2ᚕgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperationᚄ(ctx context.Context, sel ast.SelectionSet, v []dag.Operation) graphql.Marshaler {
+ ret := make(graphql.Array, len(v))
+ var wg sync.WaitGroup
+ isLen1 := len(v) == 1
+ if !isLen1 {
+ wg.Add(len(v))
+ }
+ for i := range v {
+ i := i
+ fc := &graphql.FieldContext{
+ Index: &i,
+ Result: &v[i],
+ }
+ ctx := graphql.WithFieldContext(ctx, fc)
+ f := func(i int) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = nil
+ }
+ }()
+ if !isLen1 {
+ defer wg.Done()
+ }
+ ret[i] = ec.marshalNOperation2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚋdagᚐOperation(ctx, sel, v[i])
+ }
+ if isLen1 {
+ f(i)
+ } else {
+ go f(i)
+ }
+
+ }
+ wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
+ return ret
+}
+
+func (ec *executionContext) marshalNOperationConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx context.Context, sel ast.SelectionSet, v models.OperationConnection) graphql.Marshaler {
+ return ec._OperationConnection(ctx, sel, &v)
+}
+
+func (ec *executionContext) marshalNOperationConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx context.Context, sel ast.SelectionSet, v *models.OperationConnection) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._OperationConnection(ctx, sel, v)
+}
+
+func (ec *executionContext) marshalNOperationEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationEdge) graphql.Marshaler {
+ ret := make(graphql.Array, len(v))
+ var wg sync.WaitGroup
+ isLen1 := len(v) == 1
+ if !isLen1 {
+ wg.Add(len(v))
+ }
+ for i := range v {
+ i := i
+ fc := &graphql.FieldContext{
+ Index: &i,
+ Result: &v[i],
+ }
+ ctx := graphql.WithFieldContext(ctx, fc)
+ f := func(i int) {
+ defer func() {
+ if r := recover(); r != nil {
+ ec.Error(ctx, ec.Recover(ctx, r))
+ ret = nil
+ }
+ }()
+ if !isLen1 {
+ defer wg.Done()
+ }
+ ret[i] = ec.marshalNOperationEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdge(ctx, sel, v[i])
+ }
+ if isLen1 {
+ f(i)
+ } else {
+ go f(i)
+ }
+
+ }
+ wg.Wait()
+
+ for _, e := range ret {
+ if e == graphql.Null {
+ return graphql.Null
+ }
+ }
+
+ return ret
+}
+
+func (ec *executionContext) marshalNOperationEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationEdge(ctx context.Context, sel ast.SelectionSet, v *models.OperationEdge) graphql.Marshaler {
+ if v == nil {
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
+ ec.Errorf(ctx, "the requested element is null which the schema does not allow")
+ }
+ return graphql.Null
+ }
+ return ec._OperationEdge(ctx, sel, v)
+}
+
+// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/root.generated.go b/api/graphql/graph/root.generated.go
index 7a99343d..42cab266 100644
--- a/api/graphql/graph/root.generated.go
+++ b/api/graphql/graph/root.generated.go
@@ -17,15 +17,15 @@ import (
// region ************************** generated!.gotpl **************************
type MutationResolver interface {
- NewBug(ctx context.Context, input models.NewBugInput) (*models.NewBugPayload, error)
- AddComment(ctx context.Context, input models.AddCommentInput) (*models.AddCommentPayload, error)
- AddCommentAndClose(ctx context.Context, input models.AddCommentAndCloseBugInput) (*models.AddCommentAndCloseBugPayload, error)
- AddCommentAndReopen(ctx context.Context, input models.AddCommentAndReopenBugInput) (*models.AddCommentAndReopenBugPayload, error)
- EditComment(ctx context.Context, input models.EditCommentInput) (*models.EditCommentPayload, error)
- ChangeLabels(ctx context.Context, input *models.ChangeLabelInput) (*models.ChangeLabelPayload, error)
- OpenBug(ctx context.Context, input models.OpenBugInput) (*models.OpenBugPayload, error)
- CloseBug(ctx context.Context, input models.CloseBugInput) (*models.CloseBugPayload, error)
- SetTitle(ctx context.Context, input models.SetTitleInput) (*models.SetTitlePayload, error)
+ BugCreate(ctx context.Context, input models.BugCreateInput) (*models.BugCreatePayload, error)
+ BugAddComment(ctx context.Context, input models.BugAddCommentInput) (*models.BugAddCommentPayload, error)
+ BugAddCommentAndClose(ctx context.Context, input models.BugAddCommentAndCloseInput) (*models.BugAddCommentAndClosePayload, error)
+ BugAddCommentAndReopen(ctx context.Context, input models.BugAddCommentAndReopenInput) (*models.BugAddCommentAndReopenPayload, error)
+ BugEditComment(ctx context.Context, input models.BugEditCommentInput) (*models.BugEditCommentPayload, error)
+ BugChangeLabels(ctx context.Context, input *models.BugChangeLabelInput) (*models.BugChangeLabelPayload, error)
+ BugStatusOpen(ctx context.Context, input models.BugStatusOpenInput) (*models.BugStatusOpenPayload, error)
+ BugStatusClose(ctx context.Context, input models.BugStatusCloseInput) (*models.BugStatusClosePayload, error)
+ BugSetTitle(ctx context.Context, input models.BugSetTitleInput) (*models.BugSetTitlePayload, error)
}
type QueryResolver interface {
Repository(ctx context.Context, ref *string) (*models.Repository, error)
@@ -35,13 +35,13 @@ type QueryResolver interface {
// region ***************************** args.gotpl *****************************
-func (ec *executionContext) field_Mutation_addCommentAndClose_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugAddCommentAndClose_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.AddCommentAndCloseBugInput
+ var arg0 models.BugAddCommentAndCloseInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNAddCommentAndCloseBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndCloseBugInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugAddCommentAndCloseInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndCloseInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -50,13 +50,13 @@ func (ec *executionContext) field_Mutation_addCommentAndClose_args(ctx context.C
return args, nil
}
-func (ec *executionContext) field_Mutation_addCommentAndReopen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugAddCommentAndReopen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.AddCommentAndReopenBugInput
+ var arg0 models.BugAddCommentAndReopenInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNAddCommentAndReopenBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndReopenBugInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugAddCommentAndReopenInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndReopenInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -65,13 +65,13 @@ func (ec *executionContext) field_Mutation_addCommentAndReopen_args(ctx context.
return args, nil
}
-func (ec *executionContext) field_Mutation_addComment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugAddComment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.AddCommentInput
+ var arg0 models.BugAddCommentInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNAddCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugAddCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -80,13 +80,13 @@ func (ec *executionContext) field_Mutation_addComment_args(ctx context.Context,
return args, nil
}
-func (ec *executionContext) field_Mutation_changeLabels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugChangeLabels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 *models.ChangeLabelInput
+ var arg0 *models.BugChangeLabelInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalOChangeLabelInput2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐChangeLabelInput(ctx, tmp)
+ arg0, err = ec.unmarshalOBugChangeLabelInput2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugChangeLabelInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -95,13 +95,13 @@ func (ec *executionContext) field_Mutation_changeLabels_args(ctx context.Context
return args, nil
}
-func (ec *executionContext) field_Mutation_closeBug_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.CloseBugInput
+ var arg0 models.BugCreateInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNCloseBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCloseBugInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugCreateInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCreateInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -110,13 +110,13 @@ func (ec *executionContext) field_Mutation_closeBug_args(ctx context.Context, ra
return args, nil
}
-func (ec *executionContext) field_Mutation_editComment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugEditComment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.EditCommentInput
+ var arg0 models.BugEditCommentInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNEditCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐEditCommentInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugEditCommentInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugEditCommentInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -125,13 +125,13 @@ func (ec *executionContext) field_Mutation_editComment_args(ctx context.Context,
return args, nil
}
-func (ec *executionContext) field_Mutation_newBug_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugSetTitle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.NewBugInput
+ var arg0 models.BugSetTitleInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNNewBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐNewBugInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugSetTitleInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitleInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -140,13 +140,13 @@ func (ec *executionContext) field_Mutation_newBug_args(ctx context.Context, rawA
return args, nil
}
-func (ec *executionContext) field_Mutation_openBug_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugStatusClose_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.OpenBugInput
+ var arg0 models.BugStatusCloseInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNOpenBugInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOpenBugInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugStatusCloseInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusCloseInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -155,13 +155,13 @@ func (ec *executionContext) field_Mutation_openBug_args(ctx context.Context, raw
return args, nil
}
-func (ec *executionContext) field_Mutation_setTitle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
+func (ec *executionContext) field_Mutation_bugStatusOpen_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
- var arg0 models.SetTitleInput
+ var arg0 models.BugStatusOpenInput
if tmp, ok := rawArgs["input"]; ok {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
- arg0, err = ec.unmarshalNSetTitleInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐSetTitleInput(ctx, tmp)
+ arg0, err = ec.unmarshalNBugStatusOpenInput2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusOpenInput(ctx, tmp)
if err != nil {
return nil, err
}
@@ -208,8 +208,8 @@ func (ec *executionContext) field_Query_repository_args(ctx context.Context, raw
// region **************************** field.gotpl *****************************
-func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_newBug(ctx, field)
+func (ec *executionContext) _Mutation_bugCreate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugCreate(ctx, field)
if err != nil {
return graphql.Null
}
@@ -222,7 +222,7 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().NewBug(rctx, fc.Args["input"].(models.NewBugInput))
+ return ec.resolvers.Mutation().BugCreate(rctx, fc.Args["input"].(models.BugCreateInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -234,12 +234,12 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
}
return graphql.Null
}
- res := resTmp.(*models.NewBugPayload)
+ res := resTmp.(*models.BugCreatePayload)
fc.Result = res
- return ec.marshalNNewBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐNewBugPayload(ctx, field.Selections, res)
+ return ec.marshalNBugCreatePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCreatePayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_newBug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugCreate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -248,13 +248,13 @@ func (ec *executionContext) fieldContext_Mutation_newBug(ctx context.Context, fi
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_NewBugPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugCreatePayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_NewBugPayload_bug(ctx, field)
+ return ec.fieldContext_BugCreatePayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_NewBugPayload_operation(ctx, field)
+ return ec.fieldContext_BugCreatePayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type NewBugPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugCreatePayload", field.Name)
},
}
defer func() {
@@ -264,15 +264,15 @@ func (ec *executionContext) fieldContext_Mutation_newBug(ctx context.Context, fi
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_newBug_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugCreate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_addComment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_addComment(ctx, field)
+func (ec *executionContext) _Mutation_bugAddComment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugAddComment(ctx, field)
if err != nil {
return graphql.Null
}
@@ -285,7 +285,7 @@ func (ec *executionContext) _Mutation_addComment(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().AddComment(rctx, fc.Args["input"].(models.AddCommentInput))
+ return ec.resolvers.Mutation().BugAddComment(rctx, fc.Args["input"].(models.BugAddCommentInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -297,12 +297,12 @@ func (ec *executionContext) _Mutation_addComment(ctx context.Context, field grap
}
return graphql.Null
}
- res := resTmp.(*models.AddCommentPayload)
+ res := resTmp.(*models.BugAddCommentPayload)
fc.Result = res
- return ec.marshalNAddCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentPayload(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentPayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_addComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugAddComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -311,13 +311,13 @@ func (ec *executionContext) fieldContext_Mutation_addComment(ctx context.Context
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_AddCommentPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugAddCommentPayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_AddCommentPayload_bug(ctx, field)
+ return ec.fieldContext_BugAddCommentPayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_AddCommentPayload_operation(ctx, field)
+ return ec.fieldContext_BugAddCommentPayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentPayload", field.Name)
},
}
defer func() {
@@ -327,15 +327,15 @@ func (ec *executionContext) fieldContext_Mutation_addComment(ctx context.Context
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_addComment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugAddComment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_addCommentAndClose(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_addCommentAndClose(ctx, field)
+func (ec *executionContext) _Mutation_bugAddCommentAndClose(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugAddCommentAndClose(ctx, field)
if err != nil {
return graphql.Null
}
@@ -348,7 +348,7 @@ func (ec *executionContext) _Mutation_addCommentAndClose(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().AddCommentAndClose(rctx, fc.Args["input"].(models.AddCommentAndCloseBugInput))
+ return ec.resolvers.Mutation().BugAddCommentAndClose(rctx, fc.Args["input"].(models.BugAddCommentAndCloseInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -360,12 +360,12 @@ func (ec *executionContext) _Mutation_addCommentAndClose(ctx context.Context, fi
}
return graphql.Null
}
- res := resTmp.(*models.AddCommentAndCloseBugPayload)
+ res := resTmp.(*models.BugAddCommentAndClosePayload)
fc.Result = res
- return ec.marshalNAddCommentAndCloseBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndCloseBugPayload(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentAndClosePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndClosePayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_addCommentAndClose(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugAddCommentAndClose(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -374,15 +374,15 @@ func (ec *executionContext) fieldContext_Mutation_addCommentAndClose(ctx context
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_AddCommentAndCloseBugPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugAddCommentAndClosePayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_AddCommentAndCloseBugPayload_bug(ctx, field)
+ return ec.fieldContext_BugAddCommentAndClosePayload_bug(ctx, field)
case "commentOperation":
- return ec.fieldContext_AddCommentAndCloseBugPayload_commentOperation(ctx, field)
+ return ec.fieldContext_BugAddCommentAndClosePayload_commentOperation(ctx, field)
case "statusOperation":
- return ec.fieldContext_AddCommentAndCloseBugPayload_statusOperation(ctx, field)
+ return ec.fieldContext_BugAddCommentAndClosePayload_statusOperation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentAndCloseBugPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentAndClosePayload", field.Name)
},
}
defer func() {
@@ -392,15 +392,15 @@ func (ec *executionContext) fieldContext_Mutation_addCommentAndClose(ctx context
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_addCommentAndClose_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugAddCommentAndClose_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_addCommentAndReopen(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_addCommentAndReopen(ctx, field)
+func (ec *executionContext) _Mutation_bugAddCommentAndReopen(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugAddCommentAndReopen(ctx, field)
if err != nil {
return graphql.Null
}
@@ -413,7 +413,7 @@ func (ec *executionContext) _Mutation_addCommentAndReopen(ctx context.Context, f
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().AddCommentAndReopen(rctx, fc.Args["input"].(models.AddCommentAndReopenBugInput))
+ return ec.resolvers.Mutation().BugAddCommentAndReopen(rctx, fc.Args["input"].(models.BugAddCommentAndReopenInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -425,12 +425,12 @@ func (ec *executionContext) _Mutation_addCommentAndReopen(ctx context.Context, f
}
return graphql.Null
}
- res := resTmp.(*models.AddCommentAndReopenBugPayload)
+ res := resTmp.(*models.BugAddCommentAndReopenPayload)
fc.Result = res
- return ec.marshalNAddCommentAndReopenBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐAddCommentAndReopenBugPayload(ctx, field.Selections, res)
+ return ec.marshalNBugAddCommentAndReopenPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugAddCommentAndReopenPayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_addCommentAndReopen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugAddCommentAndReopen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -439,15 +439,15 @@ func (ec *executionContext) fieldContext_Mutation_addCommentAndReopen(ctx contex
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_AddCommentAndReopenBugPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugAddCommentAndReopenPayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_AddCommentAndReopenBugPayload_bug(ctx, field)
+ return ec.fieldContext_BugAddCommentAndReopenPayload_bug(ctx, field)
case "commentOperation":
- return ec.fieldContext_AddCommentAndReopenBugPayload_commentOperation(ctx, field)
+ return ec.fieldContext_BugAddCommentAndReopenPayload_commentOperation(ctx, field)
case "statusOperation":
- return ec.fieldContext_AddCommentAndReopenBugPayload_statusOperation(ctx, field)
+ return ec.fieldContext_BugAddCommentAndReopenPayload_statusOperation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type AddCommentAndReopenBugPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugAddCommentAndReopenPayload", field.Name)
},
}
defer func() {
@@ -457,15 +457,15 @@ func (ec *executionContext) fieldContext_Mutation_addCommentAndReopen(ctx contex
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_addCommentAndReopen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugAddCommentAndReopen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_editComment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_editComment(ctx, field)
+func (ec *executionContext) _Mutation_bugEditComment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugEditComment(ctx, field)
if err != nil {
return graphql.Null
}
@@ -478,7 +478,7 @@ func (ec *executionContext) _Mutation_editComment(ctx context.Context, field gra
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().EditComment(rctx, fc.Args["input"].(models.EditCommentInput))
+ return ec.resolvers.Mutation().BugEditComment(rctx, fc.Args["input"].(models.BugEditCommentInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -490,12 +490,12 @@ func (ec *executionContext) _Mutation_editComment(ctx context.Context, field gra
}
return graphql.Null
}
- res := resTmp.(*models.EditCommentPayload)
+ res := resTmp.(*models.BugEditCommentPayload)
fc.Result = res
- return ec.marshalNEditCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐEditCommentPayload(ctx, field.Selections, res)
+ return ec.marshalNBugEditCommentPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugEditCommentPayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_editComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugEditComment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -504,13 +504,13 @@ func (ec *executionContext) fieldContext_Mutation_editComment(ctx context.Contex
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_EditCommentPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugEditCommentPayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_EditCommentPayload_bug(ctx, field)
+ return ec.fieldContext_BugEditCommentPayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_EditCommentPayload_operation(ctx, field)
+ return ec.fieldContext_BugEditCommentPayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type EditCommentPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugEditCommentPayload", field.Name)
},
}
defer func() {
@@ -520,15 +520,15 @@ func (ec *executionContext) fieldContext_Mutation_editComment(ctx context.Contex
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_editComment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugEditComment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_changeLabels(ctx, field)
+func (ec *executionContext) _Mutation_bugChangeLabels(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugChangeLabels(ctx, field)
if err != nil {
return graphql.Null
}
@@ -541,7 +541,7 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().ChangeLabels(rctx, fc.Args["input"].(*models.ChangeLabelInput))
+ return ec.resolvers.Mutation().BugChangeLabels(rctx, fc.Args["input"].(*models.BugChangeLabelInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -553,12 +553,12 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
}
return graphql.Null
}
- res := resTmp.(*models.ChangeLabelPayload)
+ res := resTmp.(*models.BugChangeLabelPayload)
fc.Result = res
- return ec.marshalNChangeLabelPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐChangeLabelPayload(ctx, field.Selections, res)
+ return ec.marshalNBugChangeLabelPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugChangeLabelPayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_changeLabels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugChangeLabels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -567,15 +567,15 @@ func (ec *executionContext) fieldContext_Mutation_changeLabels(ctx context.Conte
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_ChangeLabelPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugChangeLabelPayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_ChangeLabelPayload_bug(ctx, field)
+ return ec.fieldContext_BugChangeLabelPayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_ChangeLabelPayload_operation(ctx, field)
+ return ec.fieldContext_BugChangeLabelPayload_operation(ctx, field)
case "results":
- return ec.fieldContext_ChangeLabelPayload_results(ctx, field)
+ return ec.fieldContext_BugChangeLabelPayload_results(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type ChangeLabelPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugChangeLabelPayload", field.Name)
},
}
defer func() {
@@ -585,15 +585,15 @@ func (ec *executionContext) fieldContext_Mutation_changeLabels(ctx context.Conte
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_changeLabels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugChangeLabels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_openBug(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_openBug(ctx, field)
+func (ec *executionContext) _Mutation_bugStatusOpen(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugStatusOpen(ctx, field)
if err != nil {
return graphql.Null
}
@@ -606,7 +606,7 @@ func (ec *executionContext) _Mutation_openBug(ctx context.Context, field graphql
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().OpenBug(rctx, fc.Args["input"].(models.OpenBugInput))
+ return ec.resolvers.Mutation().BugStatusOpen(rctx, fc.Args["input"].(models.BugStatusOpenInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -618,12 +618,12 @@ func (ec *executionContext) _Mutation_openBug(ctx context.Context, field graphql
}
return graphql.Null
}
- res := resTmp.(*models.OpenBugPayload)
+ res := resTmp.(*models.BugStatusOpenPayload)
fc.Result = res
- return ec.marshalNOpenBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOpenBugPayload(ctx, field.Selections, res)
+ return ec.marshalNBugStatusOpenPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusOpenPayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_openBug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugStatusOpen(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -632,13 +632,13 @@ func (ec *executionContext) fieldContext_Mutation_openBug(ctx context.Context, f
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_OpenBugPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugStatusOpenPayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_OpenBugPayload_bug(ctx, field)
+ return ec.fieldContext_BugStatusOpenPayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_OpenBugPayload_operation(ctx, field)
+ return ec.fieldContext_BugStatusOpenPayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type OpenBugPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugStatusOpenPayload", field.Name)
},
}
defer func() {
@@ -648,15 +648,15 @@ func (ec *executionContext) fieldContext_Mutation_openBug(ctx context.Context, f
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_openBug_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugStatusOpen_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_closeBug(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_closeBug(ctx, field)
+func (ec *executionContext) _Mutation_bugStatusClose(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugStatusClose(ctx, field)
if err != nil {
return graphql.Null
}
@@ -669,7 +669,7 @@ func (ec *executionContext) _Mutation_closeBug(ctx context.Context, field graphq
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().CloseBug(rctx, fc.Args["input"].(models.CloseBugInput))
+ return ec.resolvers.Mutation().BugStatusClose(rctx, fc.Args["input"].(models.BugStatusCloseInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -681,12 +681,12 @@ func (ec *executionContext) _Mutation_closeBug(ctx context.Context, field graphq
}
return graphql.Null
}
- res := resTmp.(*models.CloseBugPayload)
+ res := resTmp.(*models.BugStatusClosePayload)
fc.Result = res
- return ec.marshalNCloseBugPayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐCloseBugPayload(ctx, field.Selections, res)
+ return ec.marshalNBugStatusClosePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugStatusClosePayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_closeBug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugStatusClose(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -695,13 +695,13 @@ func (ec *executionContext) fieldContext_Mutation_closeBug(ctx context.Context,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_CloseBugPayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugStatusClosePayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_CloseBugPayload_bug(ctx, field)
+ return ec.fieldContext_BugStatusClosePayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_CloseBugPayload_operation(ctx, field)
+ return ec.fieldContext_BugStatusClosePayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type CloseBugPayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugStatusClosePayload", field.Name)
},
}
defer func() {
@@ -711,15 +711,15 @@ func (ec *executionContext) fieldContext_Mutation_closeBug(ctx context.Context,
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_closeBug_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugStatusClose_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
-func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
- fc, err := ec.fieldContext_Mutation_setTitle(ctx, field)
+func (ec *executionContext) _Mutation_bugSetTitle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
+ fc, err := ec.fieldContext_Mutation_bugSetTitle(ctx, field)
if err != nil {
return graphql.Null
}
@@ -732,7 +732,7 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
}()
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
- return ec.resolvers.Mutation().SetTitle(rctx, fc.Args["input"].(models.SetTitleInput))
+ return ec.resolvers.Mutation().BugSetTitle(rctx, fc.Args["input"].(models.BugSetTitleInput))
})
if err != nil {
ec.Error(ctx, err)
@@ -744,12 +744,12 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
}
return graphql.Null
}
- res := resTmp.(*models.SetTitlePayload)
+ res := resTmp.(*models.BugSetTitlePayload)
fc.Result = res
- return ec.marshalNSetTitlePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐSetTitlePayload(ctx, field.Selections, res)
+ return ec.marshalNBugSetTitlePayload2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugSetTitlePayload(ctx, field.Selections, res)
}
-func (ec *executionContext) fieldContext_Mutation_setTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
+func (ec *executionContext) fieldContext_Mutation_bugSetTitle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
@@ -758,13 +758,13 @@ func (ec *executionContext) fieldContext_Mutation_setTitle(ctx context.Context,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "clientMutationId":
- return ec.fieldContext_SetTitlePayload_clientMutationId(ctx, field)
+ return ec.fieldContext_BugSetTitlePayload_clientMutationId(ctx, field)
case "bug":
- return ec.fieldContext_SetTitlePayload_bug(ctx, field)
+ return ec.fieldContext_BugSetTitlePayload_bug(ctx, field)
case "operation":
- return ec.fieldContext_SetTitlePayload_operation(ctx, field)
+ return ec.fieldContext_BugSetTitlePayload_operation(ctx, field)
}
- return nil, fmt.Errorf("no field named %q was found under type SetTitlePayload", field.Name)
+ return nil, fmt.Errorf("no field named %q was found under type BugSetTitlePayload", field.Name)
},
}
defer func() {
@@ -774,7 +774,7 @@ func (ec *executionContext) fieldContext_Mutation_setTitle(ctx context.Context,
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
- if fc.Args, err = ec.field_Mutation_setTitle_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
+ if fc.Args, err = ec.field_Mutation_bugSetTitle_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
@@ -1009,65 +1009,65 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet)
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Mutation")
- case "newBug":
+ case "bugCreate":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_newBug(ctx, field)
+ return ec._Mutation_bugCreate(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "addComment":
+ case "bugAddComment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_addComment(ctx, field)
+ return ec._Mutation_bugAddComment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "addCommentAndClose":
+ case "bugAddCommentAndClose":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_addCommentAndClose(ctx, field)
+ return ec._Mutation_bugAddCommentAndClose(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "addCommentAndReopen":
+ case "bugAddCommentAndReopen":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_addCommentAndReopen(ctx, field)
+ return ec._Mutation_bugAddCommentAndReopen(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "editComment":
+ case "bugEditComment":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_editComment(ctx, field)
+ return ec._Mutation_bugEditComment(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "changeLabels":
+ case "bugChangeLabels":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_changeLabels(ctx, field)
+ return ec._Mutation_bugChangeLabels(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "openBug":
+ case "bugStatusOpen":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_openBug(ctx, field)
+ return ec._Mutation_bugStatusOpen(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "closeBug":
+ case "bugStatusClose":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_closeBug(ctx, field)
+ return ec._Mutation_bugStatusClose(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
- case "setTitle":
+ case "bugSetTitle":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
- return ec._Mutation_setTitle(ctx, field)
+ return ec._Mutation_bugSetTitle(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
diff --git a/api/graphql/graph/root_.generated.go b/api/graphql/graph/root_.generated.go
index 37789d5c..30740b9c 100644
--- a/api/graphql/graph/root_.generated.go
+++ b/api/graphql/graph/root_.generated.go
@@ -33,179 +33,255 @@ type Config struct {
}
type ResolverRoot interface {
- AddCommentOperation() AddCommentOperationResolver
- AddCommentTimelineItem() AddCommentTimelineItemResolver
Bug() BugResolver
+ BugAddCommentOperation() BugAddCommentOperationResolver
+ BugAddCommentTimelineItem() BugAddCommentTimelineItemResolver
+ BugComment() BugCommentResolver
+ BugCommentHistoryStep() BugCommentHistoryStepResolver
+ BugCreateOperation() BugCreateOperationResolver
+ BugCreateTimelineItem() BugCreateTimelineItemResolver
+ BugEditCommentOperation() BugEditCommentOperationResolver
+ BugLabelChangeOperation() BugLabelChangeOperationResolver
+ BugLabelChangeTimelineItem() BugLabelChangeTimelineItemResolver
+ BugSetStatusOperation() BugSetStatusOperationResolver
+ BugSetStatusTimelineItem() BugSetStatusTimelineItemResolver
+ BugSetTitleOperation() BugSetTitleOperationResolver
+ BugSetTitleTimelineItem() BugSetTitleTimelineItemResolver
Color() ColorResolver
- Comment() CommentResolver
- CommentHistoryStep() CommentHistoryStepResolver
- CreateOperation() CreateOperationResolver
- CreateTimelineItem() CreateTimelineItemResolver
- EditCommentOperation() EditCommentOperationResolver
Identity() IdentityResolver
Label() LabelResolver
- LabelChangeOperation() LabelChangeOperationResolver
- LabelChangeTimelineItem() LabelChangeTimelineItemResolver
Mutation() MutationResolver
Query() QueryResolver
Repository() RepositoryResolver
- SetStatusOperation() SetStatusOperationResolver
- SetStatusTimelineItem() SetStatusTimelineItemResolver
- SetTitleOperation() SetTitleOperationResolver
- SetTitleTimelineItem() SetTitleTimelineItemResolver
}
type DirectiveRoot struct {
}
type ComplexityRoot struct {
- AddCommentAndCloseBugPayload struct {
+ Bug struct {
+ Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
+ Author func(childComplexity int) int
+ Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
+ CreatedAt func(childComplexity int) int
+ HumanID func(childComplexity int) int
+ Id func(childComplexity int) int
+ Labels func(childComplexity int) int
+ LastEdit func(childComplexity int) int
+ Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
+ Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
+ Status func(childComplexity int) int
+ Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
+ Title func(childComplexity int) int
+ }
+
+ BugAddCommentAndClosePayload struct {
Bug func(childComplexity int) int
ClientMutationID func(childComplexity int) int
CommentOperation func(childComplexity int) int
StatusOperation func(childComplexity int) int
}
- AddCommentAndReopenBugPayload struct {
+ BugAddCommentAndReopenPayload struct {
Bug func(childComplexity int) int
ClientMutationID func(childComplexity int) int
CommentOperation func(childComplexity int) int
StatusOperation func(childComplexity int) int
}
- AddCommentOperation struct {
+ BugAddCommentOperation struct {
Author func(childComplexity int) int
- Date func(childComplexity int) int
Files func(childComplexity int) int
Id func(childComplexity int) int
Message func(childComplexity int) int
+ Time func(childComplexity int) int
}
- AddCommentPayload struct {
+ BugAddCommentPayload struct {
Bug func(childComplexity int) int
ClientMutationID func(childComplexity int) int
Operation func(childComplexity int) int
}
- AddCommentTimelineItem struct {
+ BugAddCommentTimelineItem struct {
Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
CreatedAt func(childComplexity int) int
Edited func(childComplexity int) int
Files func(childComplexity int) int
History func(childComplexity int) int
- ID func(childComplexity int) int
LastEdit func(childComplexity int) int
Message func(childComplexity int) int
MessageIsEmpty func(childComplexity int) int
}
- Bug struct {
- Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
- Author func(childComplexity int) int
- Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
- CreatedAt func(childComplexity int) int
- HumanID func(childComplexity int) int
- Id func(childComplexity int) int
- Labels func(childComplexity int) int
- LastEdit func(childComplexity int) int
- Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
- Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
- Status func(childComplexity int) int
- Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
- Title func(childComplexity int) int
- }
-
- BugConnection struct {
- Edges func(childComplexity int) int
- Nodes func(childComplexity int) int
- PageInfo func(childComplexity int) int
- TotalCount func(childComplexity int) int
- }
-
- BugEdge struct {
- Cursor func(childComplexity int) int
- Node func(childComplexity int) int
- }
-
- ChangeLabelPayload struct {
+ BugChangeLabelPayload struct {
Bug func(childComplexity int) int
ClientMutationID func(childComplexity int) int
Operation func(childComplexity int) int
Results func(childComplexity int) int
}
- CloseBugPayload struct {
- Bug func(childComplexity int) int
- ClientMutationID func(childComplexity int) int
- Operation func(childComplexity int) int
+ BugComment struct {
+ Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
+ Files func(childComplexity int) int
+ Message func(childComplexity int) int
}
- Color struct {
- B func(childComplexity int) int
- G func(childComplexity int) int
- R func(childComplexity int) int
- }
-
- Comment struct {
- Author func(childComplexity int) int
- Files func(childComplexity int) int
- ID func(childComplexity int) int
- Message func(childComplexity int) int
- }
-
- CommentConnection struct {
+ BugCommentConnection struct {
Edges func(childComplexity int) int
Nodes func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
- CommentEdge struct {
+ BugCommentEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
- CommentHistoryStep struct {
+ BugCommentHistoryStep struct {
Date func(childComplexity int) int
Message func(childComplexity int) int
}
- CreateOperation struct {
+ BugConnection struct {
+ Edges func(childComplexity int) int
+ Nodes func(childComplexity int) int
+ PageInfo func(childComplexity int) int
+ TotalCount func(childComplexity int) int
+ }
+
+ BugCreateOperation struct {
Author func(childComplexity int) int
- Date func(childComplexity int) int
Files func(childComplexity int) int
Id func(childComplexity int) int
Message func(childComplexity int) int
+ Time func(childComplexity int) int
Title func(childComplexity int) int
}
- CreateTimelineItem struct {
+ BugCreatePayload struct {
+ Bug func(childComplexity int) int
+ ClientMutationID func(childComplexity int) int
+ Operation func(childComplexity int) int
+ }
+
+ BugCreateTimelineItem struct {
Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
CreatedAt func(childComplexity int) int
Edited func(childComplexity int) int
Files func(childComplexity int) int
History func(childComplexity int) int
- ID func(childComplexity int) int
LastEdit func(childComplexity int) int
Message func(childComplexity int) int
MessageIsEmpty func(childComplexity int) int
}
- EditCommentOperation struct {
+ BugEdge struct {
+ Cursor func(childComplexity int) int
+ Node func(childComplexity int) int
+ }
+
+ BugEditCommentOperation struct {
Author func(childComplexity int) int
- Date func(childComplexity int) int
Files func(childComplexity int) int
Id func(childComplexity int) int
Message func(childComplexity int) int
Target func(childComplexity int) int
+ Time func(childComplexity int) int
}
- EditCommentPayload struct {
+ BugEditCommentPayload struct {
Bug func(childComplexity int) int
ClientMutationID func(childComplexity int) int
Operation func(childComplexity int) int
}
+ BugLabelChangeOperation struct {
+ Added func(childComplexity int) int
+ Author func(childComplexity int) int
+ Id func(childComplexity int) int
+ Removed func(childComplexity int) int
+ Time func(childComplexity int) int
+ }
+
+ BugLabelChangeTimelineItem struct {
+ Added func(childComplexity int) int
+ Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
+ Date func(childComplexity int) int
+ Removed func(childComplexity int) int
+ }
+
+ BugSetStatusOperation struct {
+ Author func(childComplexity int) int
+ Id func(childComplexity int) int
+ Status func(childComplexity int) int
+ Time func(childComplexity int) int
+ }
+
+ BugSetStatusTimelineItem struct {
+ Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
+ Date func(childComplexity int) int
+ Status func(childComplexity int) int
+ }
+
+ BugSetTitleOperation struct {
+ Author func(childComplexity int) int
+ Id func(childComplexity int) int
+ Time func(childComplexity int) int
+ Title func(childComplexity int) int
+ Was func(childComplexity int) int
+ }
+
+ BugSetTitlePayload struct {
+ Bug func(childComplexity int) int
+ ClientMutationID func(childComplexity int) int
+ Operation func(childComplexity int) int
+ }
+
+ BugSetTitleTimelineItem struct {
+ Author func(childComplexity int) int
+ CombinedId func(childComplexity int) int
+ Date func(childComplexity int) int
+ Title func(childComplexity int) int
+ Was func(childComplexity int) int
+ }
+
+ BugStatusClosePayload struct {
+ Bug func(childComplexity int) int
+ ClientMutationID func(childComplexity int) int
+ Operation func(childComplexity int) int
+ }
+
+ BugStatusOpenPayload struct {
+ Bug func(childComplexity int) int
+ ClientMutationID func(childComplexity int) int
+ Operation func(childComplexity int) int
+ }
+
+ BugTimelineItemConnection struct {
+ Edges func(childComplexity int) int
+ Nodes func(childComplexity int) int
+ PageInfo func(childComplexity int) int
+ TotalCount func(childComplexity int) int
+ }
+
+ BugTimelineItemEdge struct {
+ Cursor func(childComplexity int) int
+ Node func(childComplexity int) int
+ }
+
+ Color struct {
+ B func(childComplexity int) int
+ G func(childComplexity int) int
+ R func(childComplexity int) int
+ }
+
Identity struct {
AvatarUrl func(childComplexity int) int
DisplayName func(childComplexity int) int
@@ -234,27 +310,11 @@ type ComplexityRoot struct {
Name func(childComplexity int) int
}
- LabelChangeOperation struct {
- Added func(childComplexity int) int
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- Id func(childComplexity int) int
- Removed func(childComplexity int) int
- }
-
LabelChangeResult struct {
Label func(childComplexity int) int
Status func(childComplexity int) int
}
- LabelChangeTimelineItem struct {
- Added func(childComplexity int) int
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- ID func(childComplexity int) int
- Removed func(childComplexity int) int
- }
-
LabelConnection struct {
Edges func(childComplexity int) int
Nodes func(childComplexity int) int
@@ -268,27 +328,15 @@ type ComplexityRoot struct {
}
Mutation struct {
- AddComment func(childComplexity int, input models.AddCommentInput) int
- AddCommentAndClose func(childComplexity int, input models.AddCommentAndCloseBugInput) int
- AddCommentAndReopen func(childComplexity int, input models.AddCommentAndReopenBugInput) int
- ChangeLabels func(childComplexity int, input *models.ChangeLabelInput) int
- CloseBug func(childComplexity int, input models.CloseBugInput) int
- EditComment func(childComplexity int, input models.EditCommentInput) int
- NewBug func(childComplexity int, input models.NewBugInput) int
- OpenBug func(childComplexity int, input models.OpenBugInput) int
- SetTitle func(childComplexity int, input models.SetTitleInput) int
- }
-
- NewBugPayload struct {
- Bug func(childComplexity int) int
- ClientMutationID func(childComplexity int) int
- Operation func(childComplexity int) int
- }
-
- OpenBugPayload struct {
- Bug func(childComplexity int) int
- ClientMutationID func(childComplexity int) int
- Operation func(childComplexity int) int
+ BugAddComment func(childComplexity int, input models.BugAddCommentInput) int
+ BugAddCommentAndClose func(childComplexity int, input models.BugAddCommentAndCloseInput) int
+ BugAddCommentAndReopen func(childComplexity int, input models.BugAddCommentAndReopenInput) int
+ BugChangeLabels func(childComplexity int, input *models.BugChangeLabelInput) int
+ BugCreate func(childComplexity int, input models.BugCreateInput) int
+ BugEditComment func(childComplexity int, input models.BugEditCommentInput) int
+ BugSetTitle func(childComplexity int, input models.BugSetTitleInput) int
+ BugStatusClose func(childComplexity int, input models.BugStatusCloseInput) int
+ BugStatusOpen func(childComplexity int, input models.BugStatusOpenInput) int
}
OperationConnection struct {
@@ -323,54 +371,6 @@ type ComplexityRoot struct {
UserIdentity func(childComplexity int) int
ValidLabels func(childComplexity int, after *string, before *string, first *int, last *int) int
}
-
- SetStatusOperation struct {
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- Id func(childComplexity int) int
- Status func(childComplexity int) int
- }
-
- SetStatusTimelineItem struct {
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- ID func(childComplexity int) int
- Status func(childComplexity int) int
- }
-
- SetTitleOperation struct {
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- Id func(childComplexity int) int
- Title func(childComplexity int) int
- Was func(childComplexity int) int
- }
-
- SetTitlePayload struct {
- Bug func(childComplexity int) int
- ClientMutationID func(childComplexity int) int
- Operation func(childComplexity int) int
- }
-
- SetTitleTimelineItem struct {
- Author func(childComplexity int) int
- Date func(childComplexity int) int
- ID func(childComplexity int) int
- Title func(childComplexity int) int
- Was func(childComplexity int) int
- }
-
- TimelineItemConnection struct {
- Edges func(childComplexity int) int
- Nodes func(childComplexity int) int
- PageInfo func(childComplexity int) int
- TotalCount func(childComplexity int) int
- }
-
- TimelineItemEdge struct {
- Cursor func(childComplexity int) int
- Node func(childComplexity int) int
- }
}
type executableSchema struct {
@@ -392,296 +392,408 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
_ = ec
switch typeName + "." + field {
- case "AddCommentAndCloseBugPayload.bug":
- if e.complexity.AddCommentAndCloseBugPayload.Bug == nil {
+ case "Bug.actors":
+ if e.complexity.Bug.Actors == nil {
break
}
- return e.complexity.AddCommentAndCloseBugPayload.Bug(childComplexity), true
+ args, err := ec.field_Bug_actors_args(context.TODO(), rawArgs)
+ if err != nil {
+ return 0, false
+ }
+
+ return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "AddCommentAndCloseBugPayload.clientMutationId":
- if e.complexity.AddCommentAndCloseBugPayload.ClientMutationID == nil {
+ case "Bug.author":
+ if e.complexity.Bug.Author == nil {
break
}
- return e.complexity.AddCommentAndCloseBugPayload.ClientMutationID(childComplexity), true
+ return e.complexity.Bug.Author(childComplexity), true
- case "AddCommentAndCloseBugPayload.commentOperation":
- if e.complexity.AddCommentAndCloseBugPayload.CommentOperation == nil {
+ case "Bug.comments":
+ if e.complexity.Bug.Comments == nil {
break
}
- return e.complexity.AddCommentAndCloseBugPayload.CommentOperation(childComplexity), true
+ args, err := ec.field_Bug_comments_args(context.TODO(), rawArgs)
+ if err != nil {
+ return 0, false
+ }
+
+ return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "AddCommentAndCloseBugPayload.statusOperation":
- if e.complexity.AddCommentAndCloseBugPayload.StatusOperation == nil {
+ case "Bug.createdAt":
+ if e.complexity.Bug.CreatedAt == nil {
break
}
- return e.complexity.AddCommentAndCloseBugPayload.StatusOperation(childComplexity), true
+ return e.complexity.Bug.CreatedAt(childComplexity), true
- case "AddCommentAndReopenBugPayload.bug":
- if e.complexity.AddCommentAndReopenBugPayload.Bug == nil {
+ case "Bug.humanId":
+ if e.complexity.Bug.HumanID == nil {
break
}
- return e.complexity.AddCommentAndReopenBugPayload.Bug(childComplexity), true
+ return e.complexity.Bug.HumanID(childComplexity), true
- case "AddCommentAndReopenBugPayload.clientMutationId":
- if e.complexity.AddCommentAndReopenBugPayload.ClientMutationID == nil {
+ case "Bug.id":
+ if e.complexity.Bug.Id == nil {
break
}
- return e.complexity.AddCommentAndReopenBugPayload.ClientMutationID(childComplexity), true
+ return e.complexity.Bug.Id(childComplexity), true
- case "AddCommentAndReopenBugPayload.commentOperation":
- if e.complexity.AddCommentAndReopenBugPayload.CommentOperation == nil {
+ case "Bug.labels":
+ if e.complexity.Bug.Labels == nil {
break
}
- return e.complexity.AddCommentAndReopenBugPayload.CommentOperation(childComplexity), true
+ return e.complexity.Bug.Labels(childComplexity), true
- case "AddCommentAndReopenBugPayload.statusOperation":
- if e.complexity.AddCommentAndReopenBugPayload.StatusOperation == nil {
+ case "Bug.lastEdit":
+ if e.complexity.Bug.LastEdit == nil {
break
}
- return e.complexity.AddCommentAndReopenBugPayload.StatusOperation(childComplexity), true
+ return e.complexity.Bug.LastEdit(childComplexity), true
- case "AddCommentOperation.author":
- if e.complexity.AddCommentOperation.Author == nil {
+ case "Bug.operations":
+ if e.complexity.Bug.Operations == nil {
break
}
- return e.complexity.AddCommentOperation.Author(childComplexity), true
+ args, err := ec.field_Bug_operations_args(context.TODO(), rawArgs)
+ if err != nil {
+ return 0, false
+ }
+
+ return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "AddCommentOperation.date":
- if e.complexity.AddCommentOperation.Date == nil {
+ case "Bug.participants":
+ if e.complexity.Bug.Participants == nil {
break
}
- return e.complexity.AddCommentOperation.Date(childComplexity), true
+ args, err := ec.field_Bug_participants_args(context.TODO(), rawArgs)
+ if err != nil {
+ return 0, false
+ }
+
+ return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "AddCommentOperation.files":
- if e.complexity.AddCommentOperation.Files == nil {
+ case "Bug.status":
+ if e.complexity.Bug.Status == nil {
break
}
- return e.complexity.AddCommentOperation.Files(childComplexity), true
+ return e.complexity.Bug.Status(childComplexity), true
- case "AddCommentOperation.id":
- if e.complexity.AddCommentOperation.Id == nil {
+ case "Bug.timeline":
+ if e.complexity.Bug.Timeline == nil {
break
}
- return e.complexity.AddCommentOperation.Id(childComplexity), true
+ args, err := ec.field_Bug_timeline_args(context.TODO(), rawArgs)
+ if err != nil {
+ return 0, false
+ }
+
+ return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "AddCommentOperation.message":
- if e.complexity.AddCommentOperation.Message == nil {
+ case "Bug.title":
+ if e.complexity.Bug.Title == nil {
break
}
- return e.complexity.AddCommentOperation.Message(childComplexity), true
+ return e.complexity.Bug.Title(childComplexity), true
- case "AddCommentPayload.bug":
- if e.complexity.AddCommentPayload.Bug == nil {
+ case "BugAddCommentAndClosePayload.bug":
+ if e.complexity.BugAddCommentAndClosePayload.Bug == nil {
break
}
- return e.complexity.AddCommentPayload.Bug(childComplexity), true
+ return e.complexity.BugAddCommentAndClosePayload.Bug(childComplexity), true
- case "AddCommentPayload.clientMutationId":
- if e.complexity.AddCommentPayload.ClientMutationID == nil {
+ case "BugAddCommentAndClosePayload.clientMutationId":
+ if e.complexity.BugAddCommentAndClosePayload.ClientMutationID == nil {
break
}
- return e.complexity.AddCommentPayload.ClientMutationID(childComplexity), true
+ return e.complexity.BugAddCommentAndClosePayload.ClientMutationID(childComplexity), true
- case "AddCommentPayload.operation":
- if e.complexity.AddCommentPayload.Operation == nil {
+ case "BugAddCommentAndClosePayload.commentOperation":
+ if e.complexity.BugAddCommentAndClosePayload.CommentOperation == nil {
break
}
- return e.complexity.AddCommentPayload.Operation(childComplexity), true
+ return e.complexity.BugAddCommentAndClosePayload.CommentOperation(childComplexity), true
- case "AddCommentTimelineItem.author":
- if e.complexity.AddCommentTimelineItem.Author == nil {
+ case "BugAddCommentAndClosePayload.statusOperation":
+ if e.complexity.BugAddCommentAndClosePayload.StatusOperation == nil {
break
}
- return e.complexity.AddCommentTimelineItem.Author(childComplexity), true
+ return e.complexity.BugAddCommentAndClosePayload.StatusOperation(childComplexity), true
- case "AddCommentTimelineItem.createdAt":
- if e.complexity.AddCommentTimelineItem.CreatedAt == nil {
+ case "BugAddCommentAndReopenPayload.bug":
+ if e.complexity.BugAddCommentAndReopenPayload.Bug == nil {
break
}
- return e.complexity.AddCommentTimelineItem.CreatedAt(childComplexity), true
+ return e.complexity.BugAddCommentAndReopenPayload.Bug(childComplexity), true
- case "AddCommentTimelineItem.edited":
- if e.complexity.AddCommentTimelineItem.Edited == nil {
+ case "BugAddCommentAndReopenPayload.clientMutationId":
+ if e.complexity.BugAddCommentAndReopenPayload.ClientMutationID == nil {
break
}
- return e.complexity.AddCommentTimelineItem.Edited(childComplexity), true
+ return e.complexity.BugAddCommentAndReopenPayload.ClientMutationID(childComplexity), true
- case "AddCommentTimelineItem.files":
- if e.complexity.AddCommentTimelineItem.Files == nil {
+ case "BugAddCommentAndReopenPayload.commentOperation":
+ if e.complexity.BugAddCommentAndReopenPayload.CommentOperation == nil {
break
}
- return e.complexity.AddCommentTimelineItem.Files(childComplexity), true
+ return e.complexity.BugAddCommentAndReopenPayload.CommentOperation(childComplexity), true
- case "AddCommentTimelineItem.history":
- if e.complexity.AddCommentTimelineItem.History == nil {
+ case "BugAddCommentAndReopenPayload.statusOperation":
+ if e.complexity.BugAddCommentAndReopenPayload.StatusOperation == nil {
break
}
- return e.complexity.AddCommentTimelineItem.History(childComplexity), true
+ return e.complexity.BugAddCommentAndReopenPayload.StatusOperation(childComplexity), true
- case "AddCommentTimelineItem.id":
- if e.complexity.AddCommentTimelineItem.ID == nil {
+ case "BugAddCommentOperation.author":
+ if e.complexity.BugAddCommentOperation.Author == nil {
break
}
- return e.complexity.AddCommentTimelineItem.ID(childComplexity), true
+ return e.complexity.BugAddCommentOperation.Author(childComplexity), true
- case "AddCommentTimelineItem.lastEdit":
- if e.complexity.AddCommentTimelineItem.LastEdit == nil {
+ case "BugAddCommentOperation.files":
+ if e.complexity.BugAddCommentOperation.Files == nil {
break
}
- return e.complexity.AddCommentTimelineItem.LastEdit(childComplexity), true
+ return e.complexity.BugAddCommentOperation.Files(childComplexity), true
- case "AddCommentTimelineItem.message":
- if e.complexity.AddCommentTimelineItem.Message == nil {
+ case "BugAddCommentOperation.id":
+ if e.complexity.BugAddCommentOperation.Id == nil {
break
}
- return e.complexity.AddCommentTimelineItem.Message(childComplexity), true
+ return e.complexity.BugAddCommentOperation.Id(childComplexity), true
- case "AddCommentTimelineItem.messageIsEmpty":
- if e.complexity.AddCommentTimelineItem.MessageIsEmpty == nil {
+ case "BugAddCommentOperation.message":
+ if e.complexity.BugAddCommentOperation.Message == nil {
break
}
- return e.complexity.AddCommentTimelineItem.MessageIsEmpty(childComplexity), true
+ return e.complexity.BugAddCommentOperation.Message(childComplexity), true
- case "Bug.actors":
- if e.complexity.Bug.Actors == nil {
+ case "BugAddCommentOperation.date":
+ if e.complexity.BugAddCommentOperation.Time == nil {
break
}
- args, err := ec.field_Bug_actors_args(context.TODO(), rawArgs)
- if err != nil {
- return 0, false
+ return e.complexity.BugAddCommentOperation.Time(childComplexity), true
+
+ case "BugAddCommentPayload.bug":
+ if e.complexity.BugAddCommentPayload.Bug == nil {
+ break
}
- return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
+ return e.complexity.BugAddCommentPayload.Bug(childComplexity), true
- case "Bug.author":
- if e.complexity.Bug.Author == nil {
+ case "BugAddCommentPayload.clientMutationId":
+ if e.complexity.BugAddCommentPayload.ClientMutationID == nil {
break
}
- return e.complexity.Bug.Author(childComplexity), true
+ return e.complexity.BugAddCommentPayload.ClientMutationID(childComplexity), true
- case "Bug.comments":
- if e.complexity.Bug.Comments == nil {
+ case "BugAddCommentPayload.operation":
+ if e.complexity.BugAddCommentPayload.Operation == nil {
break
}
- args, err := ec.field_Bug_comments_args(context.TODO(), rawArgs)
- if err != nil {
- return 0, false
+ return e.complexity.BugAddCommentPayload.Operation(childComplexity), true
+
+ case "BugAddCommentTimelineItem.author":
+ if e.complexity.BugAddCommentTimelineItem.Author == nil {
+ break
}
- return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
+ return e.complexity.BugAddCommentTimelineItem.Author(childComplexity), true
- case "Bug.createdAt":
- if e.complexity.Bug.CreatedAt == nil {
+ case "BugAddCommentTimelineItem.id":
+ if e.complexity.BugAddCommentTimelineItem.CombinedId == nil {
break
}
- return e.complexity.Bug.CreatedAt(childComplexity), true
+ return e.complexity.BugAddCommentTimelineItem.CombinedId(childComplexity), true
- case "Bug.humanId":
- if e.complexity.Bug.HumanID == nil {
+ case "BugAddCommentTimelineItem.createdAt":
+ if e.complexity.BugAddCommentTimelineItem.CreatedAt == nil {
break
}
- return e.complexity.Bug.HumanID(childComplexity), true
+ return e.complexity.BugAddCommentTimelineItem.CreatedAt(childComplexity), true
- case "Bug.id":
- if e.complexity.Bug.Id == nil {
+ case "BugAddCommentTimelineItem.edited":
+ if e.complexity.BugAddCommentTimelineItem.Edited == nil {
break
}
- return e.complexity.Bug.Id(childComplexity), true
+ return e.complexity.BugAddCommentTimelineItem.Edited(childComplexity), true
- case "Bug.labels":
- if e.complexity.Bug.Labels == nil {
+ case "BugAddCommentTimelineItem.files":
+ if e.complexity.BugAddCommentTimelineItem.Files == nil {
break
}
- return e.complexity.Bug.Labels(childComplexity), true
+ return e.complexity.BugAddCommentTimelineItem.Files(childComplexity), true
- case "Bug.lastEdit":
- if e.complexity.Bug.LastEdit == nil {
+ case "BugAddCommentTimelineItem.history":
+ if e.complexity.BugAddCommentTimelineItem.History == nil {
break
}
- return e.complexity.Bug.LastEdit(childComplexity), true
+ return e.complexity.BugAddCommentTimelineItem.History(childComplexity), true
- case "Bug.operations":
- if e.complexity.Bug.Operations == nil {
+ case "BugAddCommentTimelineItem.lastEdit":
+ if e.complexity.BugAddCommentTimelineItem.LastEdit == nil {
break
}
- args, err := ec.field_Bug_operations_args(context.TODO(), rawArgs)
- if err != nil {
- return 0, false
+ return e.complexity.BugAddCommentTimelineItem.LastEdit(childComplexity), true
+
+ case "BugAddCommentTimelineItem.message":
+ if e.complexity.BugAddCommentTimelineItem.Message == nil {
+ break
}
- return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
+ return e.complexity.BugAddCommentTimelineItem.Message(childComplexity), true
- case "Bug.participants":
- if e.complexity.Bug.Participants == nil {
+ case "BugAddCommentTimelineItem.messageIsEmpty":
+ if e.complexity.BugAddCommentTimelineItem.MessageIsEmpty == nil {
break
}
- args, err := ec.field_Bug_participants_args(context.TODO(), rawArgs)
- if err != nil {
- return 0, false
+ return e.complexity.BugAddCommentTimelineItem.MessageIsEmpty(childComplexity), true
+
+ case "BugChangeLabelPayload.bug":
+ if e.complexity.BugChangeLabelPayload.Bug == nil {
+ break
}
- return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
+ return e.complexity.BugChangeLabelPayload.Bug(childComplexity), true
- case "Bug.status":
- if e.complexity.Bug.Status == nil {
+ case "BugChangeLabelPayload.clientMutationId":
+ if e.complexity.BugChangeLabelPayload.ClientMutationID == nil {
break
}
- return e.complexity.Bug.Status(childComplexity), true
+ return e.complexity.BugChangeLabelPayload.ClientMutationID(childComplexity), true
- case "Bug.timeline":
- if e.complexity.Bug.Timeline == nil {
+ case "BugChangeLabelPayload.operation":
+ if e.complexity.BugChangeLabelPayload.Operation == nil {
break
}
- args, err := ec.field_Bug_timeline_args(context.TODO(), rawArgs)
- if err != nil {
- return 0, false
+ return e.complexity.BugChangeLabelPayload.Operation(childComplexity), true
+
+ case "BugChangeLabelPayload.results":
+ if e.complexity.BugChangeLabelPayload.Results == nil {
+ break
}
- return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
+ return e.complexity.BugChangeLabelPayload.Results(childComplexity), true
- case "Bug.title":
- if e.complexity.Bug.Title == nil {
+ case "BugComment.author":
+ if e.complexity.BugComment.Author == nil {
break
}
- return e.complexity.Bug.Title(childComplexity), true
+ return e.complexity.BugComment.Author(childComplexity), true
+
+ case "BugComment.id":
+ if e.complexity.BugComment.CombinedId == nil {
+ break
+ }
+
+ return e.complexity.BugComment.CombinedId(childComplexity), true
+
+ case "BugComment.files":
+ if e.complexity.BugComment.Files == nil {
+ break
+ }
+
+ return e.complexity.BugComment.Files(childComplexity), true
+
+ case "BugComment.message":
+ if e.complexity.BugComment.Message == nil {
+ break
+ }
+
+ return e.complexity.BugComment.Message(childComplexity), true
+
+ case "BugCommentConnection.edges":
+ if e.complexity.BugCommentConnection.Edges == nil {
+ break
+ }
+
+ return e.complexity.BugCommentConnection.Edges(childComplexity), true
+
+ case "BugCommentConnection.nodes":
+ if e.complexity.BugCommentConnection.Nodes == nil {
+ break
+ }
+
+ return e.complexity.BugCommentConnection.Nodes(childComplexity), true
+
+ case "BugCommentConnection.pageInfo":
+ if e.complexity.BugCommentConnection.PageInfo == nil {
+ break
+ }
+
+ return e.complexity.BugCommentConnection.PageInfo(childComplexity), true
+
+ case "BugCommentConnection.totalCount":
+ if e.complexity.BugCommentConnection.TotalCount == nil {
+ break
+ }
+
+ return e.complexity.BugCommentConnection.TotalCount(childComplexity), true
+
+ case "BugCommentEdge.cursor":
+ if e.complexity.BugCommentEdge.Cursor == nil {
+ break
+ }
+
+ return e.complexity.BugCommentEdge.Cursor(childComplexity), true
+
+ case "BugCommentEdge.node":
+ if e.complexity.BugCommentEdge.Node == nil {
+ break
+ }
+
+ return e.complexity.BugCommentEdge.Node(childComplexity), true
+
+ case "BugCommentHistoryStep.date":
+ if e.complexity.BugCommentHistoryStep.Date == nil {
+ break
+ }
+
+ return e.complexity.BugCommentHistoryStep.Date(childComplexity), true
+
+ case "BugCommentHistoryStep.message":
+ if e.complexity.BugCommentHistoryStep.Message == nil {
+ break
+ }
+
+ return e.complexity.BugCommentHistoryStep.Message(childComplexity), true
case "BugConnection.edges":
if e.complexity.BugConnection.Edges == nil {
@@ -711,6 +823,132 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.BugConnection.TotalCount(childComplexity), true
+ case "BugCreateOperation.author":
+ if e.complexity.BugCreateOperation.Author == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Author(childComplexity), true
+
+ case "BugCreateOperation.files":
+ if e.complexity.BugCreateOperation.Files == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Files(childComplexity), true
+
+ case "BugCreateOperation.id":
+ if e.complexity.BugCreateOperation.Id == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Id(childComplexity), true
+
+ case "BugCreateOperation.message":
+ if e.complexity.BugCreateOperation.Message == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Message(childComplexity), true
+
+ case "BugCreateOperation.date":
+ if e.complexity.BugCreateOperation.Time == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Time(childComplexity), true
+
+ case "BugCreateOperation.title":
+ if e.complexity.BugCreateOperation.Title == nil {
+ break
+ }
+
+ return e.complexity.BugCreateOperation.Title(childComplexity), true
+
+ case "BugCreatePayload.bug":
+ if e.complexity.BugCreatePayload.Bug == nil {
+ break
+ }
+
+ return e.complexity.BugCreatePayload.Bug(childComplexity), true
+
+ case "BugCreatePayload.clientMutationId":
+ if e.complexity.BugCreatePayload.ClientMutationID == nil {
+ break
+ }
+
+ return e.complexity.BugCreatePayload.ClientMutationID(childComplexity), true
+
+ case "BugCreatePayload.operation":
+ if e.complexity.BugCreatePayload.Operation == nil {
+ break
+ }
+
+ return e.complexity.BugCreatePayload.Operation(childComplexity), true
+
+ case "BugCreateTimelineItem.author":
+ if e.complexity.BugCreateTimelineItem.Author == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.Author(childComplexity), true
+
+ case "BugCreateTimelineItem.id":
+ if e.complexity.BugCreateTimelineItem.CombinedId == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.CombinedId(childComplexity), true
+
+ case "BugCreateTimelineItem.createdAt":
+ if e.complexity.BugCreateTimelineItem.CreatedAt == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.CreatedAt(childComplexity), true
+
+ case "BugCreateTimelineItem.edited":
+ if e.complexity.BugCreateTimelineItem.Edited == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.Edited(childComplexity), true
+
+ case "BugCreateTimelineItem.files":
+ if e.complexity.BugCreateTimelineItem.Files == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.Files(childComplexity), true
+
+ case "BugCreateTimelineItem.history":
+ if e.complexity.BugCreateTimelineItem.History == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.History(childComplexity), true
+
+ case "BugCreateTimelineItem.lastEdit":
+ if e.complexity.BugCreateTimelineItem.LastEdit == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.LastEdit(childComplexity), true
+
+ case "BugCreateTimelineItem.message":
+ if e.complexity.BugCreateTimelineItem.Message == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.Message(childComplexity), true
+
+ case "BugCreateTimelineItem.messageIsEmpty":
+ if e.complexity.BugCreateTimelineItem.MessageIsEmpty == nil {
+ break
+ }
+
+ return e.complexity.BugCreateTimelineItem.MessageIsEmpty(childComplexity), true
+
case "BugEdge.cursor":
if e.complexity.BugEdge.Cursor == nil {
break
@@ -725,327 +963,390 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.BugEdge.Node(childComplexity), true
- case "ChangeLabelPayload.bug":
- if e.complexity.ChangeLabelPayload.Bug == nil {
+ case "BugEditCommentOperation.author":
+ if e.complexity.BugEditCommentOperation.Author == nil {
break
}
- return e.complexity.ChangeLabelPayload.Bug(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Author(childComplexity), true
- case "ChangeLabelPayload.clientMutationId":
- if e.complexity.ChangeLabelPayload.ClientMutationID == nil {
+ case "BugEditCommentOperation.files":
+ if e.complexity.BugEditCommentOperation.Files == nil {
break
}
- return e.complexity.ChangeLabelPayload.ClientMutationID(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Files(childComplexity), true
- case "ChangeLabelPayload.operation":
- if e.complexity.ChangeLabelPayload.Operation == nil {
+ case "BugEditCommentOperation.id":
+ if e.complexity.BugEditCommentOperation.Id == nil {
break
}
- return e.complexity.ChangeLabelPayload.Operation(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Id(childComplexity), true
- case "ChangeLabelPayload.results":
- if e.complexity.ChangeLabelPayload.Results == nil {
+ case "BugEditCommentOperation.message":
+ if e.complexity.BugEditCommentOperation.Message == nil {
break
}
- return e.complexity.ChangeLabelPayload.Results(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Message(childComplexity), true
- case "CloseBugPayload.bug":
- if e.complexity.CloseBugPayload.Bug == nil {
+ case "BugEditCommentOperation.target":
+ if e.complexity.BugEditCommentOperation.Target == nil {
break
}
- return e.complexity.CloseBugPayload.Bug(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Target(childComplexity), true
- case "CloseBugPayload.clientMutationId":
- if e.complexity.CloseBugPayload.ClientMutationID == nil {
+ case "BugEditCommentOperation.date":
+ if e.complexity.BugEditCommentOperation.Time == nil {
break
}
- return e.complexity.CloseBugPayload.ClientMutationID(childComplexity), true
+ return e.complexity.BugEditCommentOperation.Time(childComplexity), true
- case "CloseBugPayload.operation":
- if e.complexity.CloseBugPayload.Operation == nil {
+ case "BugEditCommentPayload.bug":
+ if e.complexity.BugEditCommentPayload.Bug == nil {
break
}
- return e.complexity.CloseBugPayload.Operation(childComplexity), true
+ return e.complexity.BugEditCommentPayload.Bug(childComplexity), true
- case "Color.B":
- if e.complexity.Color.B == nil {
+ case "BugEditCommentPayload.clientMutationId":
+ if e.complexity.BugEditCommentPayload.ClientMutationID == nil {
break
}
- return e.complexity.Color.B(childComplexity), true
+ return e.complexity.BugEditCommentPayload.ClientMutationID(childComplexity), true
- case "Color.G":
- if e.complexity.Color.G == nil {
+ case "BugEditCommentPayload.operation":
+ if e.complexity.BugEditCommentPayload.Operation == nil {
break
}
- return e.complexity.Color.G(childComplexity), true
+ return e.complexity.BugEditCommentPayload.Operation(childComplexity), true
- case "Color.R":
- if e.complexity.Color.R == nil {
+ case "BugLabelChangeOperation.added":
+ if e.complexity.BugLabelChangeOperation.Added == nil {
break
}
- return e.complexity.Color.R(childComplexity), true
+ return e.complexity.BugLabelChangeOperation.Added(childComplexity), true
+
+ case "BugLabelChangeOperation.author":
+ if e.complexity.BugLabelChangeOperation.Author == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeOperation.Author(childComplexity), true
+
+ case "BugLabelChangeOperation.id":
+ if e.complexity.BugLabelChangeOperation.Id == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeOperation.Id(childComplexity), true
+
+ case "BugLabelChangeOperation.removed":
+ if e.complexity.BugLabelChangeOperation.Removed == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeOperation.Removed(childComplexity), true
+
+ case "BugLabelChangeOperation.date":
+ if e.complexity.BugLabelChangeOperation.Time == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeOperation.Time(childComplexity), true
+
+ case "BugLabelChangeTimelineItem.added":
+ if e.complexity.BugLabelChangeTimelineItem.Added == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeTimelineItem.Added(childComplexity), true
+
+ case "BugLabelChangeTimelineItem.author":
+ if e.complexity.BugLabelChangeTimelineItem.Author == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeTimelineItem.Author(childComplexity), true
+
+ case "BugLabelChangeTimelineItem.id":
+ if e.complexity.BugLabelChangeTimelineItem.CombinedId == nil {
+ break
+ }
- case "Comment.author":
- if e.complexity.Comment.Author == nil {
+ return e.complexity.BugLabelChangeTimelineItem.CombinedId(childComplexity), true
+
+ case "BugLabelChangeTimelineItem.date":
+ if e.complexity.BugLabelChangeTimelineItem.Date == nil {
+ break
+ }
+
+ return e.complexity.BugLabelChangeTimelineItem.Date(childComplexity), true
+
+ case "BugLabelChangeTimelineItem.removed":
+ if e.complexity.BugLabelChangeTimelineItem.Removed == nil {
break
}
- return e.complexity.Comment.Author(childComplexity), true
+ return e.complexity.BugLabelChangeTimelineItem.Removed(childComplexity), true
- case "Comment.files":
- if e.complexity.Comment.Files == nil {
+ case "BugSetStatusOperation.author":
+ if e.complexity.BugSetStatusOperation.Author == nil {
break
}
- return e.complexity.Comment.Files(childComplexity), true
+ return e.complexity.BugSetStatusOperation.Author(childComplexity), true
- case "Comment.id":
- if e.complexity.Comment.ID == nil {
+ case "BugSetStatusOperation.id":
+ if e.complexity.BugSetStatusOperation.Id == nil {
break
}
- return e.complexity.Comment.ID(childComplexity), true
+ return e.complexity.BugSetStatusOperation.Id(childComplexity), true
- case "Comment.message":
- if e.complexity.Comment.Message == nil {
+ case "BugSetStatusOperation.status":
+ if e.complexity.BugSetStatusOperation.Status == nil {
break
}
- return e.complexity.Comment.Message(childComplexity), true
+ return e.complexity.BugSetStatusOperation.Status(childComplexity), true
- case "CommentConnection.edges":
- if e.complexity.CommentConnection.Edges == nil {
+ case "BugSetStatusOperation.date":
+ if e.complexity.BugSetStatusOperation.Time == nil {
break
}
- return e.complexity.CommentConnection.Edges(childComplexity), true
+ return e.complexity.BugSetStatusOperation.Time(childComplexity), true
- case "CommentConnection.nodes":
- if e.complexity.CommentConnection.Nodes == nil {
+ case "BugSetStatusTimelineItem.author":
+ if e.complexity.BugSetStatusTimelineItem.Author == nil {
break
}
- return e.complexity.CommentConnection.Nodes(childComplexity), true
+ return e.complexity.BugSetStatusTimelineItem.Author(childComplexity), true
- case "CommentConnection.pageInfo":
- if e.complexity.CommentConnection.PageInfo == nil {
+ case "BugSetStatusTimelineItem.id":
+ if e.complexity.BugSetStatusTimelineItem.CombinedId == nil {
break
}
- return e.complexity.CommentConnection.PageInfo(childComplexity), true
+ return e.complexity.BugSetStatusTimelineItem.CombinedId(childComplexity), true
- case "CommentConnection.totalCount":
- if e.complexity.CommentConnection.TotalCount == nil {
+ case "BugSetStatusTimelineItem.date":
+ if e.complexity.BugSetStatusTimelineItem.Date == nil {
break
}
- return e.complexity.CommentConnection.TotalCount(childComplexity), true
+ return e.complexity.BugSetStatusTimelineItem.Date(childComplexity), true
- case "CommentEdge.cursor":
- if e.complexity.CommentEdge.Cursor == nil {
+ case "BugSetStatusTimelineItem.status":
+ if e.complexity.BugSetStatusTimelineItem.Status == nil {
break
}
- return e.complexity.CommentEdge.Cursor(childComplexity), true
+ return e.complexity.BugSetStatusTimelineItem.Status(childComplexity), true
- case "CommentEdge.node":
- if e.complexity.CommentEdge.Node == nil {
+ case "BugSetTitleOperation.author":
+ if e.complexity.BugSetTitleOperation.Author == nil {
break
}
- return e.complexity.CommentEdge.Node(childComplexity), true
+ return e.complexity.BugSetTitleOperation.Author(childComplexity), true
- case "CommentHistoryStep.date":
- if e.complexity.CommentHistoryStep.Date == nil {
+ case "BugSetTitleOperation.id":
+ if e.complexity.BugSetTitleOperation.Id == nil {
break
}
- return e.complexity.CommentHistoryStep.Date(childComplexity), true
+ return e.complexity.BugSetTitleOperation.Id(childComplexity), true
- case "CommentHistoryStep.message":
- if e.complexity.CommentHistoryStep.Message == nil {
+ case "BugSetTitleOperation.date":
+ if e.complexity.BugSetTitleOperation.Time == nil {
break
}
- return e.complexity.CommentHistoryStep.Message(childComplexity), true
+ return e.complexity.BugSetTitleOperation.Time(childComplexity), true
- case "CreateOperation.author":
- if e.complexity.CreateOperation.Author == nil {
+ case "BugSetTitleOperation.title":
+ if e.complexity.BugSetTitleOperation.Title == nil {
break
}
- return e.complexity.CreateOperation.Author(childComplexity), true
+ return e.complexity.BugSetTitleOperation.Title(childComplexity), true
- case "CreateOperation.date":
- if e.complexity.CreateOperation.Date == nil {
+ case "BugSetTitleOperation.was":
+ if e.complexity.BugSetTitleOperation.Was == nil {
break
}
- return e.complexity.CreateOperation.Date(childComplexity), true
+ return e.complexity.BugSetTitleOperation.Was(childComplexity), true
- case "CreateOperation.files":
- if e.complexity.CreateOperation.Files == nil {
+ case "BugSetTitlePayload.bug":
+ if e.complexity.BugSetTitlePayload.Bug == nil {
break
}
- return e.complexity.CreateOperation.Files(childComplexity), true
+ return e.complexity.BugSetTitlePayload.Bug(childComplexity), true
- case "CreateOperation.id":
- if e.complexity.CreateOperation.Id == nil {
+ case "BugSetTitlePayload.clientMutationId":
+ if e.complexity.BugSetTitlePayload.ClientMutationID == nil {
break
}
- return e.complexity.CreateOperation.Id(childComplexity), true
+ return e.complexity.BugSetTitlePayload.ClientMutationID(childComplexity), true
- case "CreateOperation.message":
- if e.complexity.CreateOperation.Message == nil {
+ case "BugSetTitlePayload.operation":
+ if e.complexity.BugSetTitlePayload.Operation == nil {
break
}
- return e.complexity.CreateOperation.Message(childComplexity), true
+ return e.complexity.BugSetTitlePayload.Operation(childComplexity), true
- case "CreateOperation.title":
- if e.complexity.CreateOperation.Title == nil {
+ case "BugSetTitleTimelineItem.author":
+ if e.complexity.BugSetTitleTimelineItem.Author == nil {
break
}
- return e.complexity.CreateOperation.Title(childComplexity), true
+ return e.complexity.BugSetTitleTimelineItem.Author(childComplexity), true
- case "CreateTimelineItem.author":
- if e.complexity.CreateTimelineItem.Author == nil {
+ case "BugSetTitleTimelineItem.id":
+ if e.complexity.BugSetTitleTimelineItem.CombinedId == nil {
break
}
- return e.complexity.CreateTimelineItem.Author(childComplexity), true
+ return e.complexity.BugSetTitleTimelineItem.CombinedId(childComplexity), true
- case "CreateTimelineItem.createdAt":
- if e.complexity.CreateTimelineItem.CreatedAt == nil {
+ case "BugSetTitleTimelineItem.date":
+ if e.complexity.BugSetTitleTimelineItem.Date == nil {
break
}
- return e.complexity.CreateTimelineItem.CreatedAt(childComplexity), true
+ return e.complexity.BugSetTitleTimelineItem.Date(childComplexity), true
- case "CreateTimelineItem.edited":
- if e.complexity.CreateTimelineItem.Edited == nil {
+ case "BugSetTitleTimelineItem.title":
+ if e.complexity.BugSetTitleTimelineItem.Title == nil {
break
}
- return e.complexity.CreateTimelineItem.Edited(childComplexity), true
+ return e.complexity.BugSetTitleTimelineItem.Title(childComplexity), true
- case "CreateTimelineItem.files":
- if e.complexity.CreateTimelineItem.Files == nil {
+ case "BugSetTitleTimelineItem.was":
+ if e.complexity.BugSetTitleTimelineItem.Was == nil {
break
}
- return e.complexity.CreateTimelineItem.Files(childComplexity), true
+ return e.complexity.BugSetTitleTimelineItem.Was(childComplexity), true
- case "CreateTimelineItem.history":
- if e.complexity.CreateTimelineItem.History == nil {
+ case "BugStatusClosePayload.bug":
+ if e.complexity.BugStatusClosePayload.Bug == nil {
break
}
- return e.complexity.CreateTimelineItem.History(childComplexity), true
+ return e.complexity.BugStatusClosePayload.Bug(childComplexity), true
- case "CreateTimelineItem.id":
- if e.complexity.CreateTimelineItem.ID == nil {
+ case "BugStatusClosePayload.clientMutationId":
+ if e.complexity.BugStatusClosePayload.ClientMutationID == nil {
break
}
- return e.complexity.CreateTimelineItem.ID(childComplexity), true
+ return e.complexity.BugStatusClosePayload.ClientMutationID(childComplexity), true
- case "CreateTimelineItem.lastEdit":
- if e.complexity.CreateTimelineItem.LastEdit == nil {
+ case "BugStatusClosePayload.operation":
+ if e.complexity.BugStatusClosePayload.Operation == nil {
break
}
- return e.complexity.CreateTimelineItem.LastEdit(childComplexity), true
+ return e.complexity.BugStatusClosePayload.Operation(childComplexity), true
- case "CreateTimelineItem.message":
- if e.complexity.CreateTimelineItem.Message == nil {
+ case "BugStatusOpenPayload.bug":
+ if e.complexity.BugStatusOpenPayload.Bug == nil {
break
}
- return e.complexity.CreateTimelineItem.Message(childComplexity), true
+ return e.complexity.BugStatusOpenPayload.Bug(childComplexity), true
- case "CreateTimelineItem.messageIsEmpty":
- if e.complexity.CreateTimelineItem.MessageIsEmpty == nil {
+ case "BugStatusOpenPayload.clientMutationId":
+ if e.complexity.BugStatusOpenPayload.ClientMutationID == nil {
break
}
- return e.complexity.CreateTimelineItem.MessageIsEmpty(childComplexity), true
+ return e.complexity.BugStatusOpenPayload.ClientMutationID(childComplexity), true
- case "EditCommentOperation.author":
- if e.complexity.EditCommentOperation.Author == nil {
+ case "BugStatusOpenPayload.operation":
+ if e.complexity.BugStatusOpenPayload.Operation == nil {
break
}
- return e.complexity.EditCommentOperation.Author(childComplexity), true
+ return e.complexity.BugStatusOpenPayload.Operation(childComplexity), true
- case "EditCommentOperation.date":
- if e.complexity.EditCommentOperation.Date == nil {
+ case "BugTimelineItemConnection.edges":
+ if e.complexity.BugTimelineItemConnection.Edges == nil {
break
}
- return e.complexity.EditCommentOperation.Date(childComplexity), true
+ return e.complexity.BugTimelineItemConnection.Edges(childComplexity), true
- case "EditCommentOperation.files":
- if e.complexity.EditCommentOperation.Files == nil {
+ case "BugTimelineItemConnection.nodes":
+ if e.complexity.BugTimelineItemConnection.Nodes == nil {
break
}
- return e.complexity.EditCommentOperation.Files(childComplexity), true
+ return e.complexity.BugTimelineItemConnection.Nodes(childComplexity), true
- case "EditCommentOperation.id":
- if e.complexity.EditCommentOperation.Id == nil {
+ case "BugTimelineItemConnection.pageInfo":
+ if e.complexity.BugTimelineItemConnection.PageInfo == nil {
break
}
- return e.complexity.EditCommentOperation.Id(childComplexity), true
+ return e.complexity.BugTimelineItemConnection.PageInfo(childComplexity), true
- case "EditCommentOperation.message":
- if e.complexity.EditCommentOperation.Message == nil {
+ case "BugTimelineItemConnection.totalCount":
+ if e.complexity.BugTimelineItemConnection.TotalCount == nil {
break
}
- return e.complexity.EditCommentOperation.Message(childComplexity), true
+ return e.complexity.BugTimelineItemConnection.TotalCount(childComplexity), true
- case "EditCommentOperation.target":
- if e.complexity.EditCommentOperation.Target == nil {
+ case "BugTimelineItemEdge.cursor":
+ if e.complexity.BugTimelineItemEdge.Cursor == nil {
break
}
- return e.complexity.EditCommentOperation.Target(childComplexity), true
+ return e.complexity.BugTimelineItemEdge.Cursor(childComplexity), true
- case "EditCommentPayload.bug":
- if e.complexity.EditCommentPayload.Bug == nil {
+ case "BugTimelineItemEdge.node":
+ if e.complexity.BugTimelineItemEdge.Node == nil {
break
}
- return e.complexity.EditCommentPayload.Bug(childComplexity), true
+ return e.complexity.BugTimelineItemEdge.Node(childComplexity), true
- case "EditCommentPayload.clientMutationId":
- if e.complexity.EditCommentPayload.ClientMutationID == nil {
+ case "Color.B":
+ if e.complexity.Color.B == nil {
break
}
- return e.complexity.EditCommentPayload.ClientMutationID(childComplexity), true
+ return e.complexity.Color.B(childComplexity), true
- case "EditCommentPayload.operation":
- if e.complexity.EditCommentPayload.Operation == nil {
+ case "Color.G":
+ if e.complexity.Color.G == nil {
break
}
- return e.complexity.EditCommentPayload.Operation(childComplexity), true
+ return e.complexity.Color.G(childComplexity), true
+
+ case "Color.R":
+ if e.complexity.Color.R == nil {
+ break
+ }
+
+ return e.complexity.Color.R(childComplexity), true
case "Identity.avatarUrl":
if e.complexity.Identity.AvatarUrl == nil {
@@ -1159,41 +1460,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.Label.Name(childComplexity), true
- case "LabelChangeOperation.added":
- if e.complexity.LabelChangeOperation.Added == nil {
- break
- }
-
- return e.complexity.LabelChangeOperation.Added(childComplexity), true
-
- case "LabelChangeOperation.author":
- if e.complexity.LabelChangeOperation.Author == nil {
- break
- }
-
- return e.complexity.LabelChangeOperation.Author(childComplexity), true
-
- case "LabelChangeOperation.date":
- if e.complexity.LabelChangeOperation.Date == nil {
- break
- }
-
- return e.complexity.LabelChangeOperation.Date(childComplexity), true
-
- case "LabelChangeOperation.id":
- if e.complexity.LabelChangeOperation.Id == nil {
- break
- }
-
- return e.complexity.LabelChangeOperation.Id(childComplexity), true
-
- case "LabelChangeOperation.removed":
- if e.complexity.LabelChangeOperation.Removed == nil {
- break
- }
-
- return e.complexity.LabelChangeOperation.Removed(childComplexity), true
-
case "LabelChangeResult.label":
if e.complexity.LabelChangeResult.Label == nil {
break
@@ -1208,41 +1474,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.LabelChangeResult.Status(childComplexity), true
- case "LabelChangeTimelineItem.added":
- if e.complexity.LabelChangeTimelineItem.Added == nil {
- break
- }
-
- return e.complexity.LabelChangeTimelineItem.Added(childComplexity), true
-
- case "LabelChangeTimelineItem.author":
- if e.complexity.LabelChangeTimelineItem.Author == nil {
- break
- }
-
- return e.complexity.LabelChangeTimelineItem.Author(childComplexity), true
-
- case "LabelChangeTimelineItem.date":
- if e.complexity.LabelChangeTimelineItem.Date == nil {
- break
- }
-
- return e.complexity.LabelChangeTimelineItem.Date(childComplexity), true
-
- case "LabelChangeTimelineItem.id":
- if e.complexity.LabelChangeTimelineItem.ID == nil {
- break
- }
-
- return e.complexity.LabelChangeTimelineItem.ID(childComplexity), true
-
- case "LabelChangeTimelineItem.removed":
- if e.complexity.LabelChangeTimelineItem.Removed == nil {
- break
- }
-
- return e.complexity.LabelChangeTimelineItem.Removed(childComplexity), true
-
case "LabelConnection.edges":
if e.complexity.LabelConnection.Edges == nil {
break
@@ -1285,155 +1516,113 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.LabelEdge.Node(childComplexity), true
- case "Mutation.addComment":
- if e.complexity.Mutation.AddComment == nil {
+ case "Mutation.bugAddComment":
+ if e.complexity.Mutation.BugAddComment == nil {
break
}
- args, err := ec.field_Mutation_addComment_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugAddComment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.AddComment(childComplexity, args["input"].(models.AddCommentInput)), true
+ return e.complexity.Mutation.BugAddComment(childComplexity, args["input"].(models.BugAddCommentInput)), true
- case "Mutation.addCommentAndClose":
- if e.complexity.Mutation.AddCommentAndClose == nil {
+ case "Mutation.bugAddCommentAndClose":
+ if e.complexity.Mutation.BugAddCommentAndClose == nil {
break
}
- args, err := ec.field_Mutation_addCommentAndClose_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugAddCommentAndClose_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.AddCommentAndClose(childComplexity, args["input"].(models.AddCommentAndCloseBugInput)), true
+ return e.complexity.Mutation.BugAddCommentAndClose(childComplexity, args["input"].(models.BugAddCommentAndCloseInput)), true
- case "Mutation.addCommentAndReopen":
- if e.complexity.Mutation.AddCommentAndReopen == nil {
+ case "Mutation.bugAddCommentAndReopen":
+ if e.complexity.Mutation.BugAddCommentAndReopen == nil {
break
}
- args, err := ec.field_Mutation_addCommentAndReopen_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugAddCommentAndReopen_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.AddCommentAndReopen(childComplexity, args["input"].(models.AddCommentAndReopenBugInput)), true
+ return e.complexity.Mutation.BugAddCommentAndReopen(childComplexity, args["input"].(models.BugAddCommentAndReopenInput)), true
- case "Mutation.changeLabels":
- if e.complexity.Mutation.ChangeLabels == nil {
+ case "Mutation.bugChangeLabels":
+ if e.complexity.Mutation.BugChangeLabels == nil {
break
}
- args, err := ec.field_Mutation_changeLabels_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugChangeLabels_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.ChangeLabels(childComplexity, args["input"].(*models.ChangeLabelInput)), true
+ return e.complexity.Mutation.BugChangeLabels(childComplexity, args["input"].(*models.BugChangeLabelInput)), true
- case "Mutation.closeBug":
- if e.complexity.Mutation.CloseBug == nil {
+ case "Mutation.bugCreate":
+ if e.complexity.Mutation.BugCreate == nil {
break
}
- args, err := ec.field_Mutation_closeBug_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugCreate_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.CloseBug(childComplexity, args["input"].(models.CloseBugInput)), true
+ return e.complexity.Mutation.BugCreate(childComplexity, args["input"].(models.BugCreateInput)), true
- case "Mutation.editComment":
- if e.complexity.Mutation.EditComment == nil {
+ case "Mutation.bugEditComment":
+ if e.complexity.Mutation.BugEditComment == nil {
break
}
- args, err := ec.field_Mutation_editComment_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugEditComment_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.EditComment(childComplexity, args["input"].(models.EditCommentInput)), true
+ return e.complexity.Mutation.BugEditComment(childComplexity, args["input"].(models.BugEditCommentInput)), true
- case "Mutation.newBug":
- if e.complexity.Mutation.NewBug == nil {
+ case "Mutation.bugSetTitle":
+ if e.complexity.Mutation.BugSetTitle == nil {
break
}
- args, err := ec.field_Mutation_newBug_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugSetTitle_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.NewBug(childComplexity, args["input"].(models.NewBugInput)), true
+ return e.complexity.Mutation.BugSetTitle(childComplexity, args["input"].(models.BugSetTitleInput)), true
- case "Mutation.openBug":
- if e.complexity.Mutation.OpenBug == nil {
+ case "Mutation.bugStatusClose":
+ if e.complexity.Mutation.BugStatusClose == nil {
break
}
- args, err := ec.field_Mutation_openBug_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugStatusClose_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.OpenBug(childComplexity, args["input"].(models.OpenBugInput)), true
+ return e.complexity.Mutation.BugStatusClose(childComplexity, args["input"].(models.BugStatusCloseInput)), true
- case "Mutation.setTitle":
- if e.complexity.Mutation.SetTitle == nil {
+ case "Mutation.bugStatusOpen":
+ if e.complexity.Mutation.BugStatusOpen == nil {
break
}
- args, err := ec.field_Mutation_setTitle_args(context.TODO(), rawArgs)
+ args, err := ec.field_Mutation_bugStatusOpen_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
- return e.complexity.Mutation.SetTitle(childComplexity, args["input"].(models.SetTitleInput)), true
-
- case "NewBugPayload.bug":
- if e.complexity.NewBugPayload.Bug == nil {
- break
- }
-
- return e.complexity.NewBugPayload.Bug(childComplexity), true
-
- case "NewBugPayload.clientMutationId":
- if e.complexity.NewBugPayload.ClientMutationID == nil {
- break
- }
-
- return e.complexity.NewBugPayload.ClientMutationID(childComplexity), true
-
- case "NewBugPayload.operation":
- if e.complexity.NewBugPayload.Operation == nil {
- break
- }
-
- return e.complexity.NewBugPayload.Operation(childComplexity), true
-
- case "OpenBugPayload.bug":
- if e.complexity.OpenBugPayload.Bug == nil {
- break
- }
-
- return e.complexity.OpenBugPayload.Bug(childComplexity), true
-
- case "OpenBugPayload.clientMutationId":
- if e.complexity.OpenBugPayload.ClientMutationID == nil {
- break
- }
-
- return e.complexity.OpenBugPayload.ClientMutationID(childComplexity), true
-
- case "OpenBugPayload.operation":
- if e.complexity.OpenBugPayload.Operation == nil {
- break
- }
-
- return e.complexity.OpenBugPayload.Operation(childComplexity), true
+ return e.complexity.Mutation.BugStatusOpen(childComplexity, args["input"].(models.BugStatusOpenInput)), true
case "OperationConnection.edges":
if e.complexity.OperationConnection.Edges == nil {
@@ -1591,195 +1780,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.Repository.ValidLabels(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
- case "SetStatusOperation.author":
- if e.complexity.SetStatusOperation.Author == nil {
- break
- }
-
- return e.complexity.SetStatusOperation.Author(childComplexity), true
-
- case "SetStatusOperation.date":
- if e.complexity.SetStatusOperation.Date == nil {
- break
- }
-
- return e.complexity.SetStatusOperation.Date(childComplexity), true
-
- case "SetStatusOperation.id":
- if e.complexity.SetStatusOperation.Id == nil {
- break
- }
-
- return e.complexity.SetStatusOperation.Id(childComplexity), true
-
- case "SetStatusOperation.status":
- if e.complexity.SetStatusOperation.Status == nil {
- break
- }
-
- return e.complexity.SetStatusOperation.Status(childComplexity), true
-
- case "SetStatusTimelineItem.author":
- if e.complexity.SetStatusTimelineItem.Author == nil {
- break
- }
-
- return e.complexity.SetStatusTimelineItem.Author(childComplexity), true
-
- case "SetStatusTimelineItem.date":
- if e.complexity.SetStatusTimelineItem.Date == nil {
- break
- }
-
- return e.complexity.SetStatusTimelineItem.Date(childComplexity), true
-
- case "SetStatusTimelineItem.id":
- if e.complexity.SetStatusTimelineItem.ID == nil {
- break
- }
-
- return e.complexity.SetStatusTimelineItem.ID(childComplexity), true
-
- case "SetStatusTimelineItem.status":
- if e.complexity.SetStatusTimelineItem.Status == nil {
- break
- }
-
- return e.complexity.SetStatusTimelineItem.Status(childComplexity), true
-
- case "SetTitleOperation.author":
- if e.complexity.SetTitleOperation.Author == nil {
- break
- }
-
- return e.complexity.SetTitleOperation.Author(childComplexity), true
-
- case "SetTitleOperation.date":
- if e.complexity.SetTitleOperation.Date == nil {
- break
- }
-
- return e.complexity.SetTitleOperation.Date(childComplexity), true
-
- case "SetTitleOperation.id":
- if e.complexity.SetTitleOperation.Id == nil {
- break
- }
-
- return e.complexity.SetTitleOperation.Id(childComplexity), true
-
- case "SetTitleOperation.title":
- if e.complexity.SetTitleOperation.Title == nil {
- break
- }
-
- return e.complexity.SetTitleOperation.Title(childComplexity), true
-
- case "SetTitleOperation.was":
- if e.complexity.SetTitleOperation.Was == nil {
- break
- }
-
- return e.complexity.SetTitleOperation.Was(childComplexity), true
-
- case "SetTitlePayload.bug":
- if e.complexity.SetTitlePayload.Bug == nil {
- break
- }
-
- return e.complexity.SetTitlePayload.Bug(childComplexity), true
-
- case "SetTitlePayload.clientMutationId":
- if e.complexity.SetTitlePayload.ClientMutationID == nil {
- break
- }
-
- return e.complexity.SetTitlePayload.ClientMutationID(childComplexity), true
-
- case "SetTitlePayload.operation":
- if e.complexity.SetTitlePayload.Operation == nil {
- break
- }
-
- return e.complexity.SetTitlePayload.Operation(childComplexity), true
-
- case "SetTitleTimelineItem.author":
- if e.complexity.SetTitleTimelineItem.Author == nil {
- break
- }
-
- return e.complexity.SetTitleTimelineItem.Author(childComplexity), true
-
- case "SetTitleTimelineItem.date":
- if e.complexity.SetTitleTimelineItem.Date == nil {
- break
- }
-
- return e.complexity.SetTitleTimelineItem.Date(childComplexity), true
-
- case "SetTitleTimelineItem.id":
- if e.complexity.SetTitleTimelineItem.ID == nil {
- break
- }
-
- return e.complexity.SetTitleTimelineItem.ID(childComplexity), true
-
- case "SetTitleTimelineItem.title":
- if e.complexity.SetTitleTimelineItem.Title == nil {
- break
- }
-
- return e.complexity.SetTitleTimelineItem.Title(childComplexity), true
-
- case "SetTitleTimelineItem.was":
- if e.complexity.SetTitleTimelineItem.Was == nil {
- break
- }
-
- return e.complexity.SetTitleTimelineItem.Was(childComplexity), true
-
- case "TimelineItemConnection.edges":
- if e.complexity.TimelineItemConnection.Edges == nil {
- break
- }
-
- return e.complexity.TimelineItemConnection.Edges(childComplexity), true
-
- case "TimelineItemConnection.nodes":
- if e.complexity.TimelineItemConnection.Nodes == nil {
- break
- }
-
- return e.complexity.TimelineItemConnection.Nodes(childComplexity), true
-
- case "TimelineItemConnection.pageInfo":
- if e.complexity.TimelineItemConnection.PageInfo == nil {
- break
- }
-
- return e.complexity.TimelineItemConnection.PageInfo(childComplexity), true
-
- case "TimelineItemConnection.totalCount":
- if e.complexity.TimelineItemConnection.TotalCount == nil {
- break
- }
-
- return e.complexity.TimelineItemConnection.TotalCount(childComplexity), true
-
- case "TimelineItemEdge.cursor":
- if e.complexity.TimelineItemEdge.Cursor == nil {
- break
- }
-
- return e.complexity.TimelineItemEdge.Cursor(childComplexity), true
-
- case "TimelineItemEdge.node":
- if e.complexity.TimelineItemEdge.Node == nil {
- break
- }
-
- return e.complexity.TimelineItemEdge.Node(childComplexity), true
-
}
return 0, false
}
@@ -1788,15 +1788,15 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
rc := graphql.GetOperationContext(ctx)
ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
- ec.unmarshalInputAddCommentAndCloseBugInput,
- ec.unmarshalInputAddCommentAndReopenBugInput,
- ec.unmarshalInputAddCommentInput,
- ec.unmarshalInputChangeLabelInput,
- ec.unmarshalInputCloseBugInput,
- ec.unmarshalInputEditCommentInput,
- ec.unmarshalInputNewBugInput,
- ec.unmarshalInputOpenBugInput,
- ec.unmarshalInputSetTitleInput,
+ ec.unmarshalInputBugAddCommentAndCloseInput,
+ ec.unmarshalInputBugAddCommentAndReopenInput,
+ ec.unmarshalInputBugAddCommentInput,
+ ec.unmarshalInputBugChangeLabelInput,
+ ec.unmarshalInputBugCreateInput,
+ ec.unmarshalInputBugEditCommentInput,
+ ec.unmarshalInputBugSetTitleInput,
+ ec.unmarshalInputBugStatusCloseInput,
+ ec.unmarshalInputBugStatusOpenInput,
)
first := true
@@ -1894,38 +1894,68 @@ func (ec *executionContext) introspectType(name string) (*introspection.Type, er
}
var sources = []*ast.Source{
- {Name: "../schema/bug.graphql", Input: `"""Represents a comment on a bug."""
-type Comment implements Authored {
- id: CombinedId!
-
- """The author of this comment."""
- author: Identity!
-
- """The message of this comment."""
- message: String!
-
- """All media's hash referenced in this comment"""
- files: [Hash!]!
-}
-
-type CommentConnection {
- edges: [CommentEdge!]!
- nodes: [Comment!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type CommentEdge {
- cursor: String!
- node: Comment!
-}
-
-enum Status {
- OPEN
- CLOSED
-}
-
-type Bug implements Authored {
+ {Name: "../schema/board.graphql", Input: `#type Board {
+# """The identifier for this board"""
+# id: ID!
+# """The human version (truncated) identifier for this board"""
+# humanId: String!
+#
+# createdAt: Time!
+# lastEdit: Time!
+#
+# title: String!
+# description: String!
+#
+#
+#
+# # TODO columns
+# # TODO status
+# # TODO: labels
+#
+# """The actors of the board. Actors are Identity that have interacted with the board."""
+# actors(
+# """Returns the elements in the list that come after the specified cursor."""
+# after: String
+# """Returns the elements in the list that come before the specified cursor."""
+# before: String
+# """Returns the first _n_ elements from the list."""
+# first: Int
+# """Returns the last _n_ elements from the list."""
+# last: Int
+# ): IdentityConnection!
+#
+# operations(
+# """Returns the elements in the list that come after the specified cursor."""
+# after: String
+# """Returns the elements in the list that come before the specified cursor."""
+# before: String
+# """Returns the first _n_ elements from the list."""
+# first: Int
+# """Returns the last _n_ elements from the list."""
+# last: Int
+# ): OperationConnection!
+#}
+#
+#"""The connection type for Board."""
+#type BoardConnection {
+# """A list of edges."""
+# edges: [BoardEdge!]!
+# nodes: [Board!]!
+# """Information to aid in pagination."""
+# pageInfo: PageInfo!
+# """Identifies the total count of items in the connection."""
+# totalCount: Int!
+#}
+#
+#"""An edge in a connection."""
+#type BoardEdge {
+# """A cursor for use in pagination."""
+# cursor: String!
+# """The item at the end of the edge."""
+# node: Board!
+#}
+`, BuiltIn: false},
+ {Name: "../schema/bug.graphql", Input: `type Bug implements Authored {
"""The identifier for this bug"""
id: ID!
"""The human version (truncated) identifier for this bug"""
@@ -1971,7 +2001,7 @@ type Bug implements Authored {
first: Int
"""Returns the last _n_ elements from the list."""
last: Int
- ): CommentConnection!
+ ): BugCommentConnection!
timeline(
"""Returns the elements in the list that come after the specified cursor."""
@@ -1982,7 +2012,7 @@ type Bug implements Authored {
first: Int
"""Returns the last _n_ elements from the list."""
last: Int
- ): TimelineItemConnection!
+ ): BugTimelineItemConnection!
operations(
"""Returns the elements in the list that come after the specified cursor."""
@@ -2015,58 +2045,55 @@ type BugEdge {
node: Bug!
}
`, BuiltIn: false},
- {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
-type Identity {
- """The identifier for this identity"""
- id: ID!
- """The human version (truncated) identifier for this identity"""
- humanId: String!
- """The name of the person, if known."""
- name: String
- """The email of the person, if known."""
- email: String
- """The login of the person, if known."""
- login: String
- """A non-empty string to display, representing the identity, based on the non-empty values."""
- displayName: String!
- """An url to an avatar"""
- avatarUrl: String
- """isProtected is true if the chain of git commits started to be signed.
- If that's the case, only signed commit with a valid key for this identity can be added."""
- isProtected: Boolean!
+ {Name: "../schema/bug_comment.graphql", Input: `"""Represents a comment on a bug."""
+type BugComment implements Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
+ id: CombinedId! @goField(name: "CombinedId")
+
+ """The author of this comment."""
+ author: Identity!
+
+ """The message of this comment."""
+ message: String!
+
+ """All media's hash referenced in this comment"""
+ files: [Hash!]!
}
-type IdentityConnection {
- edges: [IdentityEdge!]!
- nodes: [Identity!]!
+type BugCommentConnection {
+ edges: [BugCommentEdge!]!
+ nodes: [BugComment!]!
pageInfo: PageInfo!
totalCount: Int!
}
-type IdentityEdge {
+type BugCommentEdge {
cursor: String!
- node: Identity!
-}`, BuiltIn: false},
- {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
-type Label {
- """The name of the label."""
- name: String!
- """Color of the label."""
- color: Color!
+ node: BugComment!
}
-
-type LabelConnection {
- edges: [LabelEdge!]!
- nodes: [Label!]!
- pageInfo: PageInfo!
- totalCount: Int!
+`, BuiltIn: false},
+ {Name: "../schema/bug_mutations.graphql", Input: `extend type Mutation {
+ """Create a new bug"""
+ bugCreate(input: BugCreateInput!): BugCreatePayload!
+ """Add a new comment to a bug"""
+ bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
+ """Add a new comment to a bug and close it"""
+ bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
+ """Add a new comment to a bug and reopen it"""
+ bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
+ """Change a comment of a bug"""
+ bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
+ """Add or remove a set of label on a bug"""
+ bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
+ """Change a bug's status to open"""
+ bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
+ """Change a bug's status to closed"""
+ bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
+ """Change a bug's title"""
+ bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
}
-type LabelEdge {
- cursor: String!
- node: Label!
-}`, BuiltIn: false},
- {Name: "../schema/mutations.graphql", Input: `input NewBugInput {
+input BugCreateInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2079,16 +2106,16 @@ type LabelEdge {
files: [Hash!]
}
-type NewBugPayload {
+type BugCreatePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The created bug."""
bug: Bug!
"""The resulting operation."""
- operation: CreateOperation!
+ operation: BugCreateOperation!
}
-input AddCommentInput {
+input BugAddCommentInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2101,16 +2128,16 @@ input AddCommentInput {
files: [Hash!]
}
-type AddCommentPayload {
+type BugAddCommentPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: AddCommentOperation!
+ operation: BugAddCommentOperation!
}
-input AddCommentAndCloseBugInput {
+input BugAddCommentAndCloseInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2123,18 +2150,18 @@ input AddCommentAndCloseBugInput {
files: [Hash!]
}
-type AddCommentAndCloseBugPayload {
+type BugAddCommentAndClosePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting AddComment operation."""
- commentOperation: AddCommentOperation!
+ commentOperation: BugAddCommentOperation!
"""The resulting SetStatusOperation."""
- statusOperation: SetStatusOperation!
+ statusOperation: BugSetStatusOperation!
}
-input AddCommentAndReopenBugInput {
+input BugAddCommentAndReopenInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2147,18 +2174,18 @@ input AddCommentAndReopenBugInput {
files: [Hash!]
}
-type AddCommentAndReopenBugPayload {
+type BugAddCommentAndReopenPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting AddComment operation."""
- commentOperation: AddCommentOperation!
+ commentOperation: BugAddCommentOperation!
"""The resulting SetStatusOperation."""
- statusOperation: SetStatusOperation!
+ statusOperation: BugSetStatusOperation!
}
-input EditCommentInput {
+input BugEditCommentInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2171,16 +2198,16 @@ input EditCommentInput {
files: [Hash!]
}
-type EditCommentPayload {
+type BugEditCommentPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: EditCommentOperation!
+ operation: BugEditCommentOperation!
}
-input ChangeLabelInput {
+input BugChangeLabelInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2193,33 +2220,18 @@ input ChangeLabelInput {
Removed: [String!]
}
-enum LabelChangeStatus {
- ADDED
- REMOVED
- DUPLICATE_IN_OP
- ALREADY_SET
- DOESNT_EXIST
-}
-
-type LabelChangeResult {
- """The source label."""
- label: Label!
- """The effect this label had."""
- status: LabelChangeStatus!
-}
-
-type ChangeLabelPayload {
+type BugChangeLabelPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: LabelChangeOperation!
+ operation: BugLabelChangeOperation!
"""The effect each source label had."""
results: [LabelChangeResult]!
}
-input OpenBugInput {
+input BugStatusOpenInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2228,16 +2240,16 @@ input OpenBugInput {
prefix: String!
}
-type OpenBugPayload {
+type BugStatusOpenPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: SetStatusOperation!
+ operation: BugSetStatusOperation!
}
-input CloseBugInput {
+input BugStatusCloseInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2246,16 +2258,16 @@ input CloseBugInput {
prefix: String!
}
-type CloseBugPayload {
+type BugStatusClosePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: SetStatusOperation!
+ operation: BugSetStatusOperation!
}
-input SetTitleInput {
+input BugSetTitleInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -2266,201 +2278,104 @@ input SetTitleInput {
title: String!
}
-type SetTitlePayload {
+type BugSetTitlePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation"""
- operation: SetTitleOperation!
+ operation: BugSetTitleOperation!
}
`, BuiltIn: false},
- {Name: "../schema/operations.graphql", Input: `"""An operation applied to a bug."""
-interface Operation {
- """The identifier of the operation"""
- id: ID!
- """The operations author."""
- author: Identity!
- """The datetime when this operation was issued."""
- date: Time!
-}
-
-# Connection
-
-"""The connection type for an Operation"""
-type OperationConnection {
- edges: [OperationEdge!]!
- nodes: [Operation!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-"""Represent an Operation"""
-type OperationEdge {
- cursor: String!
- node: Operation!
-}
-
-# Operations
-
-type CreateOperation implements Operation & Authored {
+ {Name: "../schema/bug_operations.graphql", Input: `type BugCreateOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
title: String!
message: String!
files: [Hash!]!
}
-type SetTitleOperation implements Operation & Authored {
+type BugSetTitleOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
title: String!
was: String!
}
-type AddCommentOperation implements Operation & Authored {
+type BugAddCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
message: String!
files: [Hash!]!
}
-type EditCommentOperation implements Operation & Authored {
+type BugEditCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
target: String!
message: String!
files: [Hash!]!
}
-type SetStatusOperation implements Operation & Authored {
+type BugSetStatusOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
status: Status!
}
-type LabelChangeOperation implements Operation & Authored {
+type BugLabelChangeOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
added: [Label!]!
removed: [Label!]!
}
`, BuiltIn: false},
- {Name: "../schema/repository.graphql", Input: `
-type Repository {
- """The name of the repository"""
- name: String
-
- """All the bugs"""
- allBugs(
- """Returns the elements in the list that come after the specified cursor."""
- after: String
- """Returns the elements in the list that come before the specified cursor."""
- before: String
- """Returns the first _n_ elements from the list."""
- first: Int
- """Returns the last _n_ elements from the list."""
- last: Int
- """A query to select and order bugs."""
- query: String
- ): BugConnection!
-
- bug(prefix: String!): Bug
-
- """All the identities"""
- allIdentities(
- """Returns the elements in the list that come after the specified cursor."""
- after: String
- """Returns the elements in the list that come before the specified cursor."""
- before: String
- """Returns the first _n_ elements from the list."""
- first: Int
- """Returns the last _n_ elements from the list."""
- last: Int
- ): IdentityConnection!
-
- identity(prefix: String!): Identity
-
- """The identity created or selected by the user as its own"""
- userIdentity: Identity
-
- """List of valid labels."""
- validLabels(
- """Returns the elements in the list that come after the specified cursor."""
- after: String
- """Returns the elements in the list that come before the specified cursor."""
- before: String
- """Returns the first _n_ elements from the list."""
- first: Int
- """Returns the last _n_ elements from the list."""
- last: Int
- ): LabelConnection!
-}
-`, BuiltIn: false},
- {Name: "../schema/root.graphql", Input: `type Query {
- """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
- repository(ref: String): Repository
-}
-
-type Mutation {
- """Create a new bug"""
- newBug(input: NewBugInput!): NewBugPayload!
- """Add a new comment to a bug"""
- addComment(input: AddCommentInput!): AddCommentPayload!
- """Add a new comment to a bug and close it"""
- addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload!
- """Add a new comment to a bug and reopen it"""
- addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload!
- """Change a comment of a bug"""
- editComment(input: EditCommentInput!): EditCommentPayload!
- """Add or remove a set of label on a bug"""
- changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
- """Change a bug's status to open"""
- openBug(input: OpenBugInput!): OpenBugPayload!
- """Change a bug's status to closed"""
- closeBug(input: CloseBugInput!): CloseBugPayload!
- """Change a bug's title"""
- setTitle(input: SetTitleInput!): SetTitlePayload!
-}
-`, BuiltIn: false},
- {Name: "../schema/timeline.graphql", Input: `"""An item in the timeline of events"""
-interface TimelineItem {
+ {Name: "../schema/bug_timeline.graphql", Input: `"""An item in the timeline of bug events"""
+interface BugTimelineItem
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
"""The identifier of the source operation"""
id: CombinedId!
}
"""CommentHistoryStep hold one version of a message in the history"""
-type CommentHistoryStep {
+type BugCommentHistoryStep
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
message: String!
date: Time!
}
@@ -2468,25 +2383,26 @@ type CommentHistoryStep {
# Connection
"""The connection type for TimelineItem"""
-type TimelineItemConnection {
- edges: [TimelineItemEdge!]!
- nodes: [TimelineItem!]!
+type BugTimelineItemConnection {
+ edges: [BugTimelineItemEdge!]!
+ nodes: [BugTimelineItem!]!
pageInfo: PageInfo!
totalCount: Int!
}
"""Represent a TimelineItem"""
-type TimelineItemEdge {
+type BugTimelineItemEdge {
cursor: String!
- node: TimelineItem!
+ node: BugTimelineItem!
}
# Items
-"""CreateTimelineItem is a TimelineItem that represent the creation of a bug and its message edition history"""
-type CreateTimelineItem implements TimelineItem & Authored {
+"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
+type BugCreateTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
"""The identifier of the source operation"""
- id: CombinedId!
+ id: CombinedId! @goField(name: "CombinedId")
author: Identity!
message: String!
messageIsEmpty: Boolean!
@@ -2494,13 +2410,14 @@ type CreateTimelineItem implements TimelineItem & Authored {
createdAt: Time!
lastEdit: Time!
edited: Boolean!
- history: [CommentHistoryStep!]!
+ history: [BugCommentHistoryStep!]!
}
-"""AddCommentTimelineItem is a TimelineItem that represent a Comment and its edition history"""
-type AddCommentTimelineItem implements TimelineItem & Authored {
+"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
+type BugAddCommentTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
"""The identifier of the source operation"""
- id: CombinedId!
+ id: CombinedId! @goField(name: "CombinedId")
author: Identity!
message: String!
messageIsEmpty: Boolean!
@@ -2508,38 +2425,216 @@ type AddCommentTimelineItem implements TimelineItem & Authored {
createdAt: Time!
lastEdit: Time!
edited: Boolean!
- history: [CommentHistoryStep!]!
+ history: [BugCommentHistoryStep!]!
}
-"""LabelChangeTimelineItem is a TimelineItem that represent a change in the labels of a bug"""
-type LabelChangeTimelineItem implements TimelineItem & Authored {
+"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
+type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
"""The identifier of the source operation"""
- id: CombinedId!
+ id: CombinedId! @goField(name: "CombinedId")
author: Identity!
date: Time!
added: [Label!]!
removed: [Label!]!
}
-"""SetStatusTimelineItem is a TimelineItem that represent a change in the status of a bug"""
-type SetStatusTimelineItem implements TimelineItem & Authored {
+"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
+type BugSetStatusTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
"""The identifier of the source operation"""
- id: CombinedId!
+ id: CombinedId! @goField(name: "CombinedId")
author: Identity!
date: Time!
status: Status!
}
-"""LabelChangeTimelineItem is a TimelineItem that represent a change in the title of a bug"""
-type SetTitleTimelineItem implements TimelineItem & Authored {
+"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
+type BugSetTitleTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
"""The identifier of the source operation"""
- id: CombinedId!
+ id: CombinedId! @goField(name: "CombinedId")
author: Identity!
date: Time!
title: String!
was: String!
}
`, BuiltIn: false},
+ {Name: "../schema/directives.graphql", Input: `# Below are directives defined by gqlgen, see https://gqlgen.com/config/
+
+directive @goModel(
+ model: String
+ models: [String!]
+ forceGenerate: Boolean
+) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
+
+directive @goField(
+ forceResolver: Boolean
+ name: String
+ omittable: Boolean
+) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
+
+directive @goTag(
+ key: String!
+ value: String
+) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
+`, BuiltIn: false},
+ {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
+type Identity {
+ """The identifier for this identity"""
+ id: ID!
+ """The human version (truncated) identifier for this identity"""
+ humanId: String!
+ """The name of the person, if known."""
+ name: String
+ """The email of the person, if known."""
+ email: String
+ """The login of the person, if known."""
+ login: String
+ """A non-empty string to display, representing the identity, based on the non-empty values."""
+ displayName: String!
+ """An url to an avatar"""
+ avatarUrl: String
+ """isProtected is true if the chain of git commits started to be signed.
+ If that's the case, only signed commit with a valid key for this identity can be added."""
+ isProtected: Boolean!
+}
+
+type IdentityConnection {
+ edges: [IdentityEdge!]!
+ nodes: [Identity!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type IdentityEdge {
+ cursor: String!
+ node: Identity!
+}
+`, BuiltIn: false},
+ {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
+type Label {
+ """The name of the label."""
+ name: String!
+ """Color of the label."""
+ color: Color!
+}
+
+type LabelConnection {
+ edges: [LabelEdge!]!
+ nodes: [Label!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type LabelEdge {
+ cursor: String!
+ node: Label!
+}
+
+enum LabelChangeStatus {
+ ADDED
+ REMOVED
+ DUPLICATE_IN_OP
+ ALREADY_SET
+ DOESNT_EXIST
+}
+
+type LabelChangeResult {
+ """The source label."""
+ label: Label!
+ """The effect this label had."""
+ status: LabelChangeStatus!
+}
+`, BuiltIn: false},
+ {Name: "../schema/operation.graphql", Input: `"""An operation applied to an entity."""
+interface Operation {
+ """The identifier of the operation"""
+ id: ID!
+ """The operations author."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+}
+
+# Connection
+
+"""The connection type for an Operation"""
+type OperationConnection {
+ edges: [OperationEdge!]!
+ nodes: [Operation!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+"""Represent an Operation"""
+type OperationEdge {
+ cursor: String!
+ node: Operation!
+}
+`, BuiltIn: false},
+ {Name: "../schema/repository.graphql", Input: `type Repository {
+ """The name of the repository"""
+ name: String
+
+ """All the bugs"""
+ allBugs(
+ """Returns the elements in the list that come after the specified cursor."""
+ after: String
+ """Returns the elements in the list that come before the specified cursor."""
+ before: String
+ """Returns the first _n_ elements from the list."""
+ first: Int
+ """Returns the last _n_ elements from the list."""
+ last: Int
+ """A query to select and order bugs."""
+ query: String
+ ): BugConnection!
+
+ bug(prefix: String!): Bug
+
+ """All the identities"""
+ allIdentities(
+ """Returns the elements in the list that come after the specified cursor."""
+ after: String
+ """Returns the elements in the list that come before the specified cursor."""
+ before: String
+ """Returns the first _n_ elements from the list."""
+ first: Int
+ """Returns the last _n_ elements from the list."""
+ last: Int
+ ): IdentityConnection!
+
+ identity(prefix: String!): Identity
+
+ """The identity created or selected by the user as its own"""
+ userIdentity: Identity
+
+ """List of valid labels."""
+ validLabels(
+ """Returns the elements in the list that come after the specified cursor."""
+ after: String
+ """Returns the elements in the list that come before the specified cursor."""
+ before: String
+ """Returns the first _n_ elements from the list."""
+ first: Int
+ """Returns the last _n_ elements from the list."""
+ last: Int
+ ): LabelConnection!
+}
+`, BuiltIn: false},
+ {Name: "../schema/root.graphql", Input: `type Query {
+ """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
+ repository(ref: String): Repository
+}
+
+type Mutation # See each entity mutations
+`, BuiltIn: false},
+ {Name: "../schema/status.graphql", Input: `enum Status {
+ OPEN
+ CLOSED
+}
+`, BuiltIn: false},
{Name: "../schema/types.graphql", Input: `scalar CombinedId
scalar Time
scalar Hash
diff --git a/api/graphql/graph/status.generated.go b/api/graphql/graph/status.generated.go
new file mode 100644
index 00000000..a1195ef5
--- /dev/null
+++ b/api/graphql/graph/status.generated.go
@@ -0,0 +1,53 @@
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
+
+package graph
+
+import (
+ "context"
+
+ "github.com/99designs/gqlgen/graphql"
+ "github.com/git-bug/git-bug/entities/common"
+ "github.com/vektah/gqlparser/v2/ast"
+)
+
+// region ************************** generated!.gotpl **************************
+
+// endregion ************************** generated!.gotpl **************************
+
+// region ***************************** args.gotpl *****************************
+
+// endregion ***************************** args.gotpl *****************************
+
+// region ************************** directives.gotpl **************************
+
+// endregion ************************** directives.gotpl **************************
+
+// region **************************** field.gotpl *****************************
+
+// endregion **************************** field.gotpl *****************************
+
+// region **************************** input.gotpl *****************************
+
+// endregion **************************** input.gotpl *****************************
+
+// region ************************** interface.gotpl ***************************
+
+// endregion ************************** interface.gotpl ***************************
+
+// region **************************** object.gotpl ****************************
+
+// endregion **************************** object.gotpl ****************************
+
+// region ***************************** type.gotpl *****************************
+
+func (ec *executionContext) unmarshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx context.Context, v interface{}) (common.Status, error) {
+ var res common.Status
+ err := res.UnmarshalGQL(v)
+ return res, graphql.ErrorOnPath(ctx, err)
+}
+
+func (ec *executionContext) marshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx context.Context, sel ast.SelectionSet, v common.Status) graphql.Marshaler {
+ return v
+}
+
+// endregion ***************************** type.gotpl *****************************
diff --git a/api/graphql/graph/types.generated.go b/api/graphql/graph/types.generated.go
index a8f709aa..13186c00 100644
--- a/api/graphql/graph/types.generated.go
+++ b/api/graphql/graph/types.generated.go
@@ -363,69 +363,69 @@ func (ec *executionContext) _Authored(ctx context.Context, sel ast.SelectionSet,
if obj == nil {
return graphql.Null
}
- return ec._SetStatusOperation(ctx, sel, obj)
+ return ec._BugSetStatusOperation(ctx, sel, obj)
case *bug.CreateOperation:
if obj == nil {
return graphql.Null
}
- return ec._CreateOperation(ctx, sel, obj)
+ return ec._BugCreateOperation(ctx, sel, obj)
case *bug.SetTitleOperation:
if obj == nil {
return graphql.Null
}
- return ec._SetTitleOperation(ctx, sel, obj)
+ return ec._BugSetTitleOperation(ctx, sel, obj)
case *bug.AddCommentOperation:
if obj == nil {
return graphql.Null
}
- return ec._AddCommentOperation(ctx, sel, obj)
+ return ec._BugAddCommentOperation(ctx, sel, obj)
case *bug.EditCommentOperation:
if obj == nil {
return graphql.Null
}
- return ec._EditCommentOperation(ctx, sel, obj)
+ return ec._BugEditCommentOperation(ctx, sel, obj)
case *bug.LabelChangeOperation:
if obj == nil {
return graphql.Null
}
- return ec._LabelChangeOperation(ctx, sel, obj)
+ return ec._BugLabelChangeOperation(ctx, sel, obj)
case *bug.CreateTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._CreateTimelineItem(ctx, sel, obj)
+ return ec._BugCreateTimelineItem(ctx, sel, obj)
case *bug.AddCommentTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._AddCommentTimelineItem(ctx, sel, obj)
+ return ec._BugAddCommentTimelineItem(ctx, sel, obj)
case *bug.LabelChangeTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._LabelChangeTimelineItem(ctx, sel, obj)
+ return ec._BugLabelChangeTimelineItem(ctx, sel, obj)
case *bug.SetStatusTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._SetStatusTimelineItem(ctx, sel, obj)
+ return ec._BugSetStatusTimelineItem(ctx, sel, obj)
case *bug.SetTitleTimelineItem:
if obj == nil {
return graphql.Null
}
- return ec._SetTitleTimelineItem(ctx, sel, obj)
- case models.BugWrapper:
+ return ec._BugSetTitleTimelineItem(ctx, sel, obj)
+ case bug.Comment:
+ return ec._BugComment(ctx, sel, &obj)
+ case *bug.Comment:
if obj == nil {
return graphql.Null
}
- return ec._Bug(ctx, sel, obj)
- case bug.Comment:
- return ec._Comment(ctx, sel, &obj)
- case *bug.Comment:
+ return ec._BugComment(ctx, sel, obj)
+ case models.BugWrapper:
if obj == nil {
return graphql.Null
}
- return ec._Comment(ctx, sel, obj)
+ return ec._Bug(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
}
diff --git a/api/graphql/graphql_test.go b/api/graphql/graphql_test.go
index 41e43ec8..5c6a0fc5 100644
--- a/api/graphql/graphql_test.go
+++ b/api/graphql/graphql_test.go
@@ -44,7 +44,7 @@ func TestQueries(t *testing.T) {
email
avatarUrl
}
-
+
createdAt
humanId
id
@@ -81,7 +81,7 @@ func TestQueries(t *testing.T) {
displayName
}
}
-
+
comments(first: 2) {
pageInfo {
endCursor
@@ -94,7 +94,7 @@ func TestQueries(t *testing.T) {
message
}
}
-
+
operations(first: 20) {
pageInfo {
endCursor
@@ -109,23 +109,23 @@ func TestQueries(t *testing.T) {
avatarUrl
}
date
- ... on CreateOperation {
+ ... on BugCreateOperation {
title
message
files
}
- ... on SetTitleOperation {
+ ... on BugSetTitleOperation {
title
was
}
- ... on AddCommentOperation {
+ ... on BugAddCommentOperation {
files
message
}
- ... on SetStatusOperation {
+ ... on BugSetStatusOperation {
status
}
- ... on LabelChangeOperation {
+ ... on BugLabelChangeOperation {
added {
name
color {
diff --git a/api/graphql/models/edges.go b/api/graphql/models/edges.go
index 6a331e3e..95509970 100644
--- a/api/graphql/models/edges.go
+++ b/api/graphql/models/edges.go
@@ -11,12 +11,12 @@ func (e BugEdge) GetCursor() string {
}
// GetCursor return the cursor entry of an edge
-func (e CommentEdge) GetCursor() string {
+func (e BugCommentEdge) GetCursor() string {
return e.Cursor
}
// GetCursor return the cursor entry of an edge
-func (e TimelineItemEdge) GetCursor() string {
+func (e BugTimelineItemEdge) GetCursor() string {
return e.Cursor
}
diff --git a/api/graphql/models/gen_models.go b/api/graphql/models/gen_models.go
index a09b36b4..36c68c0e 100644
--- a/api/graphql/models/gen_models.go
+++ b/api/graphql/models/gen_models.go
@@ -14,7 +14,7 @@ type Authored interface {
IsAuthored()
}
-type AddCommentAndCloseBugInput struct {
+type BugAddCommentAndCloseInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
@@ -27,7 +27,7 @@ type AddCommentAndCloseBugInput struct {
Files []repository.Hash `json:"files,omitempty"`
}
-type AddCommentAndCloseBugPayload struct {
+type BugAddCommentAndClosePayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
@@ -38,7 +38,7 @@ type AddCommentAndCloseBugPayload struct {
StatusOperation *bug.SetStatusOperation `json:"statusOperation"`
}
-type AddCommentAndReopenBugInput struct {
+type BugAddCommentAndReopenInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
@@ -51,7 +51,7 @@ type AddCommentAndReopenBugInput struct {
Files []repository.Hash `json:"files,omitempty"`
}
-type AddCommentAndReopenBugPayload struct {
+type BugAddCommentAndReopenPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
@@ -62,7 +62,7 @@ type AddCommentAndReopenBugPayload struct {
StatusOperation *bug.SetStatusOperation `json:"statusOperation"`
}
-type AddCommentInput struct {
+type BugAddCommentInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
@@ -75,7 +75,7 @@ type AddCommentInput struct {
Files []repository.Hash `json:"files,omitempty"`
}
-type AddCommentPayload struct {
+type BugAddCommentPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
@@ -84,6 +84,42 @@ type AddCommentPayload struct {
Operation *bug.AddCommentOperation `json:"operation"`
}
+type BugChangeLabelInput struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The name of the repository. If not set, the default repository is used.
+ RepoRef *string `json:"repoRef,omitempty"`
+ // The bug ID's prefix.
+ Prefix string `json:"prefix"`
+ // The list of label to add.
+ Added []string `json:"added,omitempty"`
+ // The list of label to remove.
+ Removed []string `json:"Removed,omitempty"`
+}
+
+type BugChangeLabelPayload struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The affected bug.
+ Bug BugWrapper `json:"bug"`
+ // The resulting operation.
+ Operation *bug.LabelChangeOperation `json:"operation"`
+ // The effect each source label had.
+ Results []*bug.LabelChangeResult `json:"results"`
+}
+
+type BugCommentConnection struct {
+ Edges []*BugCommentEdge `json:"edges"`
+ Nodes []*bug.Comment `json:"nodes"`
+ PageInfo *PageInfo `json:"pageInfo"`
+ TotalCount int `json:"totalCount"`
+}
+
+type BugCommentEdge struct {
+ Cursor string `json:"cursor"`
+ Node *bug.Comment `json:"node"`
+}
+
// The connection type for Bug.
type BugConnection struct {
// A list of edges.
@@ -95,6 +131,28 @@ type BugConnection struct {
TotalCount int `json:"totalCount"`
}
+type BugCreateInput struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The name of the repository. If not set, the default repository is used.
+ RepoRef *string `json:"repoRef,omitempty"`
+ // The title of the new bug.
+ Title string `json:"title"`
+ // The first message of the new bug.
+ Message string `json:"message"`
+ // The collection of file's hash required for the first message.
+ Files []repository.Hash `json:"files,omitempty"`
+}
+
+type BugCreatePayload struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The created bug.
+ Bug BugWrapper `json:"bug"`
+ // The resulting operation.
+ Operation *bug.CreateOperation `json:"operation"`
+}
+
// An edge in a connection.
type BugEdge struct {
// A cursor for use in pagination.
@@ -103,80 +161,96 @@ type BugEdge struct {
Node BugWrapper `json:"node"`
}
-type ChangeLabelInput struct {
+type BugEditCommentInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
RepoRef *string `json:"repoRef,omitempty"`
- // The bug ID's prefix.
- Prefix string `json:"prefix"`
- // The list of label to add.
- Added []string `json:"added,omitempty"`
- // The list of label to remove.
- Removed []string `json:"Removed,omitempty"`
+ // A prefix of the CombinedId of the comment to be changed.
+ TargetPrefix string `json:"targetPrefix"`
+ // The new message to be set.
+ Message string `json:"message"`
+ // The collection of file's hash required for the first message.
+ Files []repository.Hash `json:"files,omitempty"`
}
-type ChangeLabelPayload struct {
+type BugEditCommentPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
Bug BugWrapper `json:"bug"`
// The resulting operation.
- Operation *bug.LabelChangeOperation `json:"operation"`
- // The effect each source label had.
- Results []*bug.LabelChangeResult `json:"results"`
+ Operation *bug.EditCommentOperation `json:"operation"`
}
-type CloseBugInput struct {
+type BugSetTitleInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
RepoRef *string `json:"repoRef,omitempty"`
// The bug ID's prefix.
Prefix string `json:"prefix"`
+ // The new title.
+ Title string `json:"title"`
}
-type CloseBugPayload struct {
+type BugSetTitlePayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
Bug BugWrapper `json:"bug"`
- // The resulting operation.
- Operation *bug.SetStatusOperation `json:"operation"`
+ // The resulting operation
+ Operation *bug.SetTitleOperation `json:"operation"`
}
-type CommentConnection struct {
- Edges []*CommentEdge `json:"edges"`
- Nodes []*bug.Comment `json:"nodes"`
- PageInfo *PageInfo `json:"pageInfo"`
- TotalCount int `json:"totalCount"`
+type BugStatusCloseInput struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The name of the repository. If not set, the default repository is used.
+ RepoRef *string `json:"repoRef,omitempty"`
+ // The bug ID's prefix.
+ Prefix string `json:"prefix"`
}
-type CommentEdge struct {
- Cursor string `json:"cursor"`
- Node *bug.Comment `json:"node"`
+type BugStatusClosePayload struct {
+ // A unique identifier for the client performing the mutation.
+ ClientMutationID *string `json:"clientMutationId,omitempty"`
+ // The affected bug.
+ Bug BugWrapper `json:"bug"`
+ // The resulting operation.
+ Operation *bug.SetStatusOperation `json:"operation"`
}
-type EditCommentInput struct {
+type BugStatusOpenInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The name of the repository. If not set, the default repository is used.
RepoRef *string `json:"repoRef,omitempty"`
- // A prefix of the CombinedId of the comment to be changed.
- TargetPrefix string `json:"targetPrefix"`
- // The new message to be set.
- Message string `json:"message"`
- // The collection of file's hash required for the first message.
- Files []repository.Hash `json:"files,omitempty"`
+ // The bug ID's prefix.
+ Prefix string `json:"prefix"`
}
-type EditCommentPayload struct {
+type BugStatusOpenPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID *string `json:"clientMutationId,omitempty"`
// The affected bug.
Bug BugWrapper `json:"bug"`
// The resulting operation.
- Operation *bug.EditCommentOperation `json:"operation"`
+ Operation *bug.SetStatusOperation `json:"operation"`
+}
+
+// The connection type for TimelineItem
+type BugTimelineItemConnection struct {
+ Edges []*BugTimelineItemEdge `json:"edges"`
+ Nodes []bug.TimelineItem `json:"nodes"`
+ PageInfo *PageInfo `json:"pageInfo"`
+ TotalCount int `json:"totalCount"`
+}
+
+// Represent a TimelineItem
+type BugTimelineItemEdge struct {
+ Cursor string `json:"cursor"`
+ Node bug.TimelineItem `json:"node"`
}
type IdentityConnection struct {
@@ -206,46 +280,6 @@ type LabelEdge struct {
type Mutation struct {
}
-type NewBugInput struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The name of the repository. If not set, the default repository is used.
- RepoRef *string `json:"repoRef,omitempty"`
- // The title of the new bug.
- Title string `json:"title"`
- // The first message of the new bug.
- Message string `json:"message"`
- // The collection of file's hash required for the first message.
- Files []repository.Hash `json:"files,omitempty"`
-}
-
-type NewBugPayload struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The created bug.
- Bug BugWrapper `json:"bug"`
- // The resulting operation.
- Operation *bug.CreateOperation `json:"operation"`
-}
-
-type OpenBugInput struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The name of the repository. If not set, the default repository is used.
- RepoRef *string `json:"repoRef,omitempty"`
- // The bug ID's prefix.
- Prefix string `json:"prefix"`
-}
-
-type OpenBugPayload struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The affected bug.
- Bug BugWrapper `json:"bug"`
- // The resulting operation.
- Operation *bug.SetStatusOperation `json:"operation"`
-}
-
// The connection type for an Operation
type OperationConnection struct {
Edges []*OperationEdge `json:"edges"`
@@ -274,37 +308,3 @@ type PageInfo struct {
type Query struct {
}
-
-type SetTitleInput struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The name of the repository. If not set, the default repository is used.
- RepoRef *string `json:"repoRef,omitempty"`
- // The bug ID's prefix.
- Prefix string `json:"prefix"`
- // The new title.
- Title string `json:"title"`
-}
-
-type SetTitlePayload struct {
- // A unique identifier for the client performing the mutation.
- ClientMutationID *string `json:"clientMutationId,omitempty"`
- // The affected bug.
- Bug BugWrapper `json:"bug"`
- // The resulting operation
- Operation *bug.SetTitleOperation `json:"operation"`
-}
-
-// The connection type for TimelineItem
-type TimelineItemConnection struct {
- Edges []*TimelineItemEdge `json:"edges"`
- Nodes []bug.TimelineItem `json:"nodes"`
- PageInfo *PageInfo `json:"pageInfo"`
- TotalCount int `json:"totalCount"`
-}
-
-// Represent a TimelineItem
-type TimelineItemEdge struct {
- Cursor string `json:"cursor"`
- Node bug.TimelineItem `json:"node"`
-}
diff --git a/api/graphql/models/models.go b/api/graphql/models/models.go
index 5355b722..c54f4cf2 100644
--- a/api/graphql/models/models.go
+++ b/api/graphql/models/models.go
@@ -16,8 +16,3 @@ type Repository struct {
Cache *cache.MultiRepoCache
Repo *cache.RepoCache
}
-
-type RepositoryMutation struct {
- Cache *cache.MultiRepoCache
- Repo *cache.RepoCache
-}
diff --git a/api/graphql/resolvers/bug.go b/api/graphql/resolvers/bug.go
index c984e191..187eee56 100644
--- a/api/graphql/resolvers/bug.go
+++ b/api/graphql/resolvers/bug.go
@@ -18,7 +18,7 @@ func (bugResolver) HumanID(_ context.Context, obj models.BugWrapper) (string, er
return obj.Id().Human(), nil
}
-func (bugResolver) Comments(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.CommentConnection, error) {
+func (bugResolver) Comments(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.BugCommentConnection, error) {
input := models.ConnectionInput{
Before: before,
After: after,
@@ -27,18 +27,18 @@ func (bugResolver) Comments(_ context.Context, obj models.BugWrapper, after *str
}
edger := func(comment bug.Comment, offset int) connections.Edge {
- return models.CommentEdge{
+ return models.BugCommentEdge{
Node: &comment,
Cursor: connections.OffsetToCursor(offset),
}
}
- conMaker := func(edges []*models.CommentEdge, nodes []bug.Comment, info *models.PageInfo, totalCount int) (*models.CommentConnection, error) {
+ conMaker := func(edges []*models.BugCommentEdge, nodes []bug.Comment, info *models.PageInfo, totalCount int) (*models.BugCommentConnection, error) {
var commentNodes []*bug.Comment
for _, c := range nodes {
commentNodes = append(commentNodes, &c)
}
- return &models.CommentConnection{
+ return &models.BugCommentConnection{
Edges: edges,
Nodes: commentNodes,
PageInfo: info,
@@ -86,7 +86,7 @@ func (bugResolver) Operations(_ context.Context, obj models.BugWrapper, after *s
return connections.Connection(ops, edger, conMaker, input)
}
-func (bugResolver) Timeline(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.TimelineItemConnection, error) {
+func (bugResolver) Timeline(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.BugTimelineItemConnection, error) {
input := models.ConnectionInput{
Before: before,
After: after,
@@ -95,14 +95,14 @@ func (bugResolver) Timeline(_ context.Context, obj models.BugWrapper, after *str
}
edger := func(op bug.TimelineItem, offset int) connections.Edge {
- return models.TimelineItemEdge{
+ return models.BugTimelineItemEdge{
Node: op,
Cursor: connections.OffsetToCursor(offset),
}
}
- conMaker := func(edges []*models.TimelineItemEdge, nodes []bug.TimelineItem, info *models.PageInfo, totalCount int) (*models.TimelineItemConnection, error) {
- return &models.TimelineItemConnection{
+ conMaker := func(edges []*models.BugTimelineItemEdge, nodes []bug.TimelineItem, info *models.PageInfo, totalCount int) (*models.BugTimelineItemConnection, error) {
+ return &models.BugTimelineItemConnection{
Edges: edges,
Nodes: nodes,
PageInfo: info,
@@ -181,3 +181,11 @@ func (bugResolver) Participants(_ context.Context, obj models.BugWrapper, after
return connections.Connection(participants, edger, conMaker, input)
}
+
+var _ graph.BugCommentResolver = &commentResolver{}
+
+type commentResolver struct{}
+
+func (c commentResolver) Author(_ context.Context, obj *bug.Comment) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
diff --git a/api/graphql/resolvers/bug_operations.go b/api/graphql/resolvers/bug_operations.go
new file mode 100644
index 00000000..cf9d9056
--- /dev/null
+++ b/api/graphql/resolvers/bug_operations.go
@@ -0,0 +1,61 @@
+package resolvers
+
+import (
+ "context"
+
+ "github.com/git-bug/git-bug/api/graphql/graph"
+ "github.com/git-bug/git-bug/api/graphql/models"
+ "github.com/git-bug/git-bug/entities/bug"
+)
+
+var _ graph.BugCreateOperationResolver = bugCreateOperationResolver{}
+
+type bugCreateOperationResolver struct{}
+
+func (bugCreateOperationResolver) Author(_ context.Context, obj *bug.CreateOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
+
+var _ graph.BugAddCommentOperationResolver = bugAddCommentOperationResolver{}
+
+type bugAddCommentOperationResolver struct{}
+
+func (bugAddCommentOperationResolver) Author(_ context.Context, obj *bug.AddCommentOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
+
+var _ graph.BugEditCommentOperationResolver = bugEditCommentOperationResolver{}
+
+type bugEditCommentOperationResolver struct{}
+
+func (bugEditCommentOperationResolver) Target(_ context.Context, obj *bug.EditCommentOperation) (string, error) {
+ return obj.Target.String(), nil
+}
+
+func (bugEditCommentOperationResolver) Author(_ context.Context, obj *bug.EditCommentOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
+
+var _ graph.BugLabelChangeOperationResolver = bugLabelChangeOperationResolver{}
+
+type bugLabelChangeOperationResolver struct{}
+
+func (bugLabelChangeOperationResolver) Author(_ context.Context, obj *bug.LabelChangeOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
+
+var _ graph.BugSetStatusOperationResolver = bugSetStatusOperationResolver{}
+
+type bugSetStatusOperationResolver struct{}
+
+func (bugSetStatusOperationResolver) Author(_ context.Context, obj *bug.SetStatusOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
+
+var _ graph.BugSetTitleOperationResolver = bugSetTitleOperationResolver{}
+
+type bugSetTitleOperationResolver struct{}
+
+func (bugSetTitleOperationResolver) Author(_ context.Context, obj *bug.SetTitleOperation) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author()), nil
+}
diff --git a/api/graphql/resolvers/bug_root.go b/api/graphql/resolvers/bug_root.go
new file mode 100644
index 00000000..2013a066
--- /dev/null
+++ b/api/graphql/resolvers/bug_root.go
@@ -0,0 +1,59 @@
+package resolvers
+
+import (
+ "github.com/git-bug/git-bug/api/graphql/graph"
+)
+
+type bugRootSubResolver struct{}
+
+func (bugRootSubResolver) BugAddCommentOperation() graph.BugAddCommentOperationResolver {
+ return &bugAddCommentOperationResolver{}
+}
+
+func (bugRootSubResolver) BugAddCommentTimelineItem() graph.BugAddCommentTimelineItemResolver {
+ return &bugAddCommentTimelineItemResolver{}
+}
+
+func (r bugRootSubResolver) BugComment() graph.BugCommentResolver {
+ return &commentResolver{}
+}
+
+func (bugRootSubResolver) BugCommentHistoryStep() graph.BugCommentHistoryStepResolver {
+ return &bugCommentHistoryStepResolver{}
+}
+
+func (bugRootSubResolver) BugCreateOperation() graph.BugCreateOperationResolver {
+ return &bugCreateOperationResolver{}
+}
+
+func (bugRootSubResolver) BugCreateTimelineItem() graph.BugCreateTimelineItemResolver {
+ return &bugCreateTimelineItemResolver{}
+}
+
+func (r bugRootSubResolver) BugEditCommentOperation() graph.BugEditCommentOperationResolver {
+ return &bugEditCommentOperationResolver{}
+}
+
+func (bugRootSubResolver) BugLabelChangeOperation() graph.BugLabelChangeOperationResolver {
+ return &bugLabelChangeOperationResolver{}
+}
+
+func (r bugRootSubResolver) BugLabelChangeTimelineItem() graph.BugLabelChangeTimelineItemResolver {
+ return &bugLabelChangeTimelineItem{}
+}
+
+func (bugRootSubResolver) BugSetStatusOperation() graph.BugSetStatusOperationResolver {
+ return &bugSetStatusOperationResolver{}
+}
+
+func (r bugRootSubResolver) BugSetStatusTimelineItem() graph.BugSetStatusTimelineItemResolver {
+ return &bugSetStatusTimelineItem{}
+}
+
+func (r bugRootSubResolver) BugSetTitleOperation() graph.BugSetTitleOperationResolver {
+ return &bugSetTitleOperationResolver{}
+}
+
+func (r bugRootSubResolver) BugSetTitleTimelineItem() graph.BugSetTitleTimelineItemResolver {
+ return &bugSetTitleTimelineItem{}
+}
diff --git a/api/graphql/resolvers/bug_timeline.go b/api/graphql/resolvers/bug_timeline.go
new file mode 100644
index 00000000..e570053c
--- /dev/null
+++ b/api/graphql/resolvers/bug_timeline.go
@@ -0,0 +1,94 @@
+package resolvers
+
+import (
+ "context"
+ "time"
+
+ "github.com/git-bug/git-bug/api/graphql/graph"
+ "github.com/git-bug/git-bug/api/graphql/models"
+ "github.com/git-bug/git-bug/entities/bug"
+)
+
+var _ graph.BugCommentHistoryStepResolver = bugCommentHistoryStepResolver{}
+
+type bugCommentHistoryStepResolver struct{}
+
+func (bugCommentHistoryStepResolver) Date(_ context.Context, obj *bug.CommentHistoryStep) (*time.Time, error) {
+ t := obj.UnixTime.Time()
+ return &t, nil
+}
+
+var _ graph.BugAddCommentTimelineItemResolver = bugAddCommentTimelineItemResolver{}
+
+type bugAddCommentTimelineItemResolver struct{}
+
+func (bugAddCommentTimelineItemResolver) Author(_ context.Context, obj *bug.AddCommentTimelineItem) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
+
+func (bugAddCommentTimelineItemResolver) CreatedAt(_ context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error) {
+ t := obj.CreatedAt.Time()
+ return &t, nil
+}
+
+func (bugAddCommentTimelineItemResolver) LastEdit(_ context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error) {
+ t := obj.LastEdit.Time()
+ return &t, nil
+}
+
+var _ graph.BugCreateTimelineItemResolver = bugCreateTimelineItemResolver{}
+
+type bugCreateTimelineItemResolver struct{}
+
+func (r bugCreateTimelineItemResolver) Author(_ context.Context, obj *bug.CreateTimelineItem) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
+
+func (bugCreateTimelineItemResolver) CreatedAt(_ context.Context, obj *bug.CreateTimelineItem) (*time.Time, error) {
+ t := obj.CreatedAt.Time()
+ return &t, nil
+}
+
+func (bugCreateTimelineItemResolver) LastEdit(_ context.Context, obj *bug.CreateTimelineItem) (*time.Time, error) {
+ t := obj.LastEdit.Time()
+ return &t, nil
+}
+
+var _ graph.BugLabelChangeTimelineItemResolver = bugLabelChangeTimelineItem{}
+
+type bugLabelChangeTimelineItem struct{}
+
+func (i bugLabelChangeTimelineItem) Author(_ context.Context, obj *bug.LabelChangeTimelineItem) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
+
+func (bugLabelChangeTimelineItem) Date(_ context.Context, obj *bug.LabelChangeTimelineItem) (*time.Time, error) {
+ t := obj.UnixTime.Time()
+ return &t, nil
+}
+
+var _ graph.BugSetStatusTimelineItemResolver = bugSetStatusTimelineItem{}
+
+type bugSetStatusTimelineItem struct{}
+
+func (i bugSetStatusTimelineItem) Author(_ context.Context, obj *bug.SetStatusTimelineItem) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
+
+func (bugSetStatusTimelineItem) Date(_ context.Context, obj *bug.SetStatusTimelineItem) (*time.Time, error) {
+ t := obj.UnixTime.Time()
+ return &t, nil
+}
+
+var _ graph.BugSetTitleTimelineItemResolver = bugSetTitleTimelineItem{}
+
+type bugSetTitleTimelineItem struct{}
+
+func (i bugSetTitleTimelineItem) Author(_ context.Context, obj *bug.SetTitleTimelineItem) (models.IdentityWrapper, error) {
+ return models.NewLoadedIdentity(obj.Author), nil
+}
+
+func (bugSetTitleTimelineItem) Date(_ context.Context, obj *bug.SetTitleTimelineItem) (*time.Time, error) {
+ t := obj.UnixTime.Time()
+ return &t, nil
+}
diff --git a/api/graphql/resolvers/comment.go b/api/graphql/resolvers/comment.go
deleted file mode 100644
index 01c17416..00000000
--- a/api/graphql/resolvers/comment.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package resolvers
-
-import (
- "context"
-
- "github.com/git-bug/git-bug/api/graphql/graph"
- "github.com/git-bug/git-bug/api/graphql/models"
- "github.com/git-bug/git-bug/entities/bug"
- "github.com/git-bug/git-bug/entity"
-)
-
-var _ graph.CommentResolver = &commentResolver{}
-
-type commentResolver struct{}
-
-func (c commentResolver) ID(ctx context.Context, obj *bug.Comment) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (c commentResolver) Author(_ context.Context, obj *bug.Comment) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
diff --git a/api/graphql/resolvers/identity.go b/api/graphql/resolvers/identity.go
index 6e81df36..b9a1828f 100644
--- a/api/graphql/resolvers/identity.go
+++ b/api/graphql/resolvers/identity.go
@@ -11,10 +11,6 @@ var _ graph.IdentityResolver = &identityResolver{}
type identityResolver struct{}
-func (identityResolver) ID(ctx context.Context, obj models.IdentityWrapper) (string, error) {
- return obj.Id().String(), nil
-}
-
func (r identityResolver) HumanID(ctx context.Context, obj models.IdentityWrapper) (string, error) {
return obj.Id().Human(), nil
diff --git a/api/graphql/resolvers/mutation.go b/api/graphql/resolvers/mutation.go
index ab00fb4c..7bd09527 100644
--- a/api/graphql/resolvers/mutation.go
+++ b/api/graphql/resolvers/mutation.go
@@ -39,7 +39,7 @@ func (r mutationResolver) getBug(repoRef *string, bugPrefix string) (*cache.Repo
return repo, b, nil
}
-func (r mutationResolver) NewBug(ctx context.Context, input models.NewBugInput) (*models.NewBugPayload, error) {
+func (r mutationResolver) BugCreate(ctx context.Context, input models.BugCreateInput) (*models.BugCreatePayload, error) {
repo, err := r.getRepo(input.RepoRef)
if err != nil {
return nil, err
@@ -60,14 +60,14 @@ func (r mutationResolver) NewBug(ctx context.Context, input models.NewBugInput)
return nil, err
}
- return &models.NewBugPayload{
+ return &models.BugCreatePayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
}, nil
}
-func (r mutationResolver) AddComment(ctx context.Context, input models.AddCommentInput) (*models.AddCommentPayload, error) {
+func (r mutationResolver) BugAddComment(ctx context.Context, input models.BugAddCommentInput) (*models.BugAddCommentPayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -92,14 +92,14 @@ func (r mutationResolver) AddComment(ctx context.Context, input models.AddCommen
return nil, err
}
- return &models.AddCommentPayload{
+ return &models.BugAddCommentPayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
}, nil
}
-func (r mutationResolver) AddCommentAndClose(ctx context.Context, input models.AddCommentAndCloseBugInput) (*models.AddCommentAndCloseBugPayload, error) {
+func (r mutationResolver) BugAddCommentAndClose(ctx context.Context, input models.BugAddCommentAndCloseInput) (*models.BugAddCommentAndClosePayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -129,7 +129,7 @@ func (r mutationResolver) AddCommentAndClose(ctx context.Context, input models.A
return nil, err
}
- return &models.AddCommentAndCloseBugPayload{
+ return &models.BugAddCommentAndClosePayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
CommentOperation: opAddComment,
@@ -137,7 +137,7 @@ func (r mutationResolver) AddCommentAndClose(ctx context.Context, input models.A
}, nil
}
-func (r mutationResolver) AddCommentAndReopen(ctx context.Context, input models.AddCommentAndReopenBugInput) (*models.AddCommentAndReopenBugPayload, error) {
+func (r mutationResolver) BugAddCommentAndReopen(ctx context.Context, input models.BugAddCommentAndReopenInput) (*models.BugAddCommentAndReopenPayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -167,7 +167,7 @@ func (r mutationResolver) AddCommentAndReopen(ctx context.Context, input models.
return nil, err
}
- return &models.AddCommentAndReopenBugPayload{
+ return &models.BugAddCommentAndReopenPayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
CommentOperation: opAddComment,
@@ -175,7 +175,7 @@ func (r mutationResolver) AddCommentAndReopen(ctx context.Context, input models.
}, nil
}
-func (r mutationResolver) EditComment(ctx context.Context, input models.EditCommentInput) (*models.EditCommentPayload, error) {
+func (r mutationResolver) BugEditComment(ctx context.Context, input models.BugEditCommentInput) (*models.BugEditCommentPayload, error) {
repo, err := r.getRepo(input.RepoRef)
if err != nil {
return nil, err
@@ -207,14 +207,14 @@ func (r mutationResolver) EditComment(ctx context.Context, input models.EditComm
return nil, err
}
- return &models.EditCommentPayload{
+ return &models.BugEditCommentPayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
}, nil
}
-func (r mutationResolver) ChangeLabels(ctx context.Context, input *models.ChangeLabelInput) (*models.ChangeLabelPayload, error) {
+func (r mutationResolver) BugChangeLabels(ctx context.Context, input *models.BugChangeLabelInput) (*models.BugChangeLabelPayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -246,7 +246,7 @@ func (r mutationResolver) ChangeLabels(ctx context.Context, input *models.Change
resultsPtr[i] = &result
}
- return &models.ChangeLabelPayload{
+ return &models.BugChangeLabelPayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
@@ -254,7 +254,7 @@ func (r mutationResolver) ChangeLabels(ctx context.Context, input *models.Change
}, nil
}
-func (r mutationResolver) OpenBug(ctx context.Context, input models.OpenBugInput) (*models.OpenBugPayload, error) {
+func (r mutationResolver) BugStatusOpen(ctx context.Context, input models.BugStatusOpenInput) (*models.BugStatusOpenPayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -275,14 +275,14 @@ func (r mutationResolver) OpenBug(ctx context.Context, input models.OpenBugInput
return nil, err
}
- return &models.OpenBugPayload{
+ return &models.BugStatusOpenPayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
}, nil
}
-func (r mutationResolver) CloseBug(ctx context.Context, input models.CloseBugInput) (*models.CloseBugPayload, error) {
+func (r mutationResolver) BugStatusClose(ctx context.Context, input models.BugStatusCloseInput) (*models.BugStatusClosePayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -303,14 +303,14 @@ func (r mutationResolver) CloseBug(ctx context.Context, input models.CloseBugInp
return nil, err
}
- return &models.CloseBugPayload{
+ return &models.BugStatusClosePayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
}, nil
}
-func (r mutationResolver) SetTitle(ctx context.Context, input models.SetTitleInput) (*models.SetTitlePayload, error) {
+func (r mutationResolver) BugSetTitle(ctx context.Context, input models.BugSetTitleInput) (*models.BugSetTitlePayload, error) {
repo, b, err := r.getBug(input.RepoRef, input.Prefix)
if err != nil {
return nil, err
@@ -336,7 +336,7 @@ func (r mutationResolver) SetTitle(ctx context.Context, input models.SetTitleInp
return nil, err
}
- return &models.SetTitlePayload{
+ return &models.BugSetTitlePayload{
ClientMutationID: input.ClientMutationID,
Bug: models.NewLoadedBug(b.Snapshot()),
Operation: op,
diff --git a/api/graphql/resolvers/operations.go b/api/graphql/resolvers/operations.go
deleted file mode 100644
index 4bb486ed..00000000
--- a/api/graphql/resolvers/operations.go
+++ /dev/null
@@ -1,92 +0,0 @@
-package resolvers
-
-import (
- "context"
- "time"
-
- "github.com/git-bug/git-bug/api/graphql/graph"
- "github.com/git-bug/git-bug/api/graphql/models"
- "github.com/git-bug/git-bug/entities/bug"
-)
-
-var _ graph.CreateOperationResolver = createOperationResolver{}
-
-type createOperationResolver struct{}
-
-func (createOperationResolver) Author(_ context.Context, obj *bug.CreateOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (createOperationResolver) Date(_ context.Context, obj *bug.CreateOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
-
-var _ graph.AddCommentOperationResolver = addCommentOperationResolver{}
-
-type addCommentOperationResolver struct{}
-
-func (addCommentOperationResolver) Author(_ context.Context, obj *bug.AddCommentOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (addCommentOperationResolver) Date(_ context.Context, obj *bug.AddCommentOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
-
-var _ graph.EditCommentOperationResolver = editCommentOperationResolver{}
-
-type editCommentOperationResolver struct{}
-
-func (editCommentOperationResolver) Target(_ context.Context, obj *bug.EditCommentOperation) (string, error) {
- return obj.Target.String(), nil
-}
-
-func (editCommentOperationResolver) Author(_ context.Context, obj *bug.EditCommentOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (editCommentOperationResolver) Date(_ context.Context, obj *bug.EditCommentOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
-
-var _ graph.LabelChangeOperationResolver = labelChangeOperationResolver{}
-
-type labelChangeOperationResolver struct{}
-
-func (labelChangeOperationResolver) Author(_ context.Context, obj *bug.LabelChangeOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (labelChangeOperationResolver) Date(_ context.Context, obj *bug.LabelChangeOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
-
-var _ graph.SetStatusOperationResolver = setStatusOperationResolver{}
-
-type setStatusOperationResolver struct{}
-
-func (setStatusOperationResolver) Author(_ context.Context, obj *bug.SetStatusOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (setStatusOperationResolver) Date(_ context.Context, obj *bug.SetStatusOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
-
-var _ graph.SetTitleOperationResolver = setTitleOperationResolver{}
-
-type setTitleOperationResolver struct{}
-
-func (setTitleOperationResolver) Author(_ context.Context, obj *bug.SetTitleOperation) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author()), nil
-}
-
-func (setTitleOperationResolver) Date(_ context.Context, obj *bug.SetTitleOperation) (*time.Time, error) {
- t := obj.Time()
- return &t, nil
-}
diff --git a/api/graphql/resolvers/root.go b/api/graphql/resolvers/root.go
index ca0fb8ea..e0fd47eb 100644
--- a/api/graphql/resolvers/root.go
+++ b/api/graphql/resolvers/root.go
@@ -10,6 +10,7 @@ var _ graph.ResolverRoot = &RootResolver{}
type RootResolver struct {
*cache.MultiRepoCache
+ bugRootSubResolver
}
func NewRootResolver(mrc *cache.MultiRepoCache) *RootResolver {
@@ -30,74 +31,22 @@ func (r RootResolver) Mutation() graph.MutationResolver {
}
}
-func (RootResolver) Repository() graph.RepositoryResolver {
- return &repoResolver{}
-}
-
-func (RootResolver) Bug() graph.BugResolver {
- return &bugResolver{}
-}
-
func (RootResolver) Color() graph.ColorResolver {
return &colorResolver{}
}
-func (r RootResolver) Comment() graph.CommentResolver {
- return &commentResolver{}
-}
-
-func (RootResolver) Label() graph.LabelResolver {
- return &labelResolver{}
-}
-
func (r RootResolver) Identity() graph.IdentityResolver {
return &identityResolver{}
}
-func (RootResolver) CommentHistoryStep() graph.CommentHistoryStepResolver {
- return &commentHistoryStepResolver{}
-}
-
-func (RootResolver) AddCommentTimelineItem() graph.AddCommentTimelineItemResolver {
- return &addCommentTimelineItemResolver{}
-}
-
-func (RootResolver) CreateTimelineItem() graph.CreateTimelineItemResolver {
- return &createTimelineItemResolver{}
-}
-
-func (r RootResolver) LabelChangeTimelineItem() graph.LabelChangeTimelineItemResolver {
- return &labelChangeTimelineItem{}
-}
-
-func (r RootResolver) SetStatusTimelineItem() graph.SetStatusTimelineItemResolver {
- return &setStatusTimelineItem{}
-}
-
-func (r RootResolver) SetTitleTimelineItem() graph.SetTitleTimelineItemResolver {
- return &setTitleTimelineItem{}
-}
-
-func (RootResolver) CreateOperation() graph.CreateOperationResolver {
- return &createOperationResolver{}
-}
-
-func (RootResolver) AddCommentOperation() graph.AddCommentOperationResolver {
- return &addCommentOperationResolver{}
-}
-
-func (r RootResolver) EditCommentOperation() graph.EditCommentOperationResolver {
- return &editCommentOperationResolver{}
-}
-
-func (RootResolver) LabelChangeOperation() graph.LabelChangeOperationResolver {
- return &labelChangeOperationResolver{}
+func (RootResolver) Label() graph.LabelResolver {
+ return &labelResolver{}
}
-func (RootResolver) SetStatusOperation() graph.SetStatusOperationResolver {
- return &setStatusOperationResolver{}
+func (RootResolver) Repository() graph.RepositoryResolver {
+ return &repoResolver{}
}
-func (RootResolver) SetTitleOperation() graph.SetTitleOperationResolver {
- return &setTitleOperationResolver{}
+func (RootResolver) Bug() graph.BugResolver {
+ return &bugResolver{}
}
diff --git a/api/graphql/resolvers/timeline.go b/api/graphql/resolvers/timeline.go
deleted file mode 100644
index b710c32c..00000000
--- a/api/graphql/resolvers/timeline.go
+++ /dev/null
@@ -1,115 +0,0 @@
-package resolvers
-
-import (
- "context"
- "time"
-
- "github.com/git-bug/git-bug/api/graphql/graph"
- "github.com/git-bug/git-bug/api/graphql/models"
- "github.com/git-bug/git-bug/entities/bug"
- "github.com/git-bug/git-bug/entity"
-)
-
-var _ graph.CommentHistoryStepResolver = commentHistoryStepResolver{}
-
-type commentHistoryStepResolver struct{}
-
-func (commentHistoryStepResolver) Date(_ context.Context, obj *bug.CommentHistoryStep) (*time.Time, error) {
- t := obj.UnixTime.Time()
- return &t, nil
-}
-
-var _ graph.AddCommentTimelineItemResolver = addCommentTimelineItemResolver{}
-
-type addCommentTimelineItemResolver struct{}
-
-func (addCommentTimelineItemResolver) ID(_ context.Context, obj *bug.AddCommentTimelineItem) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (addCommentTimelineItemResolver) Author(_ context.Context, obj *bug.AddCommentTimelineItem) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
-
-func (addCommentTimelineItemResolver) CreatedAt(_ context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error) {
- t := obj.CreatedAt.Time()
- return &t, nil
-}
-
-func (addCommentTimelineItemResolver) LastEdit(_ context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error) {
- t := obj.LastEdit.Time()
- return &t, nil
-}
-
-var _ graph.CreateTimelineItemResolver = createTimelineItemResolver{}
-
-type createTimelineItemResolver struct{}
-
-func (createTimelineItemResolver) ID(_ context.Context, obj *bug.CreateTimelineItem) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (r createTimelineItemResolver) Author(_ context.Context, obj *bug.CreateTimelineItem) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
-
-func (createTimelineItemResolver) CreatedAt(_ context.Context, obj *bug.CreateTimelineItem) (*time.Time, error) {
- t := obj.CreatedAt.Time()
- return &t, nil
-}
-
-func (createTimelineItemResolver) LastEdit(_ context.Context, obj *bug.CreateTimelineItem) (*time.Time, error) {
- t := obj.LastEdit.Time()
- return &t, nil
-}
-
-var _ graph.LabelChangeTimelineItemResolver = labelChangeTimelineItem{}
-
-type labelChangeTimelineItem struct{}
-
-func (labelChangeTimelineItem) ID(_ context.Context, obj *bug.LabelChangeTimelineItem) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (i labelChangeTimelineItem) Author(_ context.Context, obj *bug.LabelChangeTimelineItem) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
-
-func (labelChangeTimelineItem) Date(_ context.Context, obj *bug.LabelChangeTimelineItem) (*time.Time, error) {
- t := obj.UnixTime.Time()
- return &t, nil
-}
-
-var _ graph.SetStatusTimelineItemResolver = setStatusTimelineItem{}
-
-type setStatusTimelineItem struct{}
-
-func (setStatusTimelineItem) ID(_ context.Context, obj *bug.SetStatusTimelineItem) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (i setStatusTimelineItem) Author(_ context.Context, obj *bug.SetStatusTimelineItem) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
-
-func (setStatusTimelineItem) Date(_ context.Context, obj *bug.SetStatusTimelineItem) (*time.Time, error) {
- t := obj.UnixTime.Time()
- return &t, nil
-}
-
-var _ graph.SetTitleTimelineItemResolver = setTitleTimelineItem{}
-
-type setTitleTimelineItem struct{}
-
-func (setTitleTimelineItem) ID(_ context.Context, obj *bug.SetTitleTimelineItem) (entity.CombinedId, error) {
- return obj.CombinedId(), nil
-}
-
-func (i setTitleTimelineItem) Author(_ context.Context, obj *bug.SetTitleTimelineItem) (models.IdentityWrapper, error) {
- return models.NewLoadedIdentity(obj.Author), nil
-}
-
-func (setTitleTimelineItem) Date(_ context.Context, obj *bug.SetTitleTimelineItem) (*time.Time, error) {
- t := obj.UnixTime.Time()
- return &t, nil
-}
diff --git a/api/graphql/schema/bug.graphql b/api/graphql/schema/bug.graphql
index 17d3a897..f06f2f84 100644
--- a/api/graphql/schema/bug.graphql
+++ b/api/graphql/schema/bug.graphql
@@ -1,34 +1,3 @@
-"""Represents a comment on a bug."""
-type Comment implements Authored {
- id: CombinedId!
-
- """The author of this comment."""
- author: Identity!
-
- """The message of this comment."""
- message: String!
-
- """All media's hash referenced in this comment"""
- files: [Hash!]!
-}
-
-type CommentConnection {
- edges: [CommentEdge!]!
- nodes: [Comment!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type CommentEdge {
- cursor: String!
- node: Comment!
-}
-
-enum Status {
- OPEN
- CLOSED
-}
-
type Bug implements Authored {
"""The identifier for this bug"""
id: ID!
@@ -75,7 +44,7 @@ type Bug implements Authored {
first: Int
"""Returns the last _n_ elements from the list."""
last: Int
- ): CommentConnection!
+ ): BugCommentConnection!
timeline(
"""Returns the elements in the list that come after the specified cursor."""
@@ -86,7 +55,7 @@ type Bug implements Authored {
first: Int
"""Returns the last _n_ elements from the list."""
last: Int
- ): TimelineItemConnection!
+ ): BugTimelineItemConnection!
operations(
"""Returns the elements in the list that come after the specified cursor."""
diff --git a/api/graphql/schema/bug_comment.graphql b/api/graphql/schema/bug_comment.graphql
new file mode 100644
index 00000000..916d31c8
--- /dev/null
+++ b/api/graphql/schema/bug_comment.graphql
@@ -0,0 +1,26 @@
+"""Represents a comment on a bug."""
+type BugComment implements Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
+ id: CombinedId! @goField(name: "CombinedId")
+
+ """The author of this comment."""
+ author: Identity!
+
+ """The message of this comment."""
+ message: String!
+
+ """All media's hash referenced in this comment"""
+ files: [Hash!]!
+}
+
+type BugCommentConnection {
+ edges: [BugCommentEdge!]!
+ nodes: [BugComment!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type BugCommentEdge {
+ cursor: String!
+ node: BugComment!
+}
diff --git a/api/graphql/schema/mutations.graphql b/api/graphql/schema/bug_mutations.graphql
index be6a0115..c67ad707 100644
--- a/api/graphql/schema/mutations.graphql
+++ b/api/graphql/schema/bug_mutations.graphql
@@ -1,4 +1,25 @@
-input NewBugInput {
+extend type Mutation {
+ """Create a new bug"""
+ bugCreate(input: BugCreateInput!): BugCreatePayload!
+ """Add a new comment to a bug"""
+ bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
+ """Add a new comment to a bug and close it"""
+ bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
+ """Add a new comment to a bug and reopen it"""
+ bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
+ """Change a comment of a bug"""
+ bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
+ """Add or remove a set of label on a bug"""
+ bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
+ """Change a bug's status to open"""
+ bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
+ """Change a bug's status to closed"""
+ bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
+ """Change a bug's title"""
+ bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
+}
+
+input BugCreateInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -11,16 +32,16 @@ input NewBugInput {
files: [Hash!]
}
-type NewBugPayload {
+type BugCreatePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The created bug."""
bug: Bug!
"""The resulting operation."""
- operation: CreateOperation!
+ operation: BugCreateOperation!
}
-input AddCommentInput {
+input BugAddCommentInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -33,16 +54,16 @@ input AddCommentInput {
files: [Hash!]
}
-type AddCommentPayload {
+type BugAddCommentPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: AddCommentOperation!
+ operation: BugAddCommentOperation!
}
-input AddCommentAndCloseBugInput {
+input BugAddCommentAndCloseInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -55,18 +76,18 @@ input AddCommentAndCloseBugInput {
files: [Hash!]
}
-type AddCommentAndCloseBugPayload {
+type BugAddCommentAndClosePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting AddComment operation."""
- commentOperation: AddCommentOperation!
+ commentOperation: BugAddCommentOperation!
"""The resulting SetStatusOperation."""
- statusOperation: SetStatusOperation!
+ statusOperation: BugSetStatusOperation!
}
-input AddCommentAndReopenBugInput {
+input BugAddCommentAndReopenInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -79,18 +100,18 @@ input AddCommentAndReopenBugInput {
files: [Hash!]
}
-type AddCommentAndReopenBugPayload {
+type BugAddCommentAndReopenPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting AddComment operation."""
- commentOperation: AddCommentOperation!
+ commentOperation: BugAddCommentOperation!
"""The resulting SetStatusOperation."""
- statusOperation: SetStatusOperation!
+ statusOperation: BugSetStatusOperation!
}
-input EditCommentInput {
+input BugEditCommentInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -103,16 +124,16 @@ input EditCommentInput {
files: [Hash!]
}
-type EditCommentPayload {
+type BugEditCommentPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: EditCommentOperation!
+ operation: BugEditCommentOperation!
}
-input ChangeLabelInput {
+input BugChangeLabelInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -125,33 +146,18 @@ input ChangeLabelInput {
Removed: [String!]
}
-enum LabelChangeStatus {
- ADDED
- REMOVED
- DUPLICATE_IN_OP
- ALREADY_SET
- DOESNT_EXIST
-}
-
-type LabelChangeResult {
- """The source label."""
- label: Label!
- """The effect this label had."""
- status: LabelChangeStatus!
-}
-
-type ChangeLabelPayload {
+type BugChangeLabelPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: LabelChangeOperation!
+ operation: BugLabelChangeOperation!
"""The effect each source label had."""
results: [LabelChangeResult]!
}
-input OpenBugInput {
+input BugStatusOpenInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -160,16 +166,16 @@ input OpenBugInput {
prefix: String!
}
-type OpenBugPayload {
+type BugStatusOpenPayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: SetStatusOperation!
+ operation: BugSetStatusOperation!
}
-input CloseBugInput {
+input BugStatusCloseInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -178,16 +184,16 @@ input CloseBugInput {
prefix: String!
}
-type CloseBugPayload {
+type BugStatusClosePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation."""
- operation: SetStatusOperation!
+ operation: BugSetStatusOperation!
}
-input SetTitleInput {
+input BugSetTitleInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The name of the repository. If not set, the default repository is used."""
@@ -198,11 +204,11 @@ input SetTitleInput {
title: String!
}
-type SetTitlePayload {
+type BugSetTitlePayload {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
"""The affected bug."""
bug: Bug!
"""The resulting operation"""
- operation: SetTitleOperation!
+ operation: BugSetTitleOperation!
}
diff --git a/api/graphql/schema/operations.graphql b/api/graphql/schema/bug_operations.graphql
index 8e198753..93228d2a 100644
--- a/api/graphql/schema/operations.graphql
+++ b/api/graphql/schema/bug_operations.graphql
@@ -1,99 +1,77 @@
-"""An operation applied to a bug."""
-interface Operation {
- """The identifier of the operation"""
- id: ID!
- """The operations author."""
- author: Identity!
- """The datetime when this operation was issued."""
- date: Time!
-}
-
-# Connection
-
-"""The connection type for an Operation"""
-type OperationConnection {
- edges: [OperationEdge!]!
- nodes: [Operation!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-"""Represent an Operation"""
-type OperationEdge {
- cursor: String!
- node: Operation!
-}
-
-# Operations
-
-type CreateOperation implements Operation & Authored {
+type BugCreateOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
title: String!
message: String!
files: [Hash!]!
}
-type SetTitleOperation implements Operation & Authored {
+type BugSetTitleOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
title: String!
was: String!
}
-type AddCommentOperation implements Operation & Authored {
+type BugAddCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
message: String!
files: [Hash!]!
}
-type EditCommentOperation implements Operation & Authored {
+type BugEditCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
target: String!
message: String!
files: [Hash!]!
}
-type SetStatusOperation implements Operation & Authored {
+type BugSetStatusOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
status: Status!
}
-type LabelChangeOperation implements Operation & Authored {
+type BugLabelChangeOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
"""The identifier of the operation"""
id: ID!
"""The author of this object."""
author: Identity!
"""The datetime when this operation was issued."""
- date: Time!
+ date: Time! @goField(name: "Time")
added: [Label!]!
removed: [Label!]!
diff --git a/api/graphql/schema/bug_timeline.graphql b/api/graphql/schema/bug_timeline.graphql
new file mode 100644
index 00000000..5fa09497
--- /dev/null
+++ b/api/graphql/schema/bug_timeline.graphql
@@ -0,0 +1,93 @@
+"""An item in the timeline of bug events"""
+interface BugTimelineItem
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.TimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId!
+}
+
+"""CommentHistoryStep hold one version of a message in the history"""
+type BugCommentHistoryStep
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CommentHistoryStep") {
+ message: String!
+ date: Time!
+}
+
+# Connection
+
+"""The connection type for TimelineItem"""
+type BugTimelineItemConnection {
+ edges: [BugTimelineItemEdge!]!
+ nodes: [BugTimelineItem!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+"""Represent a TimelineItem"""
+type BugTimelineItemEdge {
+ cursor: String!
+ node: BugTimelineItem!
+}
+
+# Items
+
+"""BugCreateTimelineItem is a BugTimelineItem that represent the creation of a bug and its message edition history"""
+type BugCreateTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateTimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId! @goField(name: "CombinedId")
+ author: Identity!
+ message: String!
+ messageIsEmpty: Boolean!
+ files: [Hash!]!
+ createdAt: Time!
+ lastEdit: Time!
+ edited: Boolean!
+ history: [BugCommentHistoryStep!]!
+}
+
+"""BugAddCommentTimelineItem is a BugTimelineItem that represent a BugComment and its edition history"""
+type BugAddCommentTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentTimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId! @goField(name: "CombinedId")
+ author: Identity!
+ message: String!
+ messageIsEmpty: Boolean!
+ files: [Hash!]!
+ createdAt: Time!
+ lastEdit: Time!
+ edited: Boolean!
+ history: [BugCommentHistoryStep!]!
+}
+
+"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the labels of a bug"""
+type BugLabelChangeTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeTimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId! @goField(name: "CombinedId")
+ author: Identity!
+ date: Time!
+ added: [Label!]!
+ removed: [Label!]!
+}
+
+"""BugSetStatusTimelineItem is a BugTimelineItem that represent a change in the status of a bug"""
+type BugSetStatusTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusTimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId! @goField(name: "CombinedId")
+ author: Identity!
+ date: Time!
+ status: Status!
+}
+
+"""BugLabelChangeTimelineItem is a BugTimelineItem that represent a change in the title of a bug"""
+type BugSetTitleTimelineItem implements BugTimelineItem & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleTimelineItem") {
+ """The identifier of the source operation"""
+ id: CombinedId! @goField(name: "CombinedId")
+ author: Identity!
+ date: Time!
+ title: String!
+ was: String!
+}
diff --git a/api/graphql/schema/directives.graphql b/api/graphql/schema/directives.graphql
new file mode 100644
index 00000000..79c881d6
--- /dev/null
+++ b/api/graphql/schema/directives.graphql
@@ -0,0 +1,18 @@
+# Below are directives defined by gqlgen, see https://gqlgen.com/config/
+
+directive @goModel(
+ model: String
+ models: [String!]
+ forceGenerate: Boolean
+) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
+
+directive @goField(
+ forceResolver: Boolean
+ name: String
+ omittable: Boolean
+) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
+
+directive @goTag(
+ key: String!
+ value: String
+) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
diff --git a/api/graphql/schema/identity.graphql b/api/graphql/schema/identity.graphql
index c910ea55..502b0a4f 100644
--- a/api/graphql/schema/identity.graphql
+++ b/api/graphql/schema/identity.graphql
@@ -29,4 +29,4 @@ type IdentityConnection {
type IdentityEdge {
cursor: String!
node: Identity!
-} \ No newline at end of file
+}
diff --git a/api/graphql/schema/label.graphql b/api/graphql/schema/label.graphql
index 1205915c..cbaf28b7 100644
--- a/api/graphql/schema/label.graphql
+++ b/api/graphql/schema/label.graphql
@@ -16,4 +16,19 @@ type LabelConnection {
type LabelEdge {
cursor: String!
node: Label!
-} \ No newline at end of file
+}
+
+enum LabelChangeStatus {
+ ADDED
+ REMOVED
+ DUPLICATE_IN_OP
+ ALREADY_SET
+ DOESNT_EXIST
+}
+
+type LabelChangeResult {
+ """The source label."""
+ label: Label!
+ """The effect this label had."""
+ status: LabelChangeStatus!
+}
diff --git a/api/graphql/schema/operation.graphql b/api/graphql/schema/operation.graphql
new file mode 100644
index 00000000..ed952c06
--- /dev/null
+++ b/api/graphql/schema/operation.graphql
@@ -0,0 +1,25 @@
+"""An operation applied to an entity."""
+interface Operation {
+ """The identifier of the operation"""
+ id: ID!
+ """The operations author."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+}
+
+# Connection
+
+"""The connection type for an Operation"""
+type OperationConnection {
+ edges: [OperationEdge!]!
+ nodes: [Operation!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+"""Represent an Operation"""
+type OperationEdge {
+ cursor: String!
+ node: Operation!
+}
diff --git a/api/graphql/schema/repository.graphql b/api/graphql/schema/repository.graphql
index d7411be7..ccd409f5 100644
--- a/api/graphql/schema/repository.graphql
+++ b/api/graphql/schema/repository.graphql
@@ -1,4 +1,3 @@
-
type Repository {
"""The name of the repository"""
name: String
diff --git a/api/graphql/schema/root.graphql b/api/graphql/schema/root.graphql
index e3c76c03..721698b0 100644
--- a/api/graphql/schema/root.graphql
+++ b/api/graphql/schema/root.graphql
@@ -3,23 +3,4 @@ type Query {
repository(ref: String): Repository
}
-type Mutation {
- """Create a new bug"""
- newBug(input: NewBugInput!): NewBugPayload!
- """Add a new comment to a bug"""
- addComment(input: AddCommentInput!): AddCommentPayload!
- """Add a new comment to a bug and close it"""
- addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload!
- """Add a new comment to a bug and reopen it"""
- addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload!
- """Change a comment of a bug"""
- editComment(input: EditCommentInput!): EditCommentPayload!
- """Add or remove a set of label on a bug"""
- changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
- """Change a bug's status to open"""
- openBug(input: OpenBugInput!): OpenBugPayload!
- """Change a bug's status to closed"""
- closeBug(input: CloseBugInput!): CloseBugPayload!
- """Change a bug's title"""
- setTitle(input: SetTitleInput!): SetTitlePayload!
-}
+type Mutation # See each entity mutations
diff --git a/api/graphql/schema/status.graphql b/api/graphql/schema/status.graphql
new file mode 100644
index 00000000..2b07f1ec
--- /dev/null
+++ b/api/graphql/schema/status.graphql
@@ -0,0 +1,4 @@
+enum Status {
+ OPEN
+ CLOSED
+}
diff --git a/api/graphql/schema/timeline.graphql b/api/graphql/schema/timeline.graphql
deleted file mode 100644
index b7ab5ca8..00000000
--- a/api/graphql/schema/timeline.graphql
+++ /dev/null
@@ -1,86 +0,0 @@
-"""An item in the timeline of events"""
-interface TimelineItem {
- """The identifier of the source operation"""
- id: CombinedId!
-}
-
-"""CommentHistoryStep hold one version of a message in the history"""
-type CommentHistoryStep {
- message: String!
- date: Time!
-}
-
-# Connection
-
-"""The connection type for TimelineItem"""
-type TimelineItemConnection {
- edges: [TimelineItemEdge!]!
- nodes: [TimelineItem!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-"""Represent a TimelineItem"""
-type TimelineItemEdge {
- cursor: String!
- node: TimelineItem!
-}
-
-# Items
-
-"""CreateTimelineItem is a TimelineItem that represent the creation of a bug and its message edition history"""
-type CreateTimelineItem implements TimelineItem & Authored {
- """The identifier of the source operation"""
- id: CombinedId!
- author: Identity!
- message: String!
- messageIsEmpty: Boolean!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-"""AddCommentTimelineItem is a TimelineItem that represent a Comment and its edition history"""
-type AddCommentTimelineItem implements TimelineItem & Authored {
- """The identifier of the source operation"""
- id: CombinedId!
- author: Identity!
- message: String!
- messageIsEmpty: Boolean!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-"""LabelChangeTimelineItem is a TimelineItem that represent a change in the labels of a bug"""
-type LabelChangeTimelineItem implements TimelineItem & Authored {
- """The identifier of the source operation"""
- id: CombinedId!
- author: Identity!
- date: Time!
- added: [Label!]!
- removed: [Label!]!
-}
-
-"""SetStatusTimelineItem is a TimelineItem that represent a change in the status of a bug"""
-type SetStatusTimelineItem implements TimelineItem & Authored {
- """The identifier of the source operation"""
- id: CombinedId!
- author: Identity!
- date: Time!
- status: Status!
-}
-
-"""LabelChangeTimelineItem is a TimelineItem that represent a change in the title of a bug"""
-type SetTitleTimelineItem implements TimelineItem & Authored {
- """The identifier of the source operation"""
- id: CombinedId!
- author: Identity!
- date: Time!
- title: String!
- was: String!
-}
diff --git a/api/graphql/tracer.go b/api/graphql/tracer.go
index 4dc66c37..4141901e 100644
--- a/api/graphql/tracer.go
+++ b/api/graphql/tracer.go
@@ -14,32 +14,21 @@ import (
// adapted from https://github.com/99designs/gqlgen/blob/master/graphql/handler/debug/tracer.go
+var _ graphql.HandlerExtension = &Tracer{}
+var _ graphql.ResponseInterceptor = &Tracer{}
+
type Tracer struct {
Out io.Writer
}
-var _ interface {
- graphql.HandlerExtension
- graphql.ResponseInterceptor
-} = &Tracer{}
-
func (a Tracer) ExtensionName() string {
return "error tracer"
}
-func (a *Tracer) Validate(schema graphql.ExecutableSchema) error {
+func (a Tracer) Validate(schema graphql.ExecutableSchema) error {
return nil
}
-func stringify(value interface{}) string {
- valueJson, err := json.MarshalIndent(value, " ", " ")
- if err == nil {
- return string(valueJson)
- }
-
- return fmt.Sprint(value)
-}
-
func (a Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response {
resp := next(ctx)
@@ -65,3 +54,12 @@ func (a Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHand
_, _ = fmt.Fprintln(a.Out)
return resp
}
+
+func stringify(value interface{}) string {
+ valueJson, err := json.MarshalIndent(value, " ", " ")
+ if err == nil {
+ return string(valueJson)
+ }
+
+ return fmt.Sprint(value)
+}