cache: also index the first op metadata

This commit is contained in:
Michael Muré 2018-10-01 21:55:41 +02:00
parent 95021a07fd
commit be59fe0d67
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -20,6 +20,8 @@ type BugExcerpt struct {
Status bug.Status
Author bug.Person
Labels []bug.Label
CreateMetadata map[string]string
}
func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
@ -32,6 +34,7 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
Status: snap.Status,
Author: snap.Author,
Labels: snap.Labels,
CreateMetadata: b.FirstOp().AllMetadata(),
}
}