Dzahn has submitted this change and it was merged.
Change subject: Add product name to component output in Weekly Bugzilla Report
mail
......................................................................
Add product name to component output in Weekly Bugzilla Report mail
bug: 49758
Change-Id: Ifa25b82af54a5772d815b4fde64c6aa089745976
---
M templates/misc/bugzilla_report.php
1 file changed, 7 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Dzahn: Looks good to me, approved
diff --git a/templates/misc/bugzilla_report.php
b/templates/misc/bugzilla_report.php
index 25f643f..bc025dd 100755
--- a/templates/misc/bugzilla_report.php
+++ b/templates/misc/bugzilla_report.php
@@ -28,13 +28,17 @@
print "Created reports per component\n\n";
return <<<END
SELECT
- name, count(*) as total
+ products.name, components.name, count(*) as total
FROM
bugs
JOIN
components
on
- component_id = components.id
+ bugs.component_id = components.id
+JOIN
+ products
+ on
+ bugs.product_id = products.id
WHERE
creation_ts
BETWEEN
@@ -245,7 +249,7 @@
if (is_array($row)) {
foreach ($row as $row_i) {
$row_i = str_replace ( '@', ' [AT] ', $row_i);
//strip out any easy scrapes
- print pack('A36',($row_i));
+ print pack('A30',($row_i));
}
}
else {
--
To view, visit https://gerrit.wikimedia.org/r/69457
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa25b82af54a5772d815b4fde64c6aa089745976
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Aklapper <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits