NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11746 for general documentation changes for release 1.1.6. Use Item9693 for docu changes for release 1.2 and 2.0.

Item3537: FormQueryPlugin could use createdate and formatTime

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement Closed Extension FormQueryPlugin  
I suggest adding to FormQueryPlugin functionalities like createdate and formatTime in the DBCacheContrib style.

The documentation should be updated accordingly.

Possible solution

FormQueryPlugin owner please review and comment. I would be happy to check-in and release those changes even though I'm not familiar with that process. Item3525 also needs FormQueryPlugin documentation update. Is there some test code I should run? How?

-- TWiki:Main.StephaneLenclud - 30 Jan 2007

Those are both reasonable changes.

Yes, there are a set of unit tests that are run when you perl build.pl in the extension directory. You have to have BuildContrib pseudo-installed, and Test::Unit installed in your perl.

I'd be happy to run those tests and check in for you, but on on the condition that you:
  1. provide documentation
  2. add at least one unit test for each function point

-- TWiki:Main.CrawfordCurrie - 25 Apr 2007

Has Stephane written unit tests before? It is not easy to learn to set up if you are not a very skilled programmer and you need a little help to get started. I still do not know how it works and I could not write a unit test from scratch.

-- TWiki:Main.KennethLavrsen - 25 Apr 2007

I improved the doc - see http://twiki.org/cgi-bin/view/Codev/TestCasesTutorial

CC

Ok thanks. I won't get a chance to get involved with unit test any time soon I'm afraid.

-- TWiki:Main.StephaneLenclud - 26 Apr 2007

Then the features won't go in any time soon, I'm afraid.

CC

No probs Crawford. At the same time it's only 10 lines change that could easily have been included today as you published a new version of FormQueryPlugin. If the existing unit test are not broken that's already good enough to include those changes right? Then we could leave that bug open so that unit test specific for that functionality could be implemented as soon as I get a chance to do it.

-- TWiki:Main.StephaneLenclud - 27 Apr 2007

I put the formatTime thing in, thanks for the patch. createdate was already there.

-- CrawfordCurrie - 07 Apr 2009

ItemTemplate edit

Summary FormQueryPlugin could use createdate and formatTime
ReportedBy TWiki:Main.StephaneLenclud
Codebase
SVN Range TWiki-4.1.1, Tue, 30 Jan 2007, build 12650
AppliesTo Extension
Component FormQueryPlugin
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins Foswikirev:3382
TargetRelease n/a
ReleasedIn
Topic attachments
I Attachment Action Size Date Who Comment
TableFormat.pm.patchpatch TableFormat.pm.patch manage 0.6 K 30 Jan 2007 - 23:30 StephaneLenclud Adding support for formatTime.
WebDB.pm.patchpatch WebDB.pm.patch manage 0.6 K 30 Jan 2007 - 23:29 StephaneLenclud Adding createdate field.
Topic revision: 07 Apr 2009, CrawfordCurrie
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads