It would be neat to support comment edition or removal. A few notes:
require two new Operations
as the data model is immutable, it would not fully erase the previous comment version. While it would not be visible in the UI anymore, it would still be readable through the bug history.
in bug.Snapshot, a proper Timeline needs to be implemented and would replace the current usage of Operations. This Timeline would hold the data that is expected to be displayed in a UI, instead of the raw stream of events
Michael Muré (MichaelMure)
added label
enhancement
each operations can now be back referenced with their hash
add a new EditCommentOperation that edit a previous comment (including the initial comment yield by the CreateOperation)
the Snapshot now hold a Timeline in addition the the raw array of Operation, providing a processed view of the history, ready for each UI to use. In particular, comments now hold their edit history
Left for later: there is no check that the author is allowed to edit the comment. We need crypto signature for that ...