Tags:
create new tag
, view all tags

Feature Proposal: Making clear attachments are versioned

Motivation

Quite a few users, even long time users, are not aware of the fact that attachments are versioned.

Description and Documentation

This proposal introduces a new row to the attachment table displayed at the bottom of a topic. The new column is titled "History" and has hyperlinks to retrieve past versions of an attachment. This not only makes clear that attachments are versioned, but also is handy retrieve past versions.

On each row, the History column shows the latest version (not a hyperlink) and at most $TWiki::cfg{NumberOfRevisions} of the past versions (hyperlinks to retrieve corresponding versions). This is similar to how a topic's history is shown at the action buttons area.

There are cases where an attachment has no versions. The attachments of the TWiki06x00 web topics are as such. For those attachments, nothing is shown on the History column.

Examples

attachment-past-version-links.png

attachments-no-versions.png

Impact

WhatDoesItAffect: Usability

Implementation

-- Contributors: HideyoImazu - 2011-12-02

templates/attachtables.tmpl

The following blocks are to be modified.
  • ATTACH:files:header(toprow)
  • ATTACH:files:row(basic)
    • It will have %A_HISTORY% to show the version history of the attachment.

lib/TWiki/Attach.pm

The following function is to be modified.
  • _expandAttrs()

Discussion

Simple proposal I support. Small disadvantage though is that it adds a bit more clutter to the attachment table, but I think that is OK.

Question is what to do if there are more then a few revisions. This could be solved by limiting to the 4 latest revisions and a ... link pointing to the attachment screen of that attachment if there are more than 4 revisions.

The clock for 7 day review period for acceptance starts once the CommittedDeveloper and DateOfCommitment is filled out.

-- PeterThoeny - 2011-12-02

I agree with the way to handle many revisions. It would be like r10 < r9 < r8 ... on the bottom toolbar.

-- HideyoImazu - 2011-12-16

Accepted now based on 7 day feedback period rule.

-- PeterThoeny - 2012-01-02

Feature looks good in SVN trunk!

-- PeterThoeny - 2012-04-16

Once finished flip the state here and in TWikibug:Item6826.

-- PeterThoeny - 2012-04-16

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng attachment-past-version-links.png r1 manage 8.2 K 2012-04-16 - 02:06 HideyoImazu  
PNGpng attachments-no-versions.png r1 manage 12.2 K 2012-04-16 - 04:49 HideyoImazu  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2012-06-29 - HideyoImazu
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.