https://bugzilla.wikimedia.org/show_bug.cgi?id=46458

--- Comment #3 from MWJames <[email protected]> ---
(In reply to comment #1)
> As a thought, maybe this could justify a new API method (e.g.,
> action=smwcalc)

If some kind of statistics is needed it should go into ApiSMWInfo class
(please, no additional action).

> that allows you to only specify conditions and request average, count, max,
> median, min, product and sum (all the current calculations). I would put
> earliest and latest in there too.

Since we expect the API to be format neutral, any specific formatting rules
(e.g. max is an application based formatting acting on a result set) to a
result set should be done in a post-process.

Count is somewhat different because it is handled differently in the SQLStore
together with the actual database query.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to