Tags:
create new tag
, view all tags
To be able to properly support the action tracker, I need to be able to determine the rev number of a topic at a given date in the past. This seems to me to be a generally useful thing to do - for example, you need to be able to do it for audit purposes, or to diff agaist a given date in the past. So to support this, I propose to add the following function (alrready written & tested) to Store, and thence to Func:

=pod

ObjectMethod getRevisionAtTime( $web, $topic, $time ) -> $rev

  • $web - web for topic
  • $topic - topic
  • $time - time (in epoch secs) for the rev

Get the revision number of a topic at a specific time. Returns a single-digit rev number or undef if it couldn't be determined (either because the topic isn't that old, or there was a problem)

=cut

-- CrawfordCurrie - 29 Mar 2005

after Dakar, this should be added to the mythical topic object.

$topic->getRevisionAtTime($time) -> $rev

-- SvenDowideit - 29 Mar 2005

There are dozens of things that need to be added to the fabled beast, should it ever be born.

Added GetRevisionTime as per spec above.

-- CrawfordCurrie - 30 Mar 2005

actually, should the name be more specific? it is returning a revision id, rather than the revision itself

- maybe it should be getRevisionInfo() -> \@revInfo, but smile

getRevisionIdAtTime / getRevisionNumberAtTime?

-- SvenDowideit - 31 Mar 2005

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-03-31 - SvenDowideit
 
  • 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.