Page MenuHomePhabricator

Support the use of Assert Edit
Closed, ResolvedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/241/
Reported by: p858snake
Created on: 2010-03-05 10:07:29
Subject: Support the use of Assert Edit
Original description:
It would be nice if the use of the Assert Edit\[1\] extension was supported by the framework, Because for the wikis it is depolyed on \(All WMF wikis\) it would prevent bots from editing unlogged inif they choose to have it assert its edits.

\[1\]. http://www.mediawiki.org/wiki/Extension:Assert\_Edit


Version: unspecified
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/241

Details

Reference
bz55068

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:18 AM
bzimport set Reference to bz55068.
bzimport added a subscriber: Unknown Object (????).

The en Bot Approval Group is considering this as a future requirement for bots

What checking period does the BAG propose? Every start? Every five minutes? Every hour? Every edit, every 10, every 100?

Time? all the asserting does is add something like "&assert=bot" to the end of the address and it returns to the bot interface if it has the right or not, and it should check every edit.

Now implemented in the rewrite branch only; using assert=user rather than assert=bot because some wikis may permit use of the framework without a bot flag. Probably this should be configurable on a per-wiki basis, but it's a start.

It is now bot policy on en.wikipedia that bots which are known to edit while logged out should have an assert edit, or a function which does the same thing, added to them.
As to the time issue, this is simply however often it is required to make sure that the bot doesn't edit while logged out. Which is probably every edit for bots which have a history of logging themselves out.

Change 147837 had a related patch set uploaded by Ricordisamoa:
use AssertEdit for every 'write' action

https://gerrit.wikimedia.org/r/147837

Change 147837 had a related patch set uploaded by Legoktm:
use API assert for supported 'write' actions

https://gerrit.wikimedia.org/r/147837

Change 147837 merged by jenkins-bot:
use API assert for supported 'write' actions

https://gerrit.wikimedia.org/r/147837

I'd say this is a tracking bug (even though it was used as topic for a Gerrit change) or one of the never-to-be-resolved ones, because many other things could be done (e.g., use an automatically updated list of 'write' actions, assert 'bot' instead of 'user', etc).

File new bugs for those things!

detecting list of write actions is now bug 72207.
assert 'bot' is a minefield; someone else will need to create that bug, providing rationale.

  • Bug 62388 has been marked as a duplicate of this bug. ***