webui: adapt to CombinedId

Michael Muré created

Change summary

cache/repo_cache_bug.go                               | 2 +-
webui/src/components/Identity/CurrentIdentity.graphql | 1 +
webui/src/components/Identity/UserIdentity.graphql    | 1 +
webui/src/pages/bug/BugQuery.graphql                  | 1 +
webui/src/pages/bug/EditCommentForm.tsx               | 3 +--
webui/src/pages/bug/MessageHistory.graphql            | 1 +
webui/src/pages/bug/TimelineQuery.graphql             | 1 +
webui/src/pages/identity/GetBugsByUser.graphql        | 1 +
webui/src/pages/identity/GetUserStatistic.graphql     | 1 +
webui/src/pages/list/FilterToolbar.graphql            | 1 +
webui/src/pages/list/ListIdentities.graphql           | 1 +
webui/src/pages/list/ListLabels.graphql               | 1 +
webui/src/pages/list/ListQuery.graphql                | 1 +
13 files changed, 13 insertions(+), 3 deletions(-)

Detailed changes

cache/repo_cache_bug.go 🔗

@@ -290,7 +290,7 @@ func (c *RepoCache) ResolveComment(prefix string) (*BugCache, entity.CombinedId,
 		}
 
 		for _, comment := range b.Snapshot().Comments {
-			if comment.TargetId().HasPrefix(prefix) {
+			if comment.CombinedId().HasPrefix(prefix) {
 				matchingBugIds = append(matchingBugIds, bugId)
 				matchingBug = b
 				matchingCommentId = comment.CombinedId()

webui/src/pages/bug/EditCommentForm.tsx 🔗

@@ -58,9 +58,8 @@ function EditCommentForm({ bug, comment, onCancel, onPostSubmit }: Props) {
     editComment({
       variables: {
         input: {
-          prefix: bug.id,
+          targetPrefix: comment.id,
           message: message,
-          target: comment.id,
         },
       },
     }).then((result) => {