diff options
Diffstat (limited to 'cache/bug_excerpt.go')
-rw-r--r-- | cache/bug_excerpt.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go index 631c13cb..6a9e7f75 100644 --- a/cache/bug_excerpt.go +++ b/cache/bug_excerpt.go @@ -26,6 +26,7 @@ type BugExcerpt struct { CreateUnixTime int64 EditUnixTime int64 + AuthorId entity.Id Status bug.Status Labels []bug.Label Title string @@ -33,12 +34,6 @@ type BugExcerpt struct { Actors []entity.Id Participants []entity.Id - // If author is identity.Bare, LegacyAuthor is set - // If author is identity.Identity, AuthorId is set and data is deported - // in a IdentityExcerpt - LegacyAuthor LegacyAuthorExcerpt - AuthorId entity.Id - CreateMetadata map[string]string } @@ -94,11 +89,6 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt { switch snap.Author.(type) { case *identity.Identity, *IdentityCache: e.AuthorId = snap.Author.Id() - case *identity.Bare: - e.LegacyAuthor = LegacyAuthorExcerpt{ - Login: snap.Author.Login(), - Name: snap.Author.Name(), - } default: panic("unhandled identity type") } |