Last modified: 2014-01-03 16:00:45 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 T61386, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59386 - DBQ-131 article random selection from English Wikipedia with quota for each grade
DBQ-131 article random selection from English Wikipedia with quota for each g...
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Database Queries (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 16:00 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 16:00 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 16:00:41 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-131.
Summary: article random selection from English Wikipedia with quota for each grade
Issue type: Task - A task that needs to be done.
Priority: Major
Status: Done
Assignee: Hoo man <hoo@online.de>

-------------------------------------------------------------------------------
From: Minn Seok Choi <MinnSeok.Choi@gmail.com>
Date: Sat, 26 Mar 2011 04:14:43
-------------------------------------------------------------------------------

I would like to acquire an English article list where 100 articles for each the quality grade of WP(FA, A or GA, B, C, Start, Stub)is chosen randomly. Totally 600 articles appear on the list with full name of article and grade columns.
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:00:42 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Sat, 26 Mar 2011 16:39:42
-------------------------------------------------------------------------------

SQL:  

    
    SELECT DISTINCT page_title, 'A' FROM (SELECT page_title as cat FROM page INNER JOIN categorylinks ON page_id = cl_from INNER JOIN category ON cat_title = page_title WHERE page_namespace = 14 AND categorylinks.cl_to = 'A-Class_articles' AND cat_pages - cat_subcats > 0 ORDER BY RAND() LIMIT 125) as categories INNER JOIN categorylinks ON categories.cat = categorylinks.cl_to INNER JOIN page ON categorylinks.cl_from = page.page_id WHERE page_title NOT LIKE "%-class%" ORDER BY RAND() LIMIT 100;

(Query for A-class articles, same for every category, except of FA)  
Result:  
http://toolserver.org/~hoo/dbq/dbq-131.txt
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:00:44 UTC
-------------------------------------------------------------------------------
From: Minn Seok Choi <MinnSeok.Choi@gmail.com>
Date: Sun, 27 Mar 2011 08:00:09
-------------------------------------------------------------------------------

Thanks a lot, Hoo man. I would need more data about the article list that you had retrieved perfectly. I will post another request for the query. Have a good day. ~~~~
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:00:45 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