Page MenuHomePhabricator

No way to query API for 3 most recent public collections from user x
Closed, DeclinedPublic

Description

Two problems:

  1. No sorting by last modified
  2. No way to exclude private collections from the API query if user x is the current user

API sample:

		$api = new ApiMain( new FauxRequest( array_merge( array(
			'action' => 'query',
			'list' => 'lists',
			'lstlimit' => 3,
			'lstperm' => 'public',
			'sort' => 'modified',
			'lstprop' => 'label|description|image|count|updated|owner',
			'lstowner' => 'Jdlrobson',
			'continue' => '',
		), $req->getValues() ) ) );

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson added subscribers: gerritbot, MSyed, Jdlrobson and 2 others.

Instead of lstperm, maybe reuse lstfilter?

Last modified means list name/description last edited, as in other places?

In T98503#1272113, @Tgr wrote:

Instead of lstperm, maybe reuse lstfilter?

That works for me. Do we have it?

Last modified means list name/description last edited, as in other places?

Correct :)

That works for me. Do we have it?

Uh, no :) I had T97061 in mind, but that does not specify the parameter name either.

MBinder_WMF subscribed.

This task was declined as part of a batch-decline related to sunsetting the Gather project. Please ping (politely) if this task should be reopened. For more information, you can also see here: https://www.mediawiki.org/wiki/Extension:Gather