Last modified: 2014-01-03 15:49:26 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 T61338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59338 - DBQ-84 Edits that were reverted by Cluebot
DBQ-84 Edits that were reverted by Cluebot
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Database Queries (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 15:49 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 15:49 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 15:49:20 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-84.
Summary: Edits that were reverted by Cluebot
Issue type: Task - A task that needs to be done.
Priority: Minor
Status: Done
Assignee: (none)

-------------------------------------------------------------------------------
From: Tim Sears <sears.tim@gmail.com>
Date: Thu, 17 Dec 2009 04:10:52
-------------------------------------------------------------------------------

I would like a list of [difs] that were reverted by Cluebot. Perhaps go back 100000 reverts? Please email them to me if you could. Im not sure how much effort these queries take, so if this is too much to ask, please feel free to do a lesser amount.
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:49:21 UTC
-------------------------------------------------------------------------------
From: CBM <cbm.wikipedia@gmail.com>
Date: Thu, 17 Dec 2009 13:06:49
-------------------------------------------------------------------------------

Are you saying you want the diff links (e.g. http://en.wikipedia.org/w/index.php?&diff=148534552&oldid=prev ) or that you want the actual contents of the diffs? The links can be generated easily. The contents of the diffs cannot be generated with a database query. 

The query to make the list of diff links is 

select concat('http://en.wikipedia.org/w/index.php?oldid=prev&diff=', rev_id)   
from revision where rev_user_text = 'ClueBot'   
and rev_comment like 'Reverting%' limit 100000;

I have sent the output to the original user.
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:49:23 UTC
-------------------------------------------------------------------------------
From: Tim Sears <sears.tim@gmail.com>
Date: Thu, 17 Dec 2009 16:58:24
-------------------------------------------------------------------------------

IM sorry, i must not have been entirely clear. I want the edit that was REVERTED by cluebot. To use the example you gave: instead of http://en.wikipedia.org/w/index.php?oldid=prev&diff=147988274 , i want http://en.wikipedia.org/w/index.php?title=Black&diff=prev&oldid=147988129 (the edit that was reverted). Thanks for your speedy response!
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:49:24 UTC
-------------------------------------------------------------------------------
From: MZMcBride <mzmcbride@gmail.com>
Date: Fri, 18 Dec 2009 04:05:42
-------------------------------------------------------------------------------

Done. Results are here: http://toolserver.org/~mzmcbride/dbq/dbq-84.txt.gz

Basically, I just scripted a query to hit the database a lot. The query was similar to:
    
    cursor2.execute('''
    SELECT
      revision1.rev_id AS cluebot,
      (SELECT revision2.rev_id FROM revision AS revision2 WHERE revision2.rev_page = %s AND revision1.rev_timestamp > revision2.rev_timestamp ORDER BY 
    revision2.rev_timestamp DESC LIMIT 1) AS pre_cluebot
    FROM revision AS revision1
    WHERE revision1.rev_id = %s;
    ''' , (rev_page, rev_id))
    

Resolving as FIXED.
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:49:26 UTC
This bug was imported as RESOLVED. The original assignee has therefore not been
set, and the original reporters/responders have not been added as CC, to
prevent bugspam.

If you re-open this bug, please consider adding these people to the CC list:
Original assignee: (none)
CC list: b@mzmcbride.com, cbm.wikipedia@gmail.com

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


Navigation
Links