MichaelMure / git-bug

Distributed, offline-first bug tracker embedded in git, with bridges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to delete a comment

martinlindhe opened this issue · comments

I would like to "delete" a comment.

In the sense of marking it as deleted, so that in it's place, i would see "Comment deleted by Name" rather than the content.

If i try to edit the comment and remove it's text, i get "Empty message, aborting" in termui.

If i do the same in the webui, the "update comment" button gets grayed out.

Currently I work around this by editing comment and replacing content with ".".

That would be a great addition. That said, by the nature of git-bug keeping a full history, a deleted comment could still be "retrieved from the past", a large difference with centralized bugtrackers. In that sense, we might as well keep having the full history in the UIs.

Would you like giving it a try? It should be easy enough as that would be adding another operation type very similar to EditCommentOperation.

That would be a great addition. That said, by the nature of git-bug keeping a full history, a deleted comment could still be "retrieved from the past", a large difference with centralized bugtrackers. In that sense, we might as well keep having the full history in the UIs.

Yea, not really deleting just marking comments as "deleted".

I imagine in the web ui for example, you could just list the deletion as "comment marked as deleted" in the change history, where the older entry is the full text of the comment.

Would you like giving it a try? It should be easy enough as that would be adding another operation type very similar to EditCommentOperation.

I'm tempted but just started evaluating your software in this other project I'm knee deep in at the moment. I'll keep subscribed and maybe I'll get back to it