You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
riggraz opened this issue
Oct 24, 2022
· 1 comment
Labels
discussionIssues or pull requests that need discussion in order to reach an agreementfeatureNew feature or requestrubyIssues that require ruby knowledge and pull requests that update Ruby code
Deleting a parent comment should not result in the deletion of all child comments. In order to avoid that, comment deletion should be a soft delete, so instead of destroying the record in the database just change a flag column on it.
For example, a is_deleted flag could be added to comments, so that when it is false the comment is not deleted, when it is set to true the comment is considered deleted.
The text was updated successfully, but these errors were encountered:
riggraz
added
feature
New feature or request
ruby
Issues that require ruby knowledge and pull requests that update Ruby code
labels
Oct 24, 2022
Is it really necessary? If a comments gets deleted (by author or by administrators) then all its children comments would remain available, but the context given by the deleted parent comment is lost.
discussionIssues or pull requests that need discussion in order to reach an agreementfeatureNew feature or requestrubyIssues that require ruby knowledge and pull requests that update Ruby code
Deleting a parent comment should not result in the deletion of all child comments. In order to avoid that, comment deletion should be a soft delete, so instead of destroying the record in the database just change a flag column on it.
For example, a
is_deleted
flag could be added tocomments
, so that when it isfalse
the comment is not deleted, when it is set totrue
the comment is considered deleted.The text was updated successfully, but these errors were encountered: