Last modified: 2013-03-07 20:35:03 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 T47201, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45201 - ApiPageSet needs defaultNamespace for actions
ApiPageSet needs defaultNamespace for actions
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-20 17:19 UTC by Yuri Astrakhan
Modified: 2013-03-07 20:35 UTC (History)
6 users (show)

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


Attachments

Description Yuri Astrakhan 2013-02-20 17:19:29 UTC
For some actions that deal mostly with one namespace (file manipulation, etc), it would be good to add a defaultNamespace constructor parameter to be used with Title::newFromText()
Comment 1 Brad Jorsch 2013-02-22 21:19:50 UTC
How would this be used? Just by non-query actions that might use ApiPageSet and want to allow "titles=Foo.jpg|Bar.jpg" instead of "titles=File:Foo.jpg|File:Bar.jpg"?
Comment 2 Yuri Astrakhan 2013-02-22 22:48:05 UTC
Correct. Would be good for the image rotation action, or any other alike. Should be trivial to do and non-breaking. I made it as a bug just so i don't forget.
https://gerrit.wikimedia.org/r/#/c/44005/5/includes/api/ApiImageRotate.php
Comment 3 Umherirrender 2013-03-07 20:35:03 UTC
Already fixed with merged Gerrit change #52223

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


Navigation
Links