Ticket #27 (closed enhancement: fixed)
Opened 8 years ago
Last modified 8 years ago
Attaching files to tickets [merge]
| Reported by: | jonas | Owned by: | rocky |
|---|---|---|---|
| Priority: | highest | Milestone: | 0.7 |
| Component: | ticket system | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
It should be possible to attach files (for example: patches and screenshots) to tickets.
Attachments
Change History
comment:1 Changed 8 years ago by jonas
comment:2 Changed 8 years ago by daniel
- Severity changed from normal to major
- Version set to 2.0
comment:3 Changed 8 years ago by daniel
- Milestone set to 1.0
- Version changed from 2.0 to devel
comment:4 Changed 8 years ago by daniel
- Severity changed from major to enhancement
comment:5 Changed 8 years ago by jonas
- Milestone changed from 1.0 to 0.7
comment:6 Changed 8 years ago by daniel
- Priority changed from high to highest
comment:7 Changed 8 years ago by rocky
- Owner changed from jonas to rocky
- Status changed from new to assigned
This is nearing completion. All work for this feature is being done in the /branches/rocky-dev/features/ticket_attachment_support-based_on_trunk branch.
comment:8 Changed 8 years ago by rocky
Outstanding items to complete with this are:
1) Change use of TRAC_REPOS to TRAC_ENV
2) Switch from camelcase to more typical python conventions
3) Change path usage to use os.path.join
comment:9 Changed 8 years ago by rocky
- Summary changed from Attaching files to tickets to Attaching files to tickets [merge]
Outstanding items have been completed.
comment:10 Changed 8 years ago by jonas
Merged in [409].
We still need to add a max size limit before closing this ticket.
comment:11 Changed 8 years ago by daniel
Also, attaching another file with the same name as an existing attachment, overwrites the existing file.
The proper way is probably to append '.N' to the name where N is a sequence number. If the file has a suffix (like .png), the sequence number should be added before the prefix.
Example:
- Attach test.png
- Attach another file named test.png => renamed test.1.png
- Attach test
- Attach another file named test => renamed test.1
comment:12 Changed 8 years ago by rocky
So what we're basically talking about adding here are the following..
- Add default max size limit
- Allow max size limit to be configurable
- Attachments added with same name should get auto-numbered so they don't overwrite
- Ability to delete attachments
comment:13 Changed 8 years ago by jonas
max size limit added now.
Things left todo:
- auto-number files to avoid overwrites
- delete support.
comment:14 Changed 8 years ago by jonas
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in [445].



This should probably be implemented to work with both tickets and wiki pages.