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

 
Topic revision: r4 - 31 Mar 2005 - 09:18:59 - SvenDowideit
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback