Edgewall Software

Opened 16 years ago

Last modified 11 years ago

#2635 closed enhancement

wiki link to go to wiki differences — at Version 9

Reported by: Dave Matthews Owned by: Christian Boos
Priority: normal Milestone: 0.12
Component: wiki system Version: 0.9.3
Severity: normal Keywords:
Cc: daved@…, Christian Boos Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Currently you can refer to particular versions of wiki pages using #, e.g. TracLinks#16 (although this is not documented in TracLinks and is inconsistent with the @ syntax now used for source links). However, I am not aware of any way to link to the changes made to a wiki page at a particular version. This would be useful to be able to refer to from tickets in the same way that we can already refer to source changesets.


Note: I think what's really important in this request is the ability to identify some particular change to a wiki page.

Therefore I think that being able to specify a given revision (using "@", not "#" as written above) is what really matters here.

Change History (9)

comment:1 by anonymous, 16 years ago

Type: defectenhancement

comment:2 by Matthew Good, 16 years ago

The example above of TracLinks#16 only puts an anchor on the URL, it doesn't link to that version.

comment:3 by Dave Matthews, 16 years ago

Yes, of course - sorry, don't know where I got that idea. In that case, the ability to link to particular versions of wiki pages could be useful as well.

comment:4 by Christian Boos, 16 years ago

Keywords: tracobject added
Owner: changed from Jonas Borgström to Christian Boos

Being able to link to a specific wiki version (e.g. WikiStart@13) would be a good idea.

But actually there would be two possible targets:

  • the object as it looked like at a specific version (e.g. WikiStart@13, the wiki page as it was at version 13, what you can see here
  • the actual difference from one version to the previous one (e.g. WikStart@13:12 from version 13 to version 12, what you can see here. For an alternative visualization proposal, see the discussion in #2165.

See also #2168 for a proposal for adding more uniform treatment to TracLinks.

As part of the TracObjectModelProposal, I think that every Trac Object could be seen as a versioned resource, and in this case, it should be possible to address that history in a consistent way (both for the version retrieval and the view of the change).

comment:5 by stevegt, 16 years ago

I'm going to need to implement the WikiStart@13 syntax to support http://trac-hacks.org/wiki/WikiWorkflowPatch — any preferences as to whether I include it in that patch, or as a separate standalone plugin?

(Note: restoring original comment content, which was modified by mistake - I edited the comment:4 actually but it was saved as a new version of comment:5 :-/ )

Last edited 12 years ago by Christian Boos (previous) (diff)

comment:6 by stevegt@…, 16 years ago

After poking at this for a while, I'm beginning to thing that WikiStart.13 might be a much better syntax; the application I'm working on will cause that string to be seen and typed a lot, often by less-technical folks. While I agree there's precedent for that '@' sign, it's ugly as heck… I'm tentatively planning to implement this as WikiStart.13 and WikiStart.13:14 instead; still not decided on patch or plugin.

comment:7 by anonymous, 16 years ago

s/thing/think/

comment:8 by anonymous, 16 years ago

Cc: daved@… added

comment:9 by Christian Boos, 16 years ago

Description: modified (diff)
Keywords: tracobject removed
Milestone: 0.11
Status: newassigned
Summary: Can't create wiki link to wiki differenceswiki link to go to wiki differences

Now with r4370, the syntax proposed in comment:4 is implemented.

With this and the ability to quickly go to the actual changes from the displayed version using the Last Change link, I don't think it's still worth to have an explicit TracLinks syntax for accessing the differences directly… this seems a bit overkill.

Now, what can eventually be adapted is what should we preferably show when clicking on a "WikiStart@2" link: that given version (as it is currently done in r4370) or the diffs from that version to the previous one? In either case, the other view is one click away…

So let me know if you prefer the alternative or if things are now OK like that.

(Sorry stevegt about the choice of "@" over ".": I favored consistency. Besides, this keeps open the possibility that one day we'll support digits and dots in WikiPageNames, i.e. #425)

Note: See TracTickets for help on using tickets.