Skip to content

Commit a2ecd15

Browse files
author
Andreas Kusalananda Kähäri
authored
Merge pull request #859 from NBISweden/1.0.12
Release 1.0.12
2 parents 8b3f495 + 4ef14ad commit a2ecd15

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

backend/api/issueSearchHandler.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ func issueSearchHandler(c *fiber.Ctx) error {
3636

3737
searchResponse := struct {
3838
Results []struct {
39-
Id int `json:"id"`
40-
Type string `json:"type"`
41-
Title string `json:"title"`
39+
Id int `json:"id"`
40+
Type string `json:"type"`
41+
Title string `json:"title"`
42+
Project Project `json:"project"`
4243
} `json:"results"`
4344
}{}
4445

@@ -73,6 +74,7 @@ func issueSearchHandler(c *fiber.Ctx) error {
7374
issue := Issue{
7475
Id: issue.Id,
7576
Subject: issuesResponse.Issues[0].Subject,
77+
Project: issuesResponse.Issues[0].Project,
7678
}
7779
foundIssues = append(foundIssues, issue)
7880
}

backend/api/models.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ type user struct {
44
Login string `json:"login"`
55
}
66

7+
type Project struct {
8+
Id int `json:"id"`
9+
}
10+
711
type Issue struct {
8-
Id int `json:"id"`
9-
Subject string `json:"subject"`
12+
Id int `json:"id"`
13+
Subject string `json:"subject"`
14+
Project Project `json:"project"`
1015
}
1116

1217
type IssueWithTitle struct {

frontend/src/components/QuickAdd.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export const QuickAdd = ({
126126
messages: "0",
127127
// projects: "0" produces weird results.
128128
open_issues: "1",
129+
projects: "1",
129130
};
130131

131132
const foundIssues: { issues: Issue[] } = await fetch(

0 commit comments

Comments
 (0)