diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-03-31 22:32:35 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-04-04 00:37:57 +0200 |
commit | 2a5fbc4dc988d2eea76fe5e844ccf6425f9386ee (patch) | |
tree | 8e5125a64ff3d54fa304ae758ddbbcc427b368af /graphql/graphql_test.go | |
parent | 5b0a92dea43f467f31a65a6f02e937d285cb0a71 (diff) | |
download | git-bug-2a5fbc4dc988d2eea76fe5e844ccf6425f9386ee.tar.gz |
Expose actors and participants in snapshot and bug excerpt
Append operations authors to each list on Apply() call
Expose actors and participants in graphql
Add actor/participant query filter and documentation
Diffstat (limited to 'graphql/graphql_test.go')
-rw-r--r-- | graphql/graphql_test.go | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index d571ce51..0b522b5e 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -50,6 +50,16 @@ func TestQueries(t *testing.T) { email avatarUrl } + actors { + name + email + avatarUrl + } + participants { + name + email + avatarUrl + } createdAt humanId @@ -112,7 +122,7 @@ func TestQueries(t *testing.T) { } }` - type Person struct { + type Identity struct { Name string `json:"name"` Email string `json:"email"` AvatarUrl string `json:"avatarUrl"` @@ -123,13 +133,15 @@ func TestQueries(t *testing.T) { AllBugs struct { PageInfo models.PageInfo Nodes []struct { - Author Person - CreatedAt string `json:"createdAt"` - HumanId string `json:"humanId"` - Id string - LastEdit string `json:"lastEdit"` - Status string - Title string + Author Identity + Actors []Identity + Participants []Identity + CreatedAt string `json:"createdAt"` + HumanId string `json:"humanId"` + Id string + LastEdit string `json:"lastEdit"` + Status string + Title string Comments struct { PageInfo models.PageInfo @@ -142,7 +154,7 @@ func TestQueries(t *testing.T) { Operations struct { PageInfo models.PageInfo Nodes []struct { - Author Person + Author Identity Date string Title string Files []string |