EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment)
(author identity.Interface, unixTime int64, body string, metadata map[string]string)
| 163 | |
| 164 | // EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment) |
| 165 | func (c *BugCache) EditCreateCommentRaw(author identity.Interface, unixTime int64, body string, metadata map[string]string) (entity.CombinedId, *bug.EditCommentOperation, error) { |
| 166 | c.mu.Lock() |
| 167 | commentId, op, err := bug.EditCreateComment(c.entity, author, unixTime, body, nil, metadata) |
| 168 | c.mu.Unlock() |
| 169 | if err != nil { |
| 170 | return entity.UnsetCombinedId, nil, err |
| 171 | } |
| 172 | return commentId, op, c.notifyUpdated() |
| 173 | } |
| 174 | |
| 175 | func (c *BugCache) EditComment(target entity.CombinedId, message string) (*bug.EditCommentOperation, error) { |
| 176 | author, err := c.getUserIdentity() |
no test coverage detected