Last modified: 2009-03-30 00:58:44 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 T19871, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17871 - mention one can export via the API too (much more flexible)
mention one can export via the API too (much more flexible)
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.15.x
All All
: Lowest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-09 02:05 UTC by Dan Jacobson
Modified: 2009-03-30 00:58 UTC (History)
5 users (show)

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


Attachments
mention api in special:export (1.05 KB, patch)
2009-03-12 01:32 UTC, Dan Jacobson
Details

Description Dan Jacobson 2009-03-09 02:05:43 UTC
The api should add a parameter allowing the user to output several
pages in MediaWiki's Special:Export format.

(Currently api.php mentions an export option, but that is a different
export format.)

Perhaps add a parameter to include/remove the Header, and just emit
the <item>s.

Using the api, the user could then have a very powerful tool to export
many more different slices of the wiki than the current maintenance
scripts or Special:Export allows!

And do add a note for users to see on Special:Export that they can
also use the api to export a great many different slices.
Comment 1 Roan Kattouw 2009-03-09 10:32:24 UTC
(In reply to comment #0)
> The api should add a parameter allowing the user to output several
> pages in MediaWiki's Special:Export format.
> 
It already has one.

> (Currently api.php mentions an export option, but that is a different
> export format.)
> 
No, that's the same format if you use &exportnowrap.


> Perhaps add a parameter to include/remove the Header, and just emit
> the <item>s.
> 
That would be a different format than Special:Export's, and I don't see how it would be useful.

> Using the api, the user could then have a very powerful tool to export
> many more different slices of the wiki than the current maintenance
> scripts or Special:Export allows!
> 
That's already there.

> And do add a note for users to see on Special:Export that they can
> also use the api to export a great many different slices.
> 
That's something for the TranslateWiki folks to worry about.

Closing as WORKSFORME as this bug doesn't seem to request any API features that aren't already there; if it does, please REOPEN and specify your feature request more clearly.
Comment 2 Dan Jacobson 2009-03-11 01:45:08 UTC
OK, at
  exportnowrap   - Return the export XML without wrapping it in an XML result
please add "same format as [[Special:Export]]".
else one might never know the connection.

I'll now change this bug to
> add a note for users to see on Special:Export that they can
> also use the api to export a great many different slices.
Comment 3 Chad H. 2009-03-11 13:36:39 UTC
Changed the exportnowrap description in r48312. Not so sure about tweaking the default Special:Export to mention the API. We don't suggest using the API elsewhere in the UI, do we?
Comment 4 Roan Kattouw 2009-03-11 14:01:21 UTC
Bug as filed is fixed, closing. Changing the interface messages on Special:Export would be a TranslateWiki issue.
Comment 5 Dan Jacobson 2009-03-12 01:31:36 UTC
OK, adding a patch to start internationalization.

I'm not sure if how I link is the best way etc.

And maybe this message shouldn't even appear if API is disabled via LocalSettings, etc.

So feel free to reclose.
Comment 6 Dan Jacobson 2009-03-12 01:32:59 UTC
Created attachment 5921 [details]
mention api in special:export
Comment 7 Siebrand Mazeland 2009-03-26 13:26:17 UTC
Please create a new patch, adding a message and necessary code changes to only display the alternative if the wiki is actually configured to allow this.

Changes component to import/export, as this is not i18n/L10n, but rather documentation on import/export.
Comment 8 Chad H. 2009-03-26 15:48:58 UTC
(In reply to comment #7)
> Please create a new patch, adding a message and necessary code changes to only
> display the alternative if the wiki is actually configured to allow this.
> 

The only check should be seeing if the API is enabled, doesn't require any extra config.

I'm still not sure if it's a good idea. As I said earlier: we don't suggest using the API elsewhere in the UI (the only mentions of the API in the core messages are in relation to the rights- and friends messages). If the UI needs improvement, file bugs for specific improvements there...the API isn't designed for users, so don't tell users to use it.
Comment 9 Dan Jacobson 2009-03-28 04:17:20 UTC
> the API isn't designed for users
Perhaps add warnings to that effect on api.php and http://www.mediawiki.org/wiki/API
otherwise folks will certainly spread the gospel to their users.
Comment 10 Dan Jacobson 2009-03-30 00:47:31 UTC
Hmmm, a user downloading XML dumps is no simple user.
So perhaps do if(api enabled){
print a message duplicated from
'shareduploadwiki' => 'Please see the $1 for further information.',
where $1 would be "this site's api.php, and http://www.mediawiki.org/wiki/API"
or just the former, as it links to the latter anyway.
}
Comment 11 Mike.lifeguard 2009-03-30 00:58:44 UTC
(In reply to comment #9)
> > the API isn't designed for users
> Perhaps add warnings to that effect on api.php and
> http://www.mediawiki.org/wiki/API
> otherwise folks will certainly spread the gospel to their users.
> 

That's not our fault. API stands for APPLICATION programming interface and it is not designed for human use. If humans want to pretend to be bots, that's fine but we are in no way obligated to humour them. Marking WONTFIX per this and comment 8.

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


Navigation
Links