diff options
author | Michael Muré <batolettre@gmail.com> | 2019-05-22 23:31:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 23:31:46 +0200 |
commit | 8c263465fbd956f2964bb7cd911b5ea5e8d5a50e (patch) | |
tree | f6ed073888a8610100f5e79aa44d8bca6a76c723 /webui/src/bug | |
parent | 6e20bf0e73862854aea0cd759a880a6b5f473880 (diff) | |
parent | 1c2ee10ce7a32df892604846279c7e199ce0ccea (diff) | |
download | git-bug-8c263465fbd956f2964bb7cd911b5ea5e8d5a50e.tar.gz |
Merge pull request #149 from MichaelMure/sandhose/authored
graphql: Implement `Authored` whenever possible
Diffstat (limited to 'webui/src/bug')
-rw-r--r-- | webui/src/bug/Bug.js | 7 | ||||
-rw-r--r-- | webui/src/bug/LabelChange.js | 8 | ||||
-rw-r--r-- | webui/src/bug/Message.js | 18 | ||||
-rw-r--r-- | webui/src/bug/SetStatus.js | 8 | ||||
-rw-r--r-- | webui/src/bug/SetTitle.js | 8 |
5 files changed, 17 insertions, 32 deletions
diff --git a/webui/src/bug/Bug.js b/webui/src/bug/Bug.js index 1b19149d..ff57dfa9 100644 --- a/webui/src/bug/Bug.js +++ b/webui/src/bug/Bug.js @@ -94,13 +94,10 @@ Bug.fragment = gql` ...Label } createdAt - author { - email - name - displayName - } + ...authored } ${Label.fragment} + ${Author.fragment} `; export default Bug; diff --git a/webui/src/bug/LabelChange.js b/webui/src/bug/LabelChange.js index 1e05b4a6..2405fdb5 100644 --- a/webui/src/bug/LabelChange.js +++ b/webui/src/bug/LabelChange.js @@ -44,11 +44,7 @@ LabelChange.fragment = gql` fragment LabelChange on TimelineItem { ... on LabelChangeTimelineItem { date - author { - name - email - displayName - } + ...authored added { ...Label } @@ -57,7 +53,9 @@ LabelChange.fragment = gql` } } } + ${Label.fragment} + ${Author.fragment} `; export default LabelChange; diff --git a/webui/src/bug/Message.js b/webui/src/bug/Message.js index ff039444..8a6cac09 100644 --- a/webui/src/bug/Message.js +++ b/webui/src/bug/Message.js @@ -70,32 +70,26 @@ Message.createFragment = gql` fragment Create on TimelineItem { ... on CreateTimelineItem { createdAt - author { - name - email - displayName - avatarUrl - } + ...authored edited message } } + + ${Author.fragment} `; Message.commentFragment = gql` fragment AddComment on TimelineItem { ... on AddCommentTimelineItem { createdAt - author { - name - email - displayName - avatarUrl - } + ...authored edited message } } + + ${Author.fragment} `; export default Message; diff --git a/webui/src/bug/SetStatus.js b/webui/src/bug/SetStatus.js index ab591038..eeff1a7b 100644 --- a/webui/src/bug/SetStatus.js +++ b/webui/src/bug/SetStatus.js @@ -26,14 +26,12 @@ SetStatus.fragment = gql` fragment SetStatus on TimelineItem { ... on SetStatusTimelineItem { date - author { - name - email - displayName - } + ...authored status } } + + ${Author.fragment} `; export default SetStatus; diff --git a/webui/src/bug/SetTitle.js b/webui/src/bug/SetTitle.js index d9a09ad5..9ba5a76e 100644 --- a/webui/src/bug/SetTitle.js +++ b/webui/src/bug/SetTitle.js @@ -32,15 +32,13 @@ SetTitle.fragment = gql` fragment SetTitle on TimelineItem { ... on SetTitleTimelineItem { date - author { - name - email - displayName - } + ...authored title was } } + + ${Author.fragment} `; export default SetTitle; |