aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-10-14 17:14:12 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-10-15 08:34:09 +0000
commitdfbcd988bf48a16945a9181a013e0182897d65a3 (patch)
tree9623f04e758d3089c861972f6b853ca80a1bcfed /dashboard
parentf7ecad883569fcd9104d1296a9020cc88cbf4bc7 (diff)
dashboard/api: add "Link" to link fields
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/api/api.go8
-rw-r--r--dashboard/app/public_json_api.go8
2 files changed, 8 insertions, 8 deletions
diff --git a/dashboard/api/api.go b/dashboard/api/api.go
index 36c61b040..ec5e5a508 100644
--- a/dashboard/api/api.go
+++ b/dashboard/api/api.go
@@ -30,16 +30,16 @@ type Bug struct {
type Crash struct {
Title string `json:"title"`
- SyzReproducer string `json:"syz-reproducer,omitempty"`
- CReproducer string `json:"c-reproducer,omitempty"`
- KernelConfig string `json:"kernel-config,omitempty"`
+ SyzReproducerLink string `json:"syz-reproducer,omitempty"`
+ CReproducerLink string `json:"c-reproducer,omitempty"`
+ KernelConfigLink string `json:"kernel-config,omitempty"`
KernelSourceGit string `json:"kernel-source-git,omitempty"`
KernelSourceCommit string `json:"kernel-source-commit,omitempty"`
SyzkallerGit string `json:"syzkaller-git,omitempty"`
SyzkallerCommit string `json:"syzkaller-commit,omitempty"`
CompilerDescription string `json:"compiler-description,omitempty"`
Architecture string `json:"architecture,omitempty"`
- CrashReport string `json:"crash-report-link,omitempty"`
+ CrashReportLink string `json:"crash-report-link,omitempty"`
}
type Commit struct {
diff --git a/dashboard/app/public_json_api.go b/dashboard/app/public_json_api.go
index 62faefef0..05d0de441 100644
--- a/dashboard/app/public_json_api.go
+++ b/dashboard/app/public_json_api.go
@@ -38,16 +38,16 @@ func getExtAPIDescrForBugPage(bugPage *uiBugPage) *api.Bug {
for _, crash := range bugPage.Crashes.Crashes {
res = append(res, api.Crash{
Title: crash.Title,
- SyzReproducer: crash.ReproSyzLink,
- CReproducer: crash.ReproCLink,
- KernelConfig: crash.KernelConfigLink,
+ SyzReproducerLink: crash.ReproSyzLink,
+ CReproducerLink: crash.ReproCLink,
+ KernelConfigLink: crash.KernelConfigLink,
KernelSourceGit: crash.KernelCommitLink,
KernelSourceCommit: crash.KernelCommit,
SyzkallerGit: crash.SyzkallerCommitLink,
SyzkallerCommit: crash.SyzkallerCommit,
// TODO: add the CompilerDescription
// TODO: add the Architecture
- CrashReport: crash.ReportLink,
+ CrashReportLink: crash.ReportLink,
})
}
return res