Comment represent a comment in a Bug
| 11 | |
| 12 | // Comment represent a comment in a Bug |
| 13 | type Comment struct { |
| 14 | // combinedId should be the result of entity.CombineIds with the Bug id and the id |
| 15 | // of the Operation that created the comment |
| 16 | combinedId entity.CombinedId |
| 17 | |
| 18 | // targetId is the Id of the Operation that originally created that Comment |
| 19 | targetId entity.Id |
| 20 | |
| 21 | Author identity.Interface |
| 22 | Message string |
| 23 | Files []repository.Hash |
| 24 | |
| 25 | // Creation time of the comment. |
| 26 | // Should be used only for human display, never for ordering as we can't rely on it in a distributed system. |
| 27 | unixTime timestamp.Timestamp |
| 28 | } |
| 29 | |
| 30 | func (c Comment) CombinedId() entity.CombinedId { |
| 31 | if c.combinedId == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected