diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-30 17:15:54 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-30 17:15:54 +0200 |
commit | 7f86898ef9a8f9e866835ece3c9824a8edc58036 (patch) | |
tree | 5c5733c9272f3477317935bde6ecb4680276b717 /graphql/schema.graphql | |
parent | d71bb7dd7632780cf5aad5fda84027fa03a9d0f0 (diff) | |
download | git-bug-7f86898ef9a8f9e866835ece3c9824a8edc58036.tar.gz |
bug: use deditated type for all TimelineItem
Diffstat (limited to 'graphql/schema.graphql')
-rw-r--r-- | graphql/schema.graphql | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 5c0d759f..73e457c5 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -95,7 +95,7 @@ type CreateOperation implements Operation & Authored { files: [Hash!]! } -type SetTitleOperation implements Operation & Authored & TimelineItem { +type SetTitleOperation implements Operation & Authored { hash: Hash! author: Person! date: Time! @@ -112,7 +112,7 @@ type AddCommentOperation implements Operation & Authored { files: [Hash!]! } -type SetStatusOperation implements Operation & Authored & TimelineItem { +type SetStatusOperation implements Operation & Authored { hash: Hash! author: Person! date: Time! @@ -120,7 +120,7 @@ type SetStatusOperation implements Operation & Authored & TimelineItem { status: Status! } -type LabelChangeOperation implements Operation & Authored & TimelineItem { +type LabelChangeOperation implements Operation & Authored { hash: Hash! author: Person! date: Time! @@ -157,7 +157,7 @@ type CreateTimelineItem implements TimelineItem { history: [CommentHistoryStep!]! } -type CommentTimelineItem implements TimelineItem { +type AddCommentTimelineItem implements TimelineItem { hash: Hash! author: Person! message: String! @@ -168,6 +168,29 @@ type CommentTimelineItem implements TimelineItem { history: [CommentHistoryStep!]! } +type LabelChangeTimelineItem implements TimelineItem { + hash: Hash! + author: Person! + date: Time! + added: [Label!]! + removed: [Label!]! +} + +type SetStatusTimelineItem implements TimelineItem { + hash: Hash! + author: Person! + date: Time! + status: Status! +} + +type SetTitleTimelineItem implements TimelineItem { + hash: Hash! + author: Person! + date: Time! + title: String! + was: String! +} + """The connection type for Bug.""" type BugConnection { """A list of edges.""" |