Page MenuHomePhabricator

Weekly Bugzilla Report: "Created reports per product" lists random products, not those with highest numbers
Closed, ResolvedPublic


Whenever you think that you've fixed that damn script, you suddenly realize there's something else that's still wrong.

Testing the fix for bug 49758, looking at its results:

Created reports per component:
VisualEditor General 33
MediaWiki extensions UniversalLanguageSelector 27
VisualEditor Editing Tools 25
VisualEditor MediaWiki integration 12
Wikimedia Bugzilla 11

Created reports per product:
MediaWiki 43
Wikimedia 45
MediaWiki extensions 104
Security 3
Tools 5

it is clear that the "product" list does not list those products with the highest number of new tickets in the last week.

This can be also seen on[Bug+creation]&chfieldvalue=&chfieldfrom=-7d&chfieldto=Now&j_top=AND&f1=noop&o1=noop&v1=&format=table&action=wrap

which right now lists these top 5 products:

MediaWiki extensions 104
VisualEditor 95
MediaWiki 48
Wikimedia 47
Parsoid 23

Version: wmf-deployment
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:09 AM
bzimport set Reference to bz49845.

Looking back at the very first revision of operations/puppet/templates/misc/bugzilla_report.php it already says:

getBugsPerProduct() uses
SELECT name, count(*) FROM bugs
getBugsPerComponent() uses
SELECT name, count(*) as total FROM bugs

That's the only difference I can spot in the query designs.

Related URL: (Gerrit Change Iecdc7439463f58be272cf0b73f662ac91d0b061b)

Shizzle, /me blind. "ORDER BY foo DESC" is teh win!