From ca69c785c2ed2872a7c1a427fc446a9d363a984f Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 28 Jun 2023 11:14:53 +0200 Subject: dashboard/app: merge dashapi.Commit and uiCommit 3/6 fields on uiCommit currently used --- dashboard/app/main.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 6fd406b6e..e971dfa3a 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -220,15 +220,6 @@ type uiBuild struct { KernelConfigLink string } -type uiCommit struct { - Hash string - Title string - Link string - Author string - CC []string - Date time.Time -} - type uiBugDiscussion struct { Subject string Link string @@ -314,7 +305,7 @@ type uiBug struct { Link string ExternalLink string CreditEmail string - Commits []*uiCommit + Commits []*dashapi.Commit PatchedOn []string MissingOn []string NumManagers int @@ -1581,7 +1572,7 @@ func createUIBug(c context.Context, bug *Bug, state *ReportingState, managers [] for i, com := range bug.Commits { cfg := config.Namespaces[bug.Namespace] info := bug.getCommitInfo(i) - uiBug.Commits = append(uiBug.Commits, &uiCommit{ + uiBug.Commits = append(uiBug.Commits, &dashapi.Commit{ Hash: info.Hash, Title: com, Link: vcs.CommitLink(cfg.Repos[0].URL, info.Hash), -- cgit mrf-deployment