BugExcerpt hold a subset of the bug values to be able to sort and filter bugs efficiently without having to read and compile each raw bugs.
| 19 | // BugExcerpt hold a subset of the bug values to be able to sort and filter bugs |
| 20 | // efficiently without having to read and compile each raw bugs. |
| 21 | type BugExcerpt struct { |
| 22 | id entity.Id |
| 23 | |
| 24 | CreateLamportTime lamport.Time |
| 25 | EditLamportTime lamport.Time |
| 26 | CreateUnixTime int64 |
| 27 | EditUnixTime int64 |
| 28 | |
| 29 | AuthorId entity.Id |
| 30 | Status common.Status |
| 31 | Labels []common.Label |
| 32 | Title string |
| 33 | LenComments int |
| 34 | Actors []entity.Id |
| 35 | Participants []entity.Id |
| 36 | |
| 37 | CreateMetadata map[string]string |
| 38 | } |
| 39 | |
| 40 | func NewBugExcerpt(b *BugCache) *BugExcerpt { |
| 41 | snap := b.Snapshot() |
nothing calls this directly
no outgoing calls
no test coverage detected