Page MenuHomePhabricator

API should indicate parameters that have no effect in generator mode, and ApiSandbox should use this
Open, Needs TriagePublic

Description

When using categories as a generator, there is a gclprop property, but setting it doesn't seem to make any difference. If i understand generators right, the category list is only used as input to get a list of pages, and in that case it doesn't really make sense that it also adds additional properties to the output, but if so, why is the property in the API documentation?

ApiSandbox example

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 28 2018, 9:33 AM
Anomie renamed this task from The gclprop property with generator=categories does not seem to make any difference to API should indicate parameters that have no effect in generator mode, and ApiSandbox should use this.Jul 2 2018, 1:45 PM
Anomie added a subscriber: Anomie.

Implementing this would likely involve a new ApiBase::PARAM_* constant.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Jul 2 2018, 1:46 PM