Last modified: 2011-03-13 18:05:57 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 T19623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17623 - Allow batch edits for API
Allow batch edits for API
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-23 00:06 UTC by René Kijewski
Modified: 2011-03-13 18:05 UTC (History)
3 users (show)

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


Attachments

Description René Kijewski 2009-02-23 00:06:40 UTC
Often it would be very helpful to do batch edits. Especially for replacing works you may want to change 8 articles in one go and don't have to wait 20 seconds per article to do a change. Often one wants to mark 5 articles with exactly the same text. I could think about such a request:

/api.php?
action=edit&
title=A|B|C&
summary=batch%20edit&
text[0]=article%201%20content&
text[1]=article%202%20content&
text[2]=article%203%20content&
basetimestamp[0]=20070824123454&
basetimestamp[1]=20070824123453&
basetimestamp[2]=20070824123452&
&token=%2B\

and

/api.php?
action=edit&
title=A|B|C&
summary=Added%20[[Category:Test]]&
appendtext=[[Category:Test]]&
&token=%2B\

such the request distinguishes between simple parameters and field parameters. For simple parameters the value should be used for all articles.
For single article requests the result should be perfectly the same like now and arrays for multi article requests.
Comment 1 Roan Kattouw 2009-02-23 11:20:24 UTC
(In reply to comment #0)
> Often it would be very helpful to do batch edits. Especially for replacing
> works you may want to change 8 articles in one go and don't have to wait 20
> seconds per article to do a change. 

Where did you get that 20s per article figure from? AFAIK MediaWiki doesn't rate-limit in that particular way (rather in terms of total edits per minute).

Anyway, batch editing is something that clients can do just fine by themselves, without needing special facilities in the API. If you find the rate limits too restrictive, apply for a bot flag (bots have higher limits). Marking as WONTFIX.
Comment 2 René Kijewski 2009-02-23 12:57:05 UTC
(In reply to comment #1)
> Where did you get that 20s per article figure from? AFAIK MediaWiki doesn't
> rate-limit in that particular way (rather in terms of total edits per minute).
>
Its the "soft limit" by the communities on de.wp and I think en.wp, too. The hard limit for non admins is 8 edits per 60 seconds.

> Anyway, batch editing is something that clients can do just fine by themselves,
> without needing special facilities in the API.
> 
I got the flag. I just wanted to make the interface easier.
Comment 3 Roan Kattouw 2009-02-23 13:03:18 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Where did you get that 20s per article figure from? AFAIK MediaWiki doesn't
> > rate-limit in that particular way (rather in terms of total edits per minute).
> >
> Its the "soft limit" by the communities on de.wp and I think en.wp, too.
Allowing batch editing won't change that: you'd still see 5 edits in the same minute, and no one's gonna know that they were made in one request rather than 5 parallel ones.
Comment 4 Gurch 2009-06-14 18:39:13 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Where did you get that 20s per article figure from? AFAIK MediaWiki doesn't
> > rate-limit in that particular way (rather in terms of total edits per minute).
> >
> Its the "soft limit" by the communities on de.wp and I think en.wp, too. The
> hard limit for non admins is 8 edits per 60 seconds.

There is no limit for established registered users, administrator or otherwise. The limit for unregistered and newly registered users is 8 edits per 60 seconds.

There is also no "soft limit" anywhere near as draconian as one edit every 20 seconds, at least not on en.wikipedia. One edit every 3 seconds is more or less standard when dealing with vandalism.

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


Navigation
Links