Page MenuHomePhabricator

MediaWiki API deprecation warnings - 'rvslots' isn't documented
Closed, InvalidPublic


Queries without 'rvslots' get this message in response: "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."

But online API documentation for the 'query' action doesn't have 'rvslots':

Did you forget to document it?

Event Timeline

Lofhi renamed this task from 'rvslots' isn't documented in to MediaWiki API deprecation warnings - 'rvslots' isn't documented.Aug 3 2018, 6:04 AM
Lofhi added a subscriber: ssastry.

More informations : says documentation is missing and will be updated tomorrow -- but that this can be safely ignored for now.

Anomie added a subscriber: Anomie.

But online API documentation for the 'query' action doesn't have 'rvslots':

You're looking in the wrong place. The warning comes from the revisions module, and the parameter is documented there:

Some of the text on probably could use updating. That's a wiki, anyone should feel free to do so.

I see that some examples still need to be updated.

I've updated the main example in the MediaWiki's wiki documentation, but someone should also update the Examples section of Special:apihelp/query+revisions, defined as follow:


	protected function getExamplesMessages() {
			return [
				'action=query&prop=revisions&titles=API|Main%20Page&' .
					=> 'apihelp-query+revisions-example-content',
				'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
					=> 'apihelp-query+revisions-example-last5',
				'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
					=> 'apihelp-query+revisions-example-first5',
				'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
					=> 'apihelp-query+revisions-example-first5-after',
				'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
					=> 'apihelp-query+revisions-example-first5-not-localhost',
				'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
					=> 'apihelp-query+revisions-example-first5-user',
Fae added a subscriber: Fae.