-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no delete mechanism for attachments #677
Comments
Also when a release is removed? (since that is now a thing 😄 #673 ) |
Actually it looks like the code tries to delete an attachment on deleting a comment. However it doesn't manage to do so. |
Okay so this doesn't trigger the |
change this to below code, then if _, err = sess.Delete(&Comment{
ID: comment.ID,
}); err != nil {
return err
} |
@lunny I will take it. |
@lunny we need to merge this XORM PR first go-xorm/xorm#525 |
These aren't all fixed. |
The user should be presented with the option to delete any / all previously added attachments while editing a release. |
@gmastergreatee You are right! In addition to that, you cannot delete and recreate a release because it also deletes the git tag. One should split this. |
As an additional issue, the attachments remain on disk even after deleting the release itself (see #2618). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
closed by #14130 |
Refering to:
There is no delete mechanism at all for attachments.
attachment.CommentID
andattachment.ReleaseId
of0
. They occur when a user starts creating an issue, uploads an attachment and then closes the browser without submitting.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: