Last modified: 2012-09-16 17:39:08 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 T19983, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17983 - allow batch operations through API
allow batch operations through API
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 40275 40276
  Show dependency treegraph
 
Reported: 2009-03-14 23:22 UTC by Kimon Berlin (gribeco)
Modified: 2012-09-16 17:39 UTC (History)
6 users (show)

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


Attachments

Description Kimon Berlin (gribeco) 2009-03-14 23:22:57 UTC
Hi,

I'm currently updating the block state of tens of thousands of open proxies on frwiki. I have to do it one at a time, which is time-consuming. Allowing a multi-user block/unblock or a multi-page protect/unprotect through a single API call (with the same parameters for all items) would be more efficient.
Comment 1 Krinkle 2010-04-24 23:14:16 UTC
I'd like this aswell.

I can imagine stuff like:

http://commons.wikimedia.org/w/api.php?action=patrol&rcid=39515|39517|39519&token=123ABC

This could for example be used to patrol all edits from a certain page (imagine users making 20 edits, or an edit war whatever).

Previously a tool called vPopSpeed took care of this, but that tool's been dead for a long while. Being able to mass-do stuf in the API makes recreating such a tool a lot easier.

- Krinkle
Comment 2 Gurch 2010-04-25 12:24:04 UTC
(In reply to comment #1)
> This could for example be used to patrol all edits from a certain page (imagine
> users making 20 edits, or an edit war whatever).

Is such a thing really necessary in the first place? Surely it is sufficient to patrol the latest "good" revision to the page and then ignore the others.
Comment 3 Krinkle 2010-04-25 16:27:09 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > This could for example be used to patrol all edits from a certain page (imagine
> > users making 20 edits, or an edit war whatever).
> 
> Is such a thing really necessary in the first place? Surely it is sufficient to
> patrol the latest "good" revision to the page and then ignore the others.

Unlike FlaggedRevisions, the RCPatrol-system works different.
Not better or worse, but different. Patrolling is per edit, FlaggedRevisions is per page.

For two reasons I say no.

1) For example, imagine a trusted user doing a good edit to a page. That would be marked as patrolled, or maybe autopatrolled if it's a sysop. This does not mean the vandalistic edit made 5 minutes earlier is OK.

2) When filtering recent changes as for example "anonymous unpatrolled edits", then earlier edits to pages stay in the list (as they should) so only marking the latest one would not make sense and clutters up that feed all together.

But anyhow, I could imagine dozens other examples where batch operations would come in handy and save some work.
To loosely quote myself from IRC yesterday: 
" It would not only save N-times a HTTP request, N-times a loop to check and verify the results for errors and N-times a database query on the server.

So it wouldn't just move the loop from the API-user to the server, I think it would erase such a loop alltogether. AFAIK a database query can SELECT and UPDATE multiple items at once."

But then again, I'm not thát familiar with the wikimedia backend to know if it would save resources.

--
Krinkle
Comment 4 Victor Vasiliev 2010-04-25 16:31:54 UTC
> Not better or worse, but different. Patrolling is per edit, FlaggedRevisions is
> per page.

Total misconception. FlaggedRevs is always per revision (that's why it is called so), patrolling is page-only on most wikis (except, of course, commons and nl).
Comment 5 Krinkle 2010-04-25 16:44:45 UTC
(In reply to comment #4)
> > Not better or worse, but different. Patrolling is per edit, FlaggedRevisions is
> > per page.
> 
> Total misconception. FlaggedRevs is always per revision (that's why it is
> called so), patrolling is page-only on most wikis (except, of course, commons
> and nl).

OK. I phrased it badly. But not a misconception.
What I meant is that when the latest revision of page is being marked as sighted/accurate in FlaggedRevisions then, albeit earlier revisions stay marked as draft, that revision will be upfront the stable version. And, afaik, no need to worry about earlier revisions, because this one is marked stable.

RCPatrol ("recent changes") is not page-only, you confused it with NPPatrol ("new page").
See also: http://noc.wikimedia.org/conf/InitialiseSettings.php.txt (ctrl-f Find: "patrol")

When a page has been NPPatrol'ed it means the creation of it has been patrolled, not any edits after that.
At this moment about 50 Wikis have RCPatrol enabled.

And RCPatrol is about the edits themselfs, not about the revision/version of that page as a whole.

But anyhow, about those batch operations :)
-- Krinkle
Comment 6 db [inactive,noenotif] 2011-11-21 09:58:41 UTC
You should split this in seperate bugs, because it makes it easy to work on.

* One for multi-page block/unblock
* One for multi-page protect/unprotect
* One for multi-page patrol

And maybe more bugs for other actions. You can reuse this bug for one of that feature request.
Comment 7 db [inactive,noenotif] 2012-09-16 06:55:15 UTC
Splitted into seperated bugs:

* bug 40275
* bug 40276
* bug 40277
Comment 8 Krinkle 2012-09-16 14:48:13 UTC
Why is this marked fix?
Comment 9 db [inactive,noenotif] 2012-09-16 17:39:08 UTC
Sorry, INVALID is a better status.

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


Navigation
Links