Closed Bug 770397 Opened 13 years ago Closed 13 years ago

Show file attachments

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: openjck, Assigned: davidwalsh)

References

Details

(Whiteboard: u=user c=wiki p= t=2012-07-09)

We have several bugs related to file attachments (see bug 766741 and its dependencies), but nothing that explicitly mentions showing existing file attachments. Is this already done? I would test myself but -new is veeeery slow right now.
Blocks: 770383
Assignee: nobody → dwalsh
Whiteboard: u=user c=wiki s=2012-07-18 p=
Whiteboard: u=user c=wiki s=2012-07-18 p= → u=user c=wiki p=
Commit pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/7ab4ef2ef44d317a76e5406aa0af99e04f2a6273 Adjust the 'attachments' property of Documents to find all files. This uses pretty simple logic to scan a Document's HTML for both MindTouch and kuma file URL patterns, and then uses Q objects to build a correct query to return the corresponding Attachment objects. If no file URLs are found in the Document, it'll return an empty Attachment queryset. fix bug 770397 - Displaying attachments table under document and tags fix bug 770563 - Show tags and file attachments regardless of TOC Bugfix: actually wrap the file queries in Q objects. Changing file URL method Removing unnecessary filesize() method from AttachmentRevisions model Fixing merge conflict
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: u=user c=wiki p= → u=user c=wiki p= t=2012-07-09
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.