Last modified: 2014-01-03 15:48:37 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 T61332, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59332 - DBQ-78 Number of transclusions of Wikimedia Commons creator templates for all templates in [[comm:Category:Creator templates]]
DBQ-78 Number of transclusions of Wikimedia Commons creator templates for al...
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 15:48 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 15:48 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:27 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-78.
Summary: Number of  transclusions of Wikimedia Commons creator templates for all  templates in [[comm:Category:Creator templates]]
Issue type: Task - A task that needs to be done.
Priority: Major
Status: Done
Assignee: (none)

-------------------------------------------------------------------------------
From: Jarek Tuszynski <jaroslaw.w.tuszynski@saic.com>
Date: Mon, 02 Nov 2009 18:53:14
-------------------------------------------------------------------------------
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:29 UTC
-------------------------------------------------------------------------------
From: mauro742 <mauro742@gmail.com>
Date: Sat, 07 Nov 2009 14:30:55
-------------------------------------------------------------------------------

Result: 105312

Query:

select count(*)  
from page join categorylinks on page_id = cl_from  
join templatelinks on page_title = tl_title and page_namespace = tl_namespace  
where cl_to='Creator_templates';
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:31 UTC
-------------------------------------------------------------------------------
From: Jarek Tuszynski <jaroslaw.w.tuszynski@saic.com>
Date: Mon, 09 Nov 2009 03:34:45
-------------------------------------------------------------------------------

Thank you for running the query. What I meant is (I think):

select page_title, count![][1]  
from page join categorylinks on page_id = cl_from  
join templatelinks on page_title = tl_title and page_namespace = tl_namespace  
where cl_to='Creator_templates'  
group by page_title;

As far as I understand this DB schema the above query would give me number of transclusions for each creator page. I am mainly interested in creator templates with large number of transclusions (lets say above 100) and very few transclusions (~ 0, 1). There are about 4k creator templates and I was hoping to get a list of all 4k with number of transclusions for each.

Thanks again

Jarek 

   [1]: https://jira.toolserver.org/images/icons/emoticons/star_yellow.gif
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:32 UTC
-------------------------------------------------------------------------------
From: mauro742 <mauro742@gmail.com>
Date: Tue, 10 Nov 2009 19:39:21
-------------------------------------------------------------------------------

I didn't understand your request. Here the result:

http://toolserver.org/~mauro742/DBQ/DBQ-78.txt

Query:

select concat("Creator:",page_title), count(*) as tot  
from page join categorylinks on page_id = cl_from  
join templatelinks on page_title = tl_title and page_namespace = tl_namespace  
where cl_to='Creator_templates'  
and tl_namespace = 100  
group by page_id  
order by tot desc, page_title;
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:34 UTC
-------------------------------------------------------------------------------
From: Jarek Tuszynski <jaroslaw.w.tuszynski@saic.com>
Date: Mon, 03 May 2010 03:09:11
-------------------------------------------------------------------------------

I would like to request a rerun of the final query in order to capture the current status.  
Thank you.
Comment 5 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:36 UTC
-------------------------------------------------------------------------------
From: MZMcBride <mzmcbride@gmail.com>
Date: Mon, 03 May 2010 03:15:11
-------------------------------------------------------------------------------

http://toolserver.org/~mzmcbride/dbq/dbq-78.txt
Comment 6 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:48:37 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, jaroslaw.w.tuszynski@leidos.com

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


Navigation
Links