diff options
Diffstat (limited to 'cache/bug_excerpt.go')
-rw-r--r-- | cache/bug_excerpt.go | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go index daf89c4f..d3645322 100644 --- a/cache/bug_excerpt.go +++ b/cache/bug_excerpt.go @@ -17,18 +17,13 @@ type BugExcerpt struct { CreateUnixTime int64 EditUnixTime int64 - Status bug.Status - Author AuthorExcerpt - Labels []bug.Label + Status bug.Status + AuthorId string + Labels []bug.Label CreateMetadata map[string]string } -type AuthorExcerpt struct { - Name string - Login string -} - func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt { return &BugExcerpt{ Id: b.Id(), @@ -37,12 +32,9 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt { CreateUnixTime: b.FirstOp().GetUnixTime(), EditUnixTime: snap.LastEditUnix(), Status: snap.Status, - Author: AuthorExcerpt{ - Login: snap.Author.Login(), - Name: snap.Author.Name(), - }, - Labels: snap.Labels, - CreateMetadata: b.FirstOp().AllMetadata(), + AuthorId: snap.Author.Id(), + Labels: snap.Labels, + CreateMetadata: b.FirstOp().AllMetadata(), } } |