Opened 11 years ago
Closed 10 years ago
#11542 closed enhancement (fixed)
Deleting a resource should warn that attachments will also be deleted
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.1.3 |
Component: | general | Version: | 1.0-stable |
Severity: | normal | Keywords: | attachment |
Cc: | Branch: | ||
Release Notes: |
List of attachments is shown on the wiki, ticket and milestone delete pages, along with a warning that the attachments will be deleted if the resource is deleted. |
||
API Changes: | |||
Internal Changes: |
Description
Specifically, when deleting a wiki page, the wiki delete page should list the attachments that will be deleted and warn that the files are not recoverable after the parent resource is deleted.
The same behavior should probably also be applied to the Milestone and Ticket resources.
Attachments (1)
Change History (13)
follow-up: 2 comment:1 by , 10 years ago
Keywords: | attachment added |
---|
follow-up: 3 comment:2 by , 10 years ago
Replying to psuter:
Deleting a milestone does actually not seem to delete the attachments so far. (Is this a defect? Perhaps this should be changed in a separate ticket first.)
Oh, that's so bad. Trac 0.12.5 has the issue. We should fix it on 0.12-stable. Please create a new ticket.
comment:3 by , 10 years ago
by , 10 years ago
Attachment: | 20141213T105005.png added |
---|
comment:4 by , 10 years ago
I didn't use list_of_attachments.html because it seems better to present just a simple list of attachments without extra data to clutter the presentation.
If the changes look good to others I will make similar changes to:
- tags/trac-1.0.2/trac/ticket/templates/milestone_delete.html
- tags/trac-1.0.2/tracopt/ticket/templates/ticket_delete.html
Proposed changes in log:rjollos.git:t11542.
comment:5 by , 10 years ago
Note that deleting a single version might also delete the attachments (if it is the only version).
comment:7 by , 10 years ago
Milestone: | next-stable-1.0.x → 1.1.3 |
---|
comment:8 by , 10 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:9 by , 10 years ago
Release Notes: | modified (diff) |
---|
Refactoring of the wiki_delete.html
and list_of_attachments.html
templates committed in [13533].
comment:10 by , 10 years ago
Revised changes from comment:6 committed to trunk in [13555:13556]. New extraction in [13557].
comment:11 by , 10 years ago
Proposed changes in log:rjollos.git:t11542-delete-attachments-notice.1. Notices have been added to the Milestone and Ticket delete pages, and some HTML validation errors fixed on the Wiki delete page.
comment:12 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed to trunk in [13601:13602].
Deleting a milestone does actually not seem to delete the attachments so far. (Is this a defect? Perhaps this should be changed in a separate ticket first.)
trac/ticket/model.py