Opened 21 years ago
Closed 21 years ago
#27 closed enhancement (fixed)
Attaching files to tickets [merge]
Reported by: | Jonas Borgström | Owned by: | rocky |
---|---|---|---|
Priority: | highest | Milestone: | 0.7 |
Component: | ticket system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It should be possible to attach files (for example: patches and screenshots) to tickets.
Attachments (1)
Change History (15)
comment:1 by , 21 years ago
comment:2 by , 21 years ago
Severity: | normal → major |
---|---|
Version: | → 2.0 |
comment:3 by , 21 years ago
Milestone: | → 1.0 |
---|---|
Version: | 2.0 → devel |
comment:4 by , 21 years ago
Severity: | major → enhancement |
---|
comment:5 by , 21 years ago
Milestone: | 1.0 → 0.7 |
---|
comment:6 by , 21 years ago
Priority: | high → highest |
---|
comment:7 by , 21 years ago
Owner: | changed from | to
---|---|
Status: | new → 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 by , 21 years ago
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 by , 21 years ago
Summary: | Attaching files to tickets → Attaching files to tickets [merge] |
---|
Outstanding items have been completed.
comment:10 by , 21 years ago
Merged in [409].
We still need to add a max size limit before closing this ticket.
comment:11 by , 21 years ago
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 by , 21 years ago
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 by , 21 years ago
max size limit added now.
Things left todo:
- auto-number files to avoid overwrites
- delete support.
This should probably be implemented to work with both tickets and wiki pages.