[279]   Statistic to consider defined ns

Creator: Taggic Created: 2015-03-14 18:22:07
Assigned to: Taggic Modified: 2015-03-14 21:13:30
Severity: Feature Request Feature Request Project: fcon_project
Status: Solved Solved
Product: Rater Begin:
Version: 2015-02-05 Deadline:
Component: Progress in %:
Target version:
Test blocking: YES
Creator Details
Initial description
from JCMWiki:
Would it be possible to add a flag to the stats command so that the set of included ratings could be limited to either a specific namespace (and sub-spaces?) or an id? For instance:
recipes:chili {(rater>id=1|name=chili|type=rate)}
recipes:guacamole {(rater>id=1|name=guacamole|type=rate)}
recipes:gazpacho {(rater>id=1|name=chili|type=rate)}
ideas:mondaybagels {(rater>id=2|name=mondaybagels|type=rate)}
ideas:keurigmachine {(rater>id=2|name=keurigmachine|type=rate)}

Using the standard stat command, the displayed table would include all five pages.

Could the stat command be modified to look like:
{(rater>type=stat|id=2)}
or
{(rater>type=stat|namespace=ideas)}

The displayed table would only include the two ideas pages, mondaybagels and keurigmachine.

Thanks!
Workaround

Comments (work log)
           
The next release will provide a syntax switch for namespace definition. The namespace have to be provided fully qualified. Furthermore you can define a dedicated page. This will provide the same result as switch localstat but can be used on a different page than the rater objects are located.

Syntax:

{(rater>id=7|type=stat|ns=rater:tst)}

Statistic will be provided of all rater object of the given namespace and sub-namesaces.

{(rater>id=7|type=stat|ns=rater:tst:raterstat.txt)}

Statistic will consider rater objects only of given page file.
Resolution
2015-03-14
Please Sign in if you want to add a comment or resolution note.
rater/issues.txt · Last modified: 2014/04/30 09:36 (external edit)

This Wiki is hosted and ruled by Policies of Frister Consultancy Services.
By using this wiki you accept these rules. -> Impressum