Tags:
create new tag
view all tags

Feature Proposals » TWiki::Func::getRevisionInfo() to take $meta as an argument

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
AcceptedProposal HideyoImazu AcceptedBy7DayFeedbackPeriod 2020-01-24   TWikibug:Item7882 LimaRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

Motivation

Currently, TWiki::Func::getRevisionInfo() takes ( $web, $topic, $rev, $attachment ) as arguments -- not taking $meta. Because of that, even if $meta is already there, the topic needs to be read and parsed.

Description and Documentation

By taking $meta as the 5th argument (optional), TWiki::Func::getRevisionInfo() can do its job without reading and parsing the topic if it's provided. As a result, getRevisionInfo() will take ( $web, $topic, $rev, $attachment, $meta ) as arguments. This proposal aims to replace FuncGetTopicLatestRevTime.

Examples

Impact

Implementation

-- Contributors: Hideyo Imazu - 2020-01-24

Discussion

This looks good. Implementation is very easy since Render::renderRevisionInfo() already accepts $meta

-- Peter Thoeny - 2020-01-26

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2020-01-31 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.