Last modified: 2014-01-03 15:56:11 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 T61360, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59360 - DBQ-109 List of Portuguese Wikibooks users with 100+ edits, with number of edits and pages created (main namespace) and date of first edit
DBQ-109 List of Portuguese Wikibooks users with 100+ edits, with number of ed...
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:56 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 15:56 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:03 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-109.
Summary: List of Portuguese Wikibooks users with 100+ edits, with number of edits and pages created (main namespace) and date of first edit
Issue type: Task - A task that needs to be done.
Priority: Minor
Status: Done
Assignee: Hoo man <hoo@online.de>

-------------------------------------------------------------------------------
From: Helder <helder.wiki@gmail.com>
Date: Fri, 22 Oct 2010 13:25:30
-------------------------------------------------------------------------------

I would like to have a list (or a wiki table if possible) with the following columns:

  * user name
  * number of (not deleted) edits in main namespace
  * date of first edit in main namespace
  * number of pages created in main namespace  
This seems to be similar to these other requests:
  * https://jira.toolserver.org/browse/DBQ-3
  * https://jira.toolserver.org/browse/DBQ-26
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:05 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Mon, 27 Dec 2010 15:04:55
-------------------------------------------------------------------------------

SQL:
    
    SELECT user_data.user, user_data.edits, user_data.first_edit, creations.count as creation_count FROM (SELECT COUNT(*) as count, user FROM (SELECT rev_user_text as user FROM page INNER JOIN revision ON page.page_id = revision.rev_page WHERE page.page_namespace = 0 AND page.page_is_redirect = 0 GROUP BY revision.rev_page) as tmp GROUP BY tmp.user) as creations INNER JOIN (SELECT revision.rev_user_text as user, COUNT(revision.rev_id) as edits, min(rev_timestamp) as first_edit FROM revision INNER JOIN page ON revision.rev_page = page.page_id WHERE page.page_namespace = 0 AND revision.rev_deleted = 0 GROUP BY revision.rev_user_text) as user_data ON user_data.user = creations.user WHERE edits > 100 GROUP by user_data.user;
    

Result:  
http://toolserver.org/~hoo/dbq/dbq-109.txt (as list)  
http://toolserver.org/~hoo/dbq/dbq-109_wiki.txt (as wiki table)
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:06 UTC
-------------------------------------------------------------------------------
From: Helder.wiki  <helder.wiki@gmail.com>
Date: Mon, 27 Dec 2010 19:43:36
-------------------------------------------------------------------------------

Thank you very much!

Just for curiosity: how long a query like this takes to be accomplished? Would it be feasible to extend the list to "edits > 50" instead of "edits > 100"? If so, could you please generate such a list sorted by number of edits? (when you have the time)
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:08 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Tue, 28 Dec 2010 00:13:50
-------------------------------------------------------------------------------

On such a "small" database like the ptwikibooks one it runs in a few seconds (about 4 seconds on ptwikibooks).

So here are the extended results:  
http://toolserver.org/~hoo/dbq/dbq-109_2.txt (plain text)  
http://toolserver.org/~hoo/dbq/dbq-109_2_wiki.txt (wiki markup)
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:10 UTC
-------------------------------------------------------------------------------
From: Helder.wiki  <helder.wiki@gmail.com>
Date: Wed, 29 Dec 2010 23:25:18
-------------------------------------------------------------------------------

Thanks you again!  
I wish you a happy new year =)
Comment 5 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:56:11 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: hoo@online.de
CC list: hoo@online.de

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


Navigation
Links