aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'graphql')
-rw-r--r--graphql/bug.graphql122
-rw-r--r--graphql/gen_graphql.go35
-rw-r--r--graphql/gqlgen.yml2
-rw-r--r--graphql/graph/gen_graph.go1839
-rw-r--r--graphql/models/gen_models.go16
-rw-r--r--graphql/operations.graphql100
-rw-r--r--graphql/root.graphql38
-rw-r--r--graphql/schema.graphql332
-rw-r--r--graphql/timeline.graphql86
9 files changed, 1716 insertions, 854 deletions
diff --git a/graphql/bug.graphql b/graphql/bug.graphql
new file mode 100644
index 00000000..27bbba99
--- /dev/null
+++ b/graphql/bug.graphql
@@ -0,0 +1,122 @@
+"""Represents an person"""
+type Person {
+ """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 string containing the either the name of the person, its login or both"""
+ displayName: String!
+ """An url to an avatar"""
+ avatarUrl: String
+}
+
+"""Represents a comment on a bug."""
+type Comment implements Authored {
+ """The author of this comment."""
+ author: Person!
+
+ """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 {
+ id: String!
+ humanId: String!
+ status: Status!
+ title: String!
+ labels: [Label!]!
+ author: Person!
+ createdAt: Time!
+ lastEdit: Time!
+
+ comments(
+ """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
+ ): CommentConnection!
+
+ timeline(
+ """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
+ ): TimelineItemConnection!
+
+ 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 Bug."""
+type BugConnection {
+ """A list of edges."""
+ edges: [BugEdge!]!
+ nodes: [Bug!]!
+ """Information to aid in pagination."""
+ pageInfo: PageInfo!
+ """Identifies the total count of items in the connection."""
+ totalCount: Int!
+}
+
+"""An edge in a connection."""
+type BugEdge {
+ """A cursor for use in pagination."""
+ cursor: String!
+ """The item at the end of the edge."""
+ node: Bug!
+}
+
+type Repository {
+ 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
+}
+
diff --git a/graphql/gen_graphql.go b/graphql/gen_graphql.go
index 84e0cfe0..41fa71a9 100644
--- a/graphql/gen_graphql.go
+++ b/graphql/gen_graphql.go
@@ -4,43 +4,12 @@ package main
import (
"fmt"
- "io/ioutil"
- "log"
- "os"
- "path"
- "github.com/99designs/gqlgen/codegen"
+ "github.com/99designs/gqlgen/cmd"
)
func main() {
- current, err := os.Getwd()
- if err != nil {
- log.Fatal(err.Error())
- }
-
- os.Chdir(path.Join(current, "graphql"))
-
fmt.Println("Generating graphql code ...")
- log.SetOutput(os.Stdout)
-
- config, err := codegen.LoadConfigFromDefaultLocations()
- if err != nil {
- log.Fatal(err)
- }
-
- schemaRaw, err := ioutil.ReadFile(config.SchemaFilename)
- if err != nil {
- log.Fatal("unable to open schema: " + err.Error())
- }
- config.SchemaStr = string(schemaRaw)
-
- if err = config.Check(); err != nil {
- log.Fatal("invalid config format: " + err.Error())
- }
-
- err = codegen.Generate(*config)
- if err != nil {
- log.Fatal(err.Error())
- }
+ cmd.Execute()
}
diff --git a/graphql/gqlgen.yml b/graphql/gqlgen.yml
index 19bf686e..b6dc3ae5 100644
--- a/graphql/gqlgen.yml
+++ b/graphql/gqlgen.yml
@@ -1,4 +1,4 @@
-schema: schema.graphql
+schema: "*.graphql"
exec:
filename: graph/gen_graph.go
model:
diff --git a/graphql/graph/gen_graph.go b/graphql/graph/gen_graph.go
index 82862d69..e7d09ef4 100644
--- a/graphql/graph/gen_graph.go
+++ b/graphql/graph/gen_graph.go
@@ -4,19 +4,20 @@ package graph
import (
"bytes"
- context "context"
- fmt "fmt"
- strconv "strconv"
- sync "sync"
- time "time"
-
- graphql "github.com/99designs/gqlgen/graphql"
- introspection "github.com/99designs/gqlgen/graphql/introspection"
- bug "github.com/MichaelMure/git-bug/bug"
- models "github.com/MichaelMure/git-bug/graphql/models"
- git "github.com/MichaelMure/git-bug/util/git"
- gqlparser "github.com/vektah/gqlparser"
- ast "github.com/vektah/gqlparser/ast"
+ "context"
+ "errors"
+ "fmt"
+ "strconv"
+ "sync"
+ "time"
+
+ "github.com/99designs/gqlgen/graphql"
+ "github.com/99designs/gqlgen/graphql/introspection"
+ "github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/graphql/models"
+ "github.com/MichaelMure/git-bug/util/git"
+ "github.com/vektah/gqlparser"
+ "github.com/vektah/gqlparser/ast"
)
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
@@ -67,14 +68,15 @@ type ComplexityRoot struct {
}
AddCommentTimelineItem struct {
- Hash func(childComplexity int) int
- Author func(childComplexity int) int
- Message func(childComplexity int) int
- Files func(childComplexity int) int
- CreatedAt func(childComplexity int) int
- LastEdit func(childComplexity int) int
- Edited func(childComplexity int) int
- History func(childComplexity int) int
+ Hash func(childComplexity int) int
+ Author func(childComplexity int) int
+ Message func(childComplexity int) int
+ MessageIsEmpty func(childComplexity int) int
+ Files func(childComplexity int) int
+ CreatedAt func(childComplexity int) int
+ LastEdit func(childComplexity int) int
+ Edited func(childComplexity int) int
+ History func(childComplexity int) int
}
Bug struct {
@@ -136,14 +138,15 @@ type ComplexityRoot struct {
}
CreateTimelineItem struct {
- Hash func(childComplexity int) int
- Author func(childComplexity int) int
- Message func(childComplexity int) int
- Files func(childComplexity int) int
- CreatedAt func(childComplexity int) int
- LastEdit func(childComplexity int) int
- Edited func(childComplexity int) int
- History func(childComplexity int) int
+ Hash func(childComplexity int) int
+ Author func(childComplexity int) int
+ Message func(childComplexity int) int
+ MessageIsEmpty func(childComplexity int) int
+ Files func(childComplexity int) int
+ CreatedAt func(childComplexity int) int
+ LastEdit func(childComplexity int) int
+ Edited func(childComplexity int) int
+ History func(childComplexity int) int
}
EditCommentOperation struct {
@@ -1050,6 +1053,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.AddCommentTimelineItem.Message(childComplexity), true
+ case "AddCommentTimelineItem.messageIsEmpty":
+ if e.complexity.AddCommentTimelineItem.MessageIsEmpty == nil {
+ break
+ }
+
+ return e.complexity.AddCommentTimelineItem.MessageIsEmpty(childComplexity), true
+
case "AddCommentTimelineItem.files":
if e.complexity.AddCommentTimelineItem.Files == nil {
break
@@ -1359,6 +1369,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
return e.complexity.CreateTimelineItem.Message(childComplexity), true
+ case "CreateTimelineItem.messageIsEmpty":
+ if e.complexity.CreateTimelineItem.MessageIsEmpty == nil {
+ break
+ }
+
+ return e.complexity.CreateTimelineItem.MessageIsEmpty(childComplexity), true
+
case "CreateTimelineItem.files":
if e.complexity.CreateTimelineItem.Files == nil {
break
@@ -1921,9 +1938,9 @@ func (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinitio
})
return &graphql.Response{
- Data: buf,
- Errors: ec.Errors,
- }
+ Data: buf,
+ Errors: ec.Errors,
+ Extensions: ec.Extensions}
}
func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
@@ -1937,8 +1954,9 @@ func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefini
})
return &graphql.Response{
- Data: buf,
- Errors: ec.Errors,
+ Data: buf,
+ Errors: ec.Errors,
+ Extensions: ec.Extensions,
}
}
@@ -2008,13 +2026,17 @@ func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.Se
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -2025,18 +2047,23 @@ func (ec *executionContext) _AddCommentOperation_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2047,20 +2074,25 @@ func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, fie
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2070,18 +2102,23 @@ func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -2092,18 +2129,23 @@ func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, fi
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -2114,6 +2156,7 @@ func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, fiel
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2156,6 +2199,11 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
if out.Values[i] == graphql.Null {
invalid = true
}
+ case "messageIsEmpty":
+ out.Values[i] = ec._AddCommentTimelineItem_messageIsEmpty(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ invalid = true
+ }
case "files":
out.Values[i] = ec._AddCommentTimelineItem_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
@@ -2202,13 +2250,17 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -2219,18 +2271,23 @@ func (ec *executionContext) _AddCommentTimelineItem_hash(ctx context.Context, fi
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2241,19 +2298,24 @@ func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context,
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -2264,18 +2326,50 @@ func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context,
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
+func (ec *executionContext) _AddCommentTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
+ rctx := &graphql.ResolverContext{
+ Object: "AddCommentTimelineItem",
+ Args: nil,
+ Field: field,
+ }
+ ctx = graphql.WithResolverContext(ctx, rctx)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.MessageIsEmpty(), nil
+ })
+ if resTmp == nil {
+ if !ec.HasError(rctx) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.(bool)
+ rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+ return graphql.MarshalBoolean(res)
+}
+
+// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -2286,6 +2380,7 @@ func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, f
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2300,14 +2395,18 @@ func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentTimelineItem().CreatedAt(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentTimelineItem().CreatedAt(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2317,19 +2416,24 @@ func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Contex
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentTimelineItem().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentTimelineItem().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2339,18 +2443,23 @@ func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edited(), nil
})
if resTmp == nil {
@@ -2361,18 +2470,23 @@ func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context,
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.History, nil
})
if resTmp == nil {
@@ -2383,6 +2497,7 @@ func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context,
}
res := resTmp.([]bug.CommentHistoryStep)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2522,13 +2637,17 @@ func (ec *executionContext) _Bug(ctx context.Context, sel ast.SelectionSet, obj
// nolint: vetshadow
func (ec *executionContext) _Bug_id(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
if resTmp == nil {
@@ -2539,18 +2658,23 @@ func (ec *executionContext) _Bug_id(ctx context.Context, field graphql.Collected
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_humanId(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HumanId(), nil
})
if resTmp == nil {
@@ -2561,19 +2685,24 @@ func (ec *executionContext) _Bug_humanId(ctx context.Context, field graphql.Coll
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_status(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2583,18 +2712,23 @@ func (ec *executionContext) _Bug_status(ctx context.Context, field graphql.Colle
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _Bug_title(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -2605,18 +2739,23 @@ func (ec *executionContext) _Bug_title(ctx context.Context, field graphql.Collec
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_labels(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Labels, nil
})
if resTmp == nil {
@@ -2627,6 +2766,7 @@ func (ec *executionContext) _Bug_labels(ctx context.Context, field graphql.Colle
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2641,13 +2781,17 @@ func (ec *executionContext) _Bug_labels(ctx context.Context, field graphql.Colle
// nolint: vetshadow
func (ec *executionContext) _Bug_author(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2658,19 +2802,24 @@ func (ec *executionContext) _Bug_author(ctx context.Context, field graphql.Colle
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if resTmp == nil {
@@ -2681,19 +2830,24 @@ func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.Co
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2703,11 +2857,14 @@ func (ec *executionContext) _Bug_lastEdit(ctx context.Context, field graphql.Col
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_comments_args(rawArgs)
if err != nil {
@@ -2720,8 +2877,10 @@ func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Comments(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Comments(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2731,12 +2890,15 @@ func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.Col
}
res := resTmp.(models.CommentConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._CommentConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_timeline_args(rawArgs)
if err != nil {
@@ -2749,8 +2911,10 @@ func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Timeline(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Timeline(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2760,12 +2924,15 @@ func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.Col
}
res := resTmp.(models.TimelineItemConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._TimelineItemConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_operations_args(rawArgs)
if err != nil {
@@ -2778,8 +2945,10 @@ func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Operations(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Operations(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2789,6 +2958,7 @@ func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.C
}
res := resTmp.(models.OperationConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._OperationConnection(ctx, field.Selections, &res)
}
@@ -2840,13 +3010,17 @@ func (ec *executionContext) _BugConnection(ctx context.Context, sel ast.Selectio
// nolint: vetshadow
func (ec *executionContext) _BugConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -2857,6 +3031,7 @@ func (ec *executionContext) _BugConnection_edges(ctx context.Context, field grap
}
res := resTmp.([]models.BugEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2895,13 +3070,17 @@ func (ec *executionContext) _BugConnection_edges(ctx context.Context, field grap
// nolint: vetshadow
func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -2912,6 +3091,7 @@ func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field grap
}
res := resTmp.([]bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2950,13 +3130,17 @@ func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field grap
// nolint: vetshadow
func (ec *executionContext) _BugConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -2967,19 +3151,24 @@ func (ec *executionContext) _BugConnection_pageInfo(ctx context.Context, field g
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _BugConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -2990,6 +3179,7 @@ func (ec *executionContext) _BugConnection_totalCount(ctx context.Context, field
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -3030,13 +3220,17 @@ func (ec *executionContext) _BugEdge(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _BugEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.BugEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -3047,18 +3241,23 @@ func (ec *executionContext) _BugEdge_cursor(ctx context.Context, field graphql.C
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _BugEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.BugEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -3069,6 +3268,7 @@ func (ec *executionContext) _BugEdge_node(ctx context.Context, field graphql.Col
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
@@ -3115,13 +3315,17 @@ func (ec *executionContext) _Comment(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _Comment_author(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3132,19 +3336,24 @@ func (ec *executionContext) _Comment_author(ctx context.Context, field graphql.C
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Comment_message(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3155,18 +3364,23 @@ func (ec *executionContext) _Comment_message(ctx context.Context, field graphql.
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Comment_files(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3177,6 +3391,7 @@ func (ec *executionContext) _Comment_files(ctx context.Context, field graphql.Co
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3236,13 +3451,17 @@ func (ec *executionContext) _CommentConnection(ctx context.Context, sel ast.Sele
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -3253,6 +3472,7 @@ func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field
}
res := resTmp.([]models.CommentEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -3291,13 +3511,17 @@ func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -3308,6 +3532,7 @@ func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field
}
res := resTmp.([]bug.Comment)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -3346,13 +3571,17 @@ func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -3363,19 +3592,24 @@ func (ec *executionContext) _CommentConnection_pageInfo(ctx context.Context, fie
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -3386,6 +3620,7 @@ func (ec *executionContext) _CommentConnection_totalCount(ctx context.Context, f
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -3426,13 +3661,17 @@ func (ec *executionContext) _CommentEdge(ctx context.Context, sel ast.SelectionS
// nolint: vetshadow
func (ec *executionContext) _CommentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -3443,18 +3682,23 @@ func (ec *executionContext) _CommentEdge_cursor(ctx context.Context, field graph
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CommentEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -3465,6 +3709,7 @@ func (ec *executionContext) _CommentEdge_node(ctx context.Context, field graphql
}
res := resTmp.(bug.Comment)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Comment(ctx, field.Selections, &res)
}
@@ -3511,13 +3756,17 @@ func (ec *executionContext) _CommentHistoryStep(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentHistoryStep",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3528,19 +3777,24 @@ func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentHistoryStep",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CommentHistoryStep().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CommentHistoryStep().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3550,6 +3804,7 @@ func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
@@ -3615,13 +3870,17 @@ func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.Select
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -3632,18 +3891,23 @@ func (ec *executionContext) _CreateOperation_hash(ctx context.Context, field gra
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3654,20 +3918,25 @@ func (ec *executionContext) _CreateOperation_author(ctx context.Context, field g
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3677,18 +3946,23 @@ func (ec *executionContext) _CreateOperation_date(ctx context.Context, field gra
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -3699,18 +3973,23 @@ func (ec *executionContext) _CreateOperation_title(ctx context.Context, field gr
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3721,18 +4000,23 @@ func (ec *executionContext) _CreateOperation_message(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3743,6 +4027,7 @@ func (ec *executionContext) _CreateOperation_files(ctx context.Context, field gr
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3785,6 +4070,11 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
if out.Values[i] == graphql.Null {
invalid = true
}
+ case "messageIsEmpty":
+ out.Values[i] = ec._CreateTimelineItem_messageIsEmpty(ctx, field, obj)
+ if out.Values[i] == graphql.Null {
+ invalid = true
+ }
case "files":
out.Values[i] = ec._CreateTimelineItem_files(ctx, field, obj)
if out.Values[i] == graphql.Null {
@@ -3831,13 +4121,17 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -3848,18 +4142,23 @@ func (ec *executionContext) _CreateTimelineItem_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3870,19 +4169,24 @@ func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, fiel
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3893,18 +4197,50 @@ func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
+func (ec *executionContext) _CreateTimelineItem_messageIsEmpty(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
+ rctx := &graphql.ResolverContext{
+ Object: "CreateTimelineItem",
+ Args: nil,
+ Field: field,
+ }
+ ctx = graphql.WithResolverContext(ctx, rctx)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.MessageIsEmpty(), nil
+ })
+ if resTmp == nil {
+ if !ec.HasError(rctx) {
+ ec.Errorf(ctx, "must not be null")
+ }
+ return graphql.Null
+ }
+ res := resTmp.(bool)
+ rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+ return graphql.MarshalBoolean(res)
+}
+
+// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3915,6 +4251,7 @@ func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3929,14 +4266,18 @@ func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateTimelineItem().CreatedAt(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateTimelineItem().CreatedAt(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3946,19 +4287,24 @@ func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, f
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateTimelineItem().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateTimelineItem().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3968,18 +4314,23 @@ func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, fi
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edited(), nil
})
if resTmp == nil {
@@ -3990,18 +4341,23 @@ func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, fiel
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.History, nil
})
if resTmp == nil {
@@ -4012,6 +4368,7 @@ func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, fie
}
res := resTmp.([]bug.CommentHistoryStep)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -4110,13 +4467,17 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -4127,18 +4488,23 @@ func (ec *executionContext) _EditCommentOperation_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4149,20 +4515,25 @@ func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.EditCommentOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.EditCommentOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4172,18 +4543,23 @@ func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Target, nil
})
if resTmp == nil {
@@ -4194,18 +4570,23 @@ func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, fi
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -4216,18 +4597,23 @@ func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, f
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -4238,6 +4624,7 @@ func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, fie
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4307,13 +4694,17 @@ func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -4324,18 +4715,23 @@ func (ec *executionContext) _LabelChangeOperation_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4346,20 +4742,25 @@ func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.LabelChangeOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.LabelChangeOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4369,18 +4770,23 @@ func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Added, nil
})
if resTmp == nil {
@@ -4391,6 +4797,7 @@ func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, fie
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4405,13 +4812,17 @@ func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, fie
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Removed, nil
})
if resTmp == nil {
@@ -4422,6 +4833,7 @@ func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, f
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4491,13 +4903,17 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -4508,18 +4924,23 @@ func (ec *executionContext) _LabelChangeTimelineItem_hash(ctx context.Context, f
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4530,20 +4951,25 @@ func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context,
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.LabelChangeTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.LabelChangeTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4553,18 +4979,23 @@ func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, f
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Added, nil
})
if resTmp == nil {
@@ -4575,6 +5006,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context,
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4589,13 +5021,17 @@ func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context,
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Removed, nil
})
if resTmp == nil {
@@ -4606,6 +5042,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4684,6 +5121,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet)
// nolint: vetshadow
func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_newBug_args(rawArgs)
if err != nil {
@@ -4696,8 +5135,10 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().NewBug(ctx, args["repoRef"].(*string), args["title"].(string), args["message"].(string), args["files"].([]git.Hash))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().NewBug(rctx, args["repoRef"].(*string), args["title"].(string), args["message"].(string), args["files"].([]git.Hash))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4707,12 +5148,15 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_addComment(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_addComment_args(rawArgs)
if err != nil {
@@ -4725,8 +5169,10 @@ func (ec *executionContext) _Mutation_addComment(ctx context.Context, field grap
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().AddComment(ctx, args["repoRef"].(*string), args["prefix"].(string), args["message"].(string), args["files"].([]git.Hash))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().AddComment(rctx, args["repoRef"].(*string), args["prefix"].(string), args["message"].(string), args["files"].([]git.Hash))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4736,12 +5182,15 @@ func (ec *executionContext) _Mutation_addComment(ctx context.Context, field grap
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_changeLabels_args(rawArgs)
if err != nil {
@@ -4754,8 +5203,10 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().ChangeLabels(ctx, args["repoRef"].(*string), args["prefix"].(string), args["added"].([]string), args["removed"].([]string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().ChangeLabels(rctx, args["repoRef"].(*string), args["prefix"].(string), args["added"].([]string), args["removed"].([]string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4765,12 +5216,15 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_open_args(rawArgs)
if err != nil {
@@ -4783,8 +5237,10 @@ func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.Co
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Open(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Open(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4794,12 +5250,15 @@ func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.Co
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_close_args(rawArgs)
if err != nil {
@@ -4812,8 +5271,10 @@ func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Close(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Close(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4823,12 +5284,15 @@ func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.C
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_setTitle_args(rawArgs)
if err != nil {
@@ -4841,8 +5305,10 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().SetTitle(ctx, args["repoRef"].(*string), args["prefix"].(string), args["title"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().SetTitle(rctx, args["repoRef"].(*string), args["prefix"].(string), args["title"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4852,12 +5318,15 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_commit_args(rawArgs)
if err != nil {
@@ -4870,8 +5339,10 @@ func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Commit(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Commit(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4881,6 +5352,7 @@ func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
@@ -4932,13 +5404,17 @@ func (ec *executionContext) _OperationConnection(ctx context.Context, sel ast.Se
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -4949,6 +5425,7 @@ func (ec *executionContext) _OperationConnection_edges(ctx context.Context, fiel
}
res := resTmp.([]models.OperationEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -4987,13 +5464,17 @@ func (ec *executionContext) _OperationConnection_edges(ctx context.Context, fiel
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -5004,6 +5485,7 @@ func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, fiel
}
res := resTmp.([]bug.Operation)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -5042,13 +5524,17 @@ func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, fiel
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -5059,19 +5545,24 @@ func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, f
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -5082,6 +5573,7 @@ func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context,
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -5122,13 +5614,17 @@ func (ec *executionContext) _OperationEdge(ctx context.Context, sel ast.Selectio
// nolint: vetshadow
func (ec *executionContext) _OperationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -5139,18 +5635,23 @@ func (ec *executionContext) _OperationEdge_cursor(ctx context.Context, field gra
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _OperationEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -5161,6 +5662,7 @@ func (ec *executionContext) _OperationEdge_node(ctx context.Context, field graph
}
res := resTmp.(bug.Operation)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Operation(ctx, field.Selections, &res)
}
@@ -5212,13 +5714,17 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HasNextPage, nil
})
if resTmp == nil {
@@ -5229,18 +5735,23 @@ func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field gra
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HasPreviousPage, nil
})
if resTmp == nil {
@@ -5251,18 +5762,23 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.StartCursor, nil
})
if resTmp == nil {
@@ -5273,18 +5789,23 @@ func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field gra
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.EndCursor, nil
})
if resTmp == nil {
@@ -5295,6 +5816,7 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -5355,20 +5877,25 @@ func (ec *executionContext) _Person(ctx context.Context, sel ast.SelectionSet, o
// nolint: vetshadow
func (ec *executionContext) _Person_name(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Name(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Name(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5378,20 +5905,25 @@ func (ec *executionContext) _Person_name(ctx context.Context, field graphql.Coll
// nolint: vetshadow
func (ec *executionContext) _Person_email(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Email(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Email(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5401,20 +5933,25 @@ func (ec *executionContext) _Person_email(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) _Person_login(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Login(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Login(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5424,13 +5961,17 @@ func (ec *executionContext) _Person_login(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) _Person_displayName(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.DisplayName(), nil
})
if resTmp == nil {
@@ -5441,25 +5982,31 @@ func (ec *executionContext) _Person_displayName(ctx context.Context, field graph
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Person_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().AvatarURL(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().AvatarURL(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5515,20 +6062,25 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
// nolint: vetshadow
func (ec *executionContext) _Query_defaultRepository(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Query",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Query().DefaultRepository(ctx)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Query().DefaultRepository(rctx)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Repository)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5539,6 +6091,8 @@ func (ec *executionContext) _Query_defaultRepository(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _Query_repository(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Query_repository_args(rawArgs)
if err != nil {
@@ -5551,14 +6105,17 @@ func (ec *executionContext) _Query_repository(ctx context.Context, field graphql
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Query().Repository(ctx, args["id"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Query().Repository(rctx, args["id"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Repository)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5569,6 +6126,8 @@ func (ec *executionContext) _Query_repository(ctx context.Context, field graphql
// nolint: vetshadow
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Query___type_args(rawArgs)
if err != nil {
@@ -5581,14 +6140,17 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.introspectType(args["name"].(string)), nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.introspectType(args["name"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5599,20 +6161,25 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Query",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.introspectSchema(), nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.introspectSchema()
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Schema)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5664,6 +6231,8 @@ func (ec *executionContext) _Repository(ctx context.Context, sel ast.SelectionSe
// nolint: vetshadow
func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graphql.CollectedField, obj *models.Repository) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Repository_allBugs_args(rawArgs)
if err != nil {
@@ -5676,8 +6245,10 @@ func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graph
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Repository().AllBugs(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Repository().AllBugs(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5687,12 +6258,15 @@ func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graph
}
res := resTmp.(models.BugConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._BugConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Repository_bug(ctx context.Context, field graphql.CollectedField, obj *models.Repository) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Repository_bug_args(rawArgs)
if err != nil {
@@ -5705,14 +6279,17 @@ func (ec *executionContext) _Repository_bug(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Repository().Bug(ctx, obj, args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Repository().Bug(rctx, obj, args["prefix"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5777,13 +6354,17 @@ func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -5794,18 +6375,23 @@ func (ec *executionContext) _SetStatusOperation_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -5816,20 +6402,25 @@ func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, fiel
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5839,19 +6430,24 @@ func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusOperation().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusOperation().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5861,6 +6457,7 @@ func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, fiel
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
@@ -5920,13 +6517,17 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -5937,18 +6538,23 @@ func (ec *executionContext) _SetStatusTimelineItem_hash(ctx context.Context, fie
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -5959,20 +6565,25 @@ func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, f
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5982,19 +6593,24 @@ func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, fie
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusTimelineItem().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusTimelineItem().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6004,6 +6620,7 @@ func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, f
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
@@ -6064,13 +6681,17 @@ func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.Sele
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -6081,18 +6702,23 @@ func (ec *executionContext) _SetTitleOperation_hash(ctx context.Context, field g
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -6103,20 +6729,25 @@ func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetTitleOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetTitleOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6126,18 +6757,23 @@ func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field g
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -6148,18 +6784,23 @@ func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Was, nil
})
if resTmp == nil {
@@ -6170,6 +6811,7 @@ func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field gr
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -6230,13 +6872,17 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -6247,18 +6893,23 @@ func (ec *executionContext) _SetTitleTimelineItem_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -6269,20 +6920,25 @@ func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetTitleTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetTitleTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6292,18 +6948,23 @@ func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -6314,18 +6975,23 @@ func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Was, nil
})
if resTmp == nil {
@@ -6336,6 +7002,7 @@ func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -6386,13 +7053,17 @@ func (ec *executionContext) _TimelineItemConnection(ctx context.Context, sel ast
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -6403,6 +7074,7 @@ func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, f
}
res := resTmp.([]models.TimelineItemEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -6441,13 +7113,17 @@ func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -6458,6 +7134,7 @@ func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, f
}
res := resTmp.([]bug.TimelineItem)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -6496,13 +7173,17 @@ func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -6513,19 +7194,24 @@ func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -6536,6 +7222,7 @@ func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Conte
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -6576,13 +7263,17 @@ func (ec *executionContext) _TimelineItemEdge(ctx context.Context, sel ast.Selec
// nolint: vetshadow
func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -6593,18 +7284,23 @@ func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -6615,6 +7311,7 @@ func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field gr
}
res := resTmp.(bug.TimelineItem)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._TimelineItem(ctx, field.Selections, &res)
}
@@ -6663,13 +7360,17 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS
// nolint: vetshadow
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6680,18 +7381,23 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6699,18 +7405,23 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Locations, nil
})
if resTmp == nil {
@@ -6721,6 +7432,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr
}
res := resTmp.([]string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -6735,13 +7447,17 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr
// nolint: vetshadow
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if resTmp == nil {
@@ -6752,6 +7468,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql
}
res := resTmp.([]introspection.InputValue)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -6829,13 +7546,17 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS
// nolint: vetshadow
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6846,18 +7567,23 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6865,19 +7591,24 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.IsDeprecated, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.IsDeprecated(), nil
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6887,26 +7618,36 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.DeprecationReason, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.DeprecationReason(), nil
})
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
rctx.Result = res
- return graphql.MarshalString(res)
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+
+ if res == nil {
+ return graphql.Null
+ }
+ return graphql.MarshalString(*res)
}
var __FieldImplementors = []string{"__Field"}
@@ -6960,13 +7701,17 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6977,18 +7722,23 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6996,18 +7746,23 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if resTmp == nil {
@@ -7018,6 +7773,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col
}
res := resTmp.([]introspection.InputValue)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7056,13 +7812,17 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if resTmp == nil {
@@ -7073,6 +7833,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
if !ec.HasError(rctx) {
@@ -7086,14 +7847,18 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.IsDeprecated, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.IsDeprecated(), nil
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -7103,26 +7868,36 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.DeprecationReason, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.DeprecationReason(), nil
})
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
rctx.Result = res
- return graphql.MarshalString(res)
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+
+ if res == nil {
+ return graphql.Null
+ }
+ return graphql.MarshalString(*res)
}
var __InputValueImplementors = []string{"__InputValue"}
@@ -7166,13 +7941,17 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
// nolint: vetshadow
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -7183,18 +7962,23 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -7202,18 +7986,23 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if resTmp == nil {
@@ -7224,6 +8013,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
if !ec.HasError(rctx) {
@@ -7237,13 +8027,17 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq
// nolint: vetshadow
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.DefaultValue, nil
})
if resTmp == nil {
@@ -7251,6 +8045,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -7304,13 +8099,17 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Types(), nil
})
if resTmp == nil {
@@ -7321,6 +8120,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C
}
res := resTmp.([]introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7359,13 +8159,17 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C
// nolint: vetshadow
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.QueryType(), nil
})
if resTmp == nil {
@@ -7376,6 +8180,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
if !ec.HasError(rctx) {
@@ -7389,13 +8194,17 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph
// nolint: vetshadow
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.MutationType(), nil
})
if resTmp == nil {
@@ -7403,6 +8212,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -7413,13 +8223,17 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr
// nolint: vetshadow
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.SubscriptionType(), nil
})
if resTmp == nil {
@@ -7427,6 +8241,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -7437,13 +8252,17 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel
// nolint: vetshadow
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Directives(), nil
})
if resTmp == nil {
@@ -7454,6 +8273,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap
}
res := resTmp.([]introspection.Directive)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7538,13 +8358,17 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
// nolint: vetshadow
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Kind(), nil
})
if resTmp == nil {
@@ -7555,18 +8379,23 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name(), nil
})
if resTmp == nil {
@@ -7574,6 +8403,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -7583,13 +8413,17 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll
// nolint: vetshadow
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if resTmp == nil {
@@ -7597,11 +8431,14 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field___Type_fields_args(rawArgs)
if err != nil {
@@ -7614,7 +8451,9 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Fields(args["includeDeprecated"].(bool)), nil
})
if resTmp == nil {
@@ -7622,6 +8461,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co
}
res := resTmp.([]introspection.Field)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7660,13 +8500,17 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co
// nolint: vetshadow
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Interfaces(), nil
})
if resTmp == nil {
@@ -7674,6 +8518,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq
}
res := resTmp.([]introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7712,13 +8557,17 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq
// nolint: vetshadow
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PossibleTypes(), nil
})
if resTmp == nil {
@@ -7726,6 +8575,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra
}
res := resTmp.([]introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7764,6 +8614,8 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra
// nolint: vetshadow
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field___Type_enumValues_args(rawArgs)
if err != nil {
@@ -7776,7 +8628,9 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.EnumValues(args["includeDeprecated"].(bool)), nil
})
if resTmp == nil {
@@ -7784,6 +8638,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq
}
res := resTmp.([]introspection.EnumValue)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7822,13 +8677,17 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq
// nolint: vetshadow
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.InputFields(), nil
})
if resTmp == nil {
@@ -7836,6 +8695,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph
}
res := resTmp.([]introspection.InputValue)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -7874,13 +8734,17 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph
// nolint: vetshadow
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.OfType(), nil
})
if resTmp == nil {
@@ -7888,6 +8752,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -7904,28 +8769,16 @@ func (ec *executionContext) _Authored(ctx context.Context, sel ast.SelectionSet,
return ec._Comment(ctx, sel, &obj)
case *bug.Comment:
return ec._Comment(ctx, sel, obj)
- case bug.CreateOperation:
- return ec._CreateOperation(ctx, sel, &obj)
case *bug.CreateOperation:
return ec._CreateOperation(ctx, sel, obj)
- case bug.SetTitleOperation:
- return ec._SetTitleOperation(ctx, sel, &obj)
case *bug.SetTitleOperation:
return ec._SetTitleOperation(ctx, sel, obj)
- case bug.AddCommentOperation:
- return ec._AddCommentOperation(ctx, sel, &obj)
case *bug.AddCommentOperation:
return ec._AddCommentOperation(ctx, sel, obj)
- case bug.EditCommentOperation:
- return ec._EditCommentOperation(ctx, sel, &obj)
case *bug.EditCommentOperation:
return ec._EditCommentOperation(ctx, sel, obj)
- case bug.SetStatusOperation:
- return ec._SetStatusOperation(ctx, sel, &obj)
case *bug.SetStatusOperation:
return ec._SetStatusOperation(ctx, sel, obj)
- case bug.LabelChangeOperation:
- return ec._LabelChangeOperation(ctx, sel, &obj)
case *bug.LabelChangeOperation:
return ec._LabelChangeOperation(ctx, sel, obj)
default:
@@ -7994,61 +8847,35 @@ func (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}
return res
}
-func (ec *executionContext) introspectSchema() *introspection.Schema {
- return introspection.WrapSchema(parsedSchema)
+func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
+ if ec.DisableIntrospection {
+ return nil, errors.New("introspection disabled")
+ }
+ return introspection.WrapSchema(parsedSchema), nil
}
-func (ec *executionContext) introspectType(name string) *introspection.Type {
- return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name])
+func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
+ if ec.DisableIntrospection {
+ return nil, errors.New("introspection disabled")
+ }
+ return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
}
var parsedSchema = gqlparser.MustLoadSchema(
- &ast.Source{Name: "schema.graphql", Input: `scalar Time
-scalar Label
-scalar Hash
-
-"""Information about pagination in a connection."""
-type PageInfo {
- """When paginating forwards, are there more items?"""
- hasNextPage: Boolean!
- """When paginating backwards, are there more items?"""
- hasPreviousPage: Boolean!
- """When paginating backwards, the cursor to continue."""
- startCursor: String!
- """When paginating forwards, the cursor to continue."""
- endCursor: String!
-}
-
-"""Represents an person in a git object."""
+ &ast.Source{Name: "bug.graphql", Input: `"""Represents an person"""
type Person {
"""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 string containing the either the name of the person, its login or both"""
displayName: String!
-
"""An url to an avatar"""
avatarUrl: String
}
-type CommentConnection {
- edges: [CommentEdge!]!
- nodes: [Comment!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type CommentEdge {
- cursor: String!
- node: Comment!
-}
-
"""Represents a comment on a bug."""
type Comment implements Authored {
"""The author of this comment."""
@@ -8061,202 +8888,21 @@ type Comment implements Authored {
files: [Hash!]!
}
-enum Status {
- OPEN
- CLOSED
-}
-
-"""An object that has an author."""
-interface Authored {
- """The author of this object."""
- author: Person!
-}
-
-type OperationConnection {
- edges: [OperationEdge!]!
- nodes: [Operation!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type OperationEdge {
- cursor: String!
- node: Operation!
-}
-
-"""An item in the timeline of events"""
-interface TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
-}
-
-"""An operation applied to a bug."""
-interface Operation {
- """The hash of the operation"""
- hash: Hash!
- """The operations author."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-}
-
-type CreateOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- title: String!
- message: String!
- files: [Hash!]!
-}
-
-type SetTitleOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- title: String!
- was: String!
-}
-
-type AddCommentOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- message: String!
- files: [Hash!]!
-}
-
-type EditCommentOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- target: Hash!
- message: String!
- files: [Hash!]!
-}
-
-type SetStatusOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- status: Status!
-}
-
-type LabelChangeOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- added: [Label!]!
- removed: [Label!]!
-}
-
-type TimelineItemConnection {
- edges: [TimelineItemEdge!]!
- nodes: [TimelineItem!]!
+type CommentConnection {
+ edges: [CommentEdge!]!
+ nodes: [Comment!]!
pageInfo: PageInfo!
totalCount: Int!
}
-type TimelineItemEdge {
+type CommentEdge {
cursor: String!
- node: TimelineItem!
-}
-
-type CommentHistoryStep {
- message: String!
- date: Time!
-}
-
-type CreateTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- message: String!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-type AddCommentTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- message: String!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-type LabelChangeTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- added: [Label!]!
- removed: [Label!]!
-}
-
-type SetStatusTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- status: Status!
-}
-
-type SetTitleTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- title: String!
- was: String!
-}
-
-"""The connection type for Bug."""
-type BugConnection {
- """A list of edges."""
- edges: [BugEdge!]!
- nodes: [Bug!]!
- """Information to aid in pagination."""
- pageInfo: PageInfo!
- """Identifies the total count of items in the connection."""
- totalCount: Int!
+ node: Comment!
}
-"""An edge in a connection."""
-type BugEdge {
- """A cursor for use in pagination."""
- cursor: String!
- """The item at the end of the edge."""
- node: Bug!
+enum Status {
+ OPEN
+ CLOSED
}
type Bug {
@@ -8303,6 +8949,25 @@ type Bug {
): OperationConnection!
}
+"""The connection type for Bug."""
+type BugConnection {
+ """A list of edges."""
+ edges: [BugEdge!]!
+ nodes: [Bug!]!
+ """Information to aid in pagination."""
+ pageInfo: PageInfo!
+ """Identifies the total count of items in the connection."""
+ totalCount: Int!
+}
+
+"""An edge in a connection."""
+type BugEdge {
+ """A cursor for use in pagination."""
+ cursor: String!
+ """The item at the end of the edge."""
+ node: Bug!
+}
+
type Repository {
allBugs(
"""Returns the elements in the list that come after the specified cursor."""
@@ -8319,21 +8984,229 @@ type Repository {
bug(prefix: String!): Bug
}
+`},
+ &ast.Source{Name: "operations.graphql", Input: `"""An operation applied to a bug."""
+interface Operation {
+ """The hash of the operation"""
+ hash: Hash!
+ """The operations author."""
+ author: Person!
+ """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 {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ title: String!
+ message: String!
+ files: [Hash!]!
+}
+
+type SetTitleOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ title: String!
+ was: String!
+}
+
+type AddCommentOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ message: String!
+ files: [Hash!]!
+}
+
+type EditCommentOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ target: Hash!
+ message: String!
+ files: [Hash!]!
+}
+
+type SetStatusOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ status: Status!
+}
+
+type LabelChangeOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ added: [Label!]!
+ removed: [Label!]!
+}`},
+ &ast.Source{Name: "root.graphql", Input: `scalar Time
+scalar Label
+scalar Hash
+
+"""Information about pagination in a connection."""
+type PageInfo {
+ """When paginating forwards, are there more items?"""
+ hasNextPage: Boolean!
+ """When paginating backwards, are there more items?"""
+ hasPreviousPage: Boolean!
+ """When paginating backwards, the cursor to continue."""
+ startCursor: String!
+ """When paginating forwards, the cursor to continue."""
+ endCursor: String!
+}
+
+"""An object that has an author."""
+interface Authored {
+ """The author of this object."""
+ author: Person!
+}
+
type Query {
- defaultRepository: Repository
- repository(id: String!): Repository
+ defaultRepository: Repository
+ repository(id: String!): Repository
}
type Mutation {
- newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug!
+ newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug!
- addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug!
- changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug!
- open(repoRef: String, prefix: String!): Bug!
- close(repoRef: String, prefix: String!): Bug!
- setTitle(repoRef: String, prefix: String!, title: String!): Bug!
+ addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug!
+ changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug!
+ open(repoRef: String, prefix: String!): Bug!
+ close(repoRef: String, prefix: String!): Bug!
+ setTitle(repoRef: String, prefix: String!, title: String!): Bug!
- commit(repoRef: String, prefix: String!): Bug!
+ commit(repoRef: String, prefix: String!): Bug!
+}`},
+ &ast.Source{Name: "timeline.graphql", Input: `"""An item in the timeline of events"""
+interface TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
}
-`},
+
+"""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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ 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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ 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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ added: [Label!]!
+ removed: [Label!]!
+}
+
+"""SetStatusTimelineItem is a TimelineItem that represent a change in the status of a bug"""
+type SetStatusTimelineItem implements TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ status: Status!
+}
+
+"""LabelChangeTimelineItem is a TimelineItem that represent a change in the title of a bug"""
+type SetTitleTimelineItem implements TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ title: String!
+ was: String!
+}`},
)
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index 849b1842..71a6b78b 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -3,15 +3,17 @@
package models
import (
- fmt "fmt"
- io "io"
- strconv "strconv"
+ "fmt"
+ "io"
+ "strconv"
- bug "github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/bug"
)
// An object that has an author.
-type Authored interface{}
+type Authored interface {
+ IsAuthored()
+}
// The connection type for Bug.
type BugConnection struct {
@@ -39,6 +41,7 @@ type CommentEdge struct {
Node bug.Comment `json:"node"`
}
+// The connection type for an Operation
type OperationConnection struct {
Edges []OperationEdge `json:"edges"`
Nodes []bug.Operation `json:"nodes"`
@@ -46,6 +49,7 @@ type OperationConnection struct {
TotalCount int `json:"totalCount"`
}
+// Represent an Operation
type OperationEdge struct {
Cursor string `json:"cursor"`
Node bug.Operation `json:"node"`
@@ -59,6 +63,7 @@ type PageInfo struct {
EndCursor string `json:"endCursor"`
}
+// The connection type for TimelineItem
type TimelineItemConnection struct {
Edges []TimelineItemEdge `json:"edges"`
Nodes []bug.TimelineItem `json:"nodes"`
@@ -66,6 +71,7 @@ type TimelineItemConnection struct {
TotalCount int `json:"totalCount"`
}
+// Represent a TimelineItem
type TimelineItemEdge struct {
Cursor string `json:"cursor"`
Node bug.TimelineItem `json:"node"`
diff --git a/graphql/operations.graphql b/graphql/operations.graphql
new file mode 100644
index 00000000..420a9e12
--- /dev/null
+++ b/graphql/operations.graphql
@@ -0,0 +1,100 @@
+"""An operation applied to a bug."""
+interface Operation {
+ """The hash of the operation"""
+ hash: Hash!
+ """The operations author."""
+ author: Person!
+ """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 {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ title: String!
+ message: String!
+ files: [Hash!]!
+}
+
+type SetTitleOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ title: String!
+ was: String!
+}
+
+type AddCommentOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ message: String!
+ files: [Hash!]!
+}
+
+type EditCommentOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ target: Hash!
+ message: String!
+ files: [Hash!]!
+}
+
+type SetStatusOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ status: Status!
+}
+
+type LabelChangeOperation implements Operation & Authored {
+ """The hash of the operation"""
+ hash: Hash!
+ """The author of this object."""
+ author: Person!
+ """The datetime when this operation was issued."""
+ date: Time!
+
+ added: [Label!]!
+ removed: [Label!]!
+} \ No newline at end of file
diff --git a/graphql/root.graphql b/graphql/root.graphql
new file mode 100644
index 00000000..fd8419fa
--- /dev/null
+++ b/graphql/root.graphql
@@ -0,0 +1,38 @@
+scalar Time
+scalar Label
+scalar Hash
+
+"""Information about pagination in a connection."""
+type PageInfo {
+ """When paginating forwards, are there more items?"""
+ hasNextPage: Boolean!
+ """When paginating backwards, are there more items?"""
+ hasPreviousPage: Boolean!
+ """When paginating backwards, the cursor to continue."""
+ startCursor: String!
+ """When paginating forwards, the cursor to continue."""
+ endCursor: String!
+}
+
+"""An object that has an author."""
+interface Authored {
+ """The author of this object."""
+ author: Person!
+}
+
+type Query {
+ defaultRepository: Repository
+ repository(id: String!): Repository
+}
+
+type Mutation {
+ newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug!
+
+ addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug!
+ changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug!
+ open(repoRef: String, prefix: String!): Bug!
+ close(repoRef: String, prefix: String!): Bug!
+ setTitle(repoRef: String, prefix: String!, title: String!): Bug!
+
+ commit(repoRef: String, prefix: String!): Bug!
+} \ No newline at end of file
diff --git a/graphql/schema.graphql b/graphql/schema.graphql
deleted file mode 100644
index fefe895b..00000000
--- a/graphql/schema.graphql
+++ /dev/null
@@ -1,332 +0,0 @@
-scalar Time
-scalar Label
-scalar Hash
-
-"""Information about pagination in a connection."""
-type PageInfo {
- """When paginating forwards, are there more items?"""
- hasNextPage: Boolean!
- """When paginating backwards, are there more items?"""
- hasPreviousPage: Boolean!
- """When paginating backwards, the cursor to continue."""
- startCursor: String!
- """When paginating forwards, the cursor to continue."""
- endCursor: String!
-}
-
-"""Represents an person in a git object."""
-type Person {
- """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 string containing the either the name of the person, its login or both"""
- displayName: String!
-
- """An url to an avatar"""
- avatarUrl: String
-}
-
-type CommentConnection {
- edges: [CommentEdge!]!
- nodes: [Comment!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type CommentEdge {
- cursor: String!
- node: Comment!
-}
-
-"""Represents a comment on a bug."""
-type Comment implements Authored {
- """The author of this comment."""
- author: Person!
-
- """The message of this comment."""
- message: String!
-
- """All media's hash referenced in this comment"""
- files: [Hash!]!
-}
-
-enum Status {
- OPEN
- CLOSED
-}
-
-"""An object that has an author."""
-interface Authored {
- """The author of this object."""
- author: Person!
-}
-
-type OperationConnection {
- edges: [OperationEdge!]!
- nodes: [Operation!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type OperationEdge {
- cursor: String!
- node: Operation!
-}
-
-"""An item in the timeline of events"""
-interface TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
-}
-
-"""An operation applied to a bug."""
-interface Operation {
- """The hash of the operation"""
- hash: Hash!
- """The operations author."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-}
-
-type CreateOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- title: String!
- message: String!
- files: [Hash!]!
-}
-
-type SetTitleOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- title: String!
- was: String!
-}
-
-type AddCommentOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- message: String!
- files: [Hash!]!
-}
-
-type EditCommentOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- target: Hash!
- message: String!
- files: [Hash!]!
-}
-
-type SetStatusOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- status: Status!
-}
-
-type LabelChangeOperation implements Operation & Authored {
- """The hash of the operation"""
- hash: Hash!
- """The author of this object."""
- author: Person!
- """The datetime when this operation was issued."""
- date: Time!
-
- added: [Label!]!
- removed: [Label!]!
-}
-
-type TimelineItemConnection {
- edges: [TimelineItemEdge!]!
- nodes: [TimelineItem!]!
- pageInfo: PageInfo!
- totalCount: Int!
-}
-
-type TimelineItemEdge {
- cursor: String!
- node: TimelineItem!
-}
-
-type CommentHistoryStep {
- message: String!
- date: Time!
-}
-
-type CreateTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- message: String!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-type AddCommentTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- message: String!
- files: [Hash!]!
- createdAt: Time!
- lastEdit: Time!
- edited: Boolean!
- history: [CommentHistoryStep!]!
-}
-
-type LabelChangeTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- added: [Label!]!
- removed: [Label!]!
-}
-
-type SetStatusTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- status: Status!
-}
-
-type SetTitleTimelineItem implements TimelineItem {
- """The hash of the source operation"""
- hash: Hash!
- author: Person!
- date: Time!
- title: String!
- was: String!
-}
-
-"""The connection type for Bug."""
-type BugConnection {
- """A list of edges."""
- edges: [BugEdge!]!
- nodes: [Bug!]!
- """Information to aid in pagination."""
- pageInfo: PageInfo!
- """Identifies the total count of items in the connection."""
- totalCount: Int!
-}
-
-"""An edge in a connection."""
-type BugEdge {
- """A cursor for use in pagination."""
- cursor: String!
- """The item at the end of the edge."""
- node: Bug!
-}
-
-type Bug {
- id: String!
- humanId: String!
- status: Status!
- title: String!
- labels: [Label!]!
- author: Person!
- createdAt: Time!
- lastEdit: Time!
-
- comments(
- """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
- ): CommentConnection!
-
- timeline(
- """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
- ): TimelineItemConnection!
-
- 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!
-}
-
-type Repository {
- 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
-}
-
-type Query {
- defaultRepository: Repository
- repository(id: String!): Repository
-}
-
-type Mutation {
- newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug!
-
- addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug!
- changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug!
- open(repoRef: String, prefix: String!): Bug!
- close(repoRef: String, prefix: String!): Bug!
- setTitle(repoRef: String, prefix: String!, title: String!): Bug!
-
- commit(repoRef: String, prefix: String!): Bug!
-}
diff --git a/graphql/timeline.graphql b/graphql/timeline.graphql
new file mode 100644
index 00000000..75f72305
--- /dev/null
+++ b/graphql/timeline.graphql
@@ -0,0 +1,86 @@
+"""An item in the timeline of events"""
+interface TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
+}
+
+"""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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ 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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ 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 {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ added: [Label!]!
+ removed: [Label!]!
+}
+
+"""SetStatusTimelineItem is a TimelineItem that represent a change in the status of a bug"""
+type SetStatusTimelineItem implements TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ status: Status!
+}
+
+"""LabelChangeTimelineItem is a TimelineItem that represent a change in the title of a bug"""
+type SetTitleTimelineItem implements TimelineItem {
+ """The hash of the source operation"""
+ hash: Hash!
+ author: Person!
+ date: Time!
+ title: String!
+ was: String!
+} \ No newline at end of file