Last modified: 2013-02-05 18:07:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46632, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44632 - Remove format=none from MediaWiki API
Remove format=none from MediaWiki API
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/w/api.php?ac...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-04 08:13 UTC by MZMcBride
Modified: 2013-02-05 18:07 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-02-04 08:13:08 UTC
The MediaWiki API has a "none" format. I don't understand its purpose. I vaguely remember researching this format and not being able to find a good reason for its existence. I believe it should be removed. It currently masks errors, e.g. <https://en.wikipedia.org/w/api.php?action=query&invalidparameter=masked&format=none>.
Comment 1 MZMcBride 2013-02-04 08:31:23 UTC
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=commit;h=b69da9ad53743b9e66123d8363e26902e719ec80

That's the relevant commit. I'm unable to find an associated Gerrit changeset or CodeReview revision, however.
Comment 2 Nikola Smolenski 2013-02-04 08:39:20 UTC
The idea behind format=none is not to waste CPU to build and bandwidth to send the response when the caller is not using the response in any way.
Comment 3 MZMcBride 2013-02-04 08:41:26 UTC
(In reply to comment #2)
> The idea behind format=none is not to waste CPU to build and bandwidth to
> send the response when the caller is not using the response in any way.

Is there a relevant bug about this? I'm still having difficulty understanding why anyone would ever want MediaWiki to return nothing.
Comment 4 Nikola Smolenski 2013-02-05 11:34:47 UTC
Initially it was the Interlanguage extension that was, upon update on the central wiki, purging pages on client wikis, and didn't look at results. (Because if there was an error during the purging, what will you do? Purge again? It will happen eventually anyway.) Back when Wikibase extension was started it was discussed that it might use a similar mechanism, so I added this. I don't know of anything using it at the moment, but I would say that there may be more people who purge something and don't care about results.
Comment 5 Brad Jorsch 2013-02-05 14:23:12 UTC
If someone wants to see errors, they shouldn't be using format=none. But if they're really not caring about the result of their submission, we may as well allow the option to save a few bytes and a few cycles. Closing as WONTFIX.
Comment 6 MZMcBride 2013-02-05 16:37:48 UTC
Do other APIs have a similar output option? It's not a feature I'm familiar with.
Comment 7 Chad H. 2013-02-05 18:07:30 UTC
I'm unconvinced we're really saving enough trees here to make it worthwhile, suggest reopening.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links