Skip to content
Snippets Groups Projects
Unverified Commit 6ed4b8b7 authored by Michael Muré's avatar Michael Muré
Browse files

webui: adapt to CombinedId

parent 45b04351
No related branches found
No related tags found
No related merge requests found
Showing
with 13 additions and 3 deletions
......@@ -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()
......
......@@ -2,6 +2,7 @@
query CurrentIdentity {
repository {
name
userIdentity {
...Identity
}
......
......@@ -2,6 +2,7 @@
query GetUserById($userId: String!) {
repository {
name
identity(prefix: $userId) {
...Identity
}
......
......@@ -2,6 +2,7 @@
query GetBug($id: String!) {
repository {
name
bug(prefix: $id) {
...Bug
}
......
......@@ -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) => {
......
......@@ -3,6 +3,7 @@
query MessageHistory($bugIdPrefix: String!) {
repository {
name
bug(prefix: $bugIdPrefix) {
timeline {
comments: nodes {
......
......@@ -6,6 +6,7 @@
query Timeline($id: String!, $first: Int = 10, $after: String) {
repository {
name
bug(prefix: $id) {
timeline(first: $first, after: $after) {
nodes {
......
query GetBugsByUser($query: String) {
repository {
name
allBugs(query: $query) {
nodes {
id
......
......@@ -4,6 +4,7 @@ query GetUserStatistic(
$actionQuery: String!
) {
repository {
name
authored: allBugs(query: $authorQuery) {
totalCount
}
......
query BugCount($query: String) {
repository {
name
bugs: allBugs(query: $query) {
totalCount
}
......
query ListIdentities {
repository {
name
allIdentities {
nodes {
id
......
query ListLabels {
repository {
name
validLabels {
nodes {
name
......
......@@ -8,6 +8,7 @@ query ListBugs(
$query: String
) {
repository {
name
bugs: allBugs(
first: $first
last: $last
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment