[PATCH] incite bug reporters to post feedback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi bodhi@, test@,

The following patch tentatively changes the message bodhi posts to
bugzilla when a build is tagged as an update candidate to make clear
that we expect bug reporters to post their feedbacks on updates in the
bodhi instance.
Please review the message - I am sure someone can make it better.

Caveat emptor: I do not have a bodhi+koji+bz instance, so this is
completely untested.

Signed-Off-By: FranÃois Cami <fcami@xxxxxxxxxxxxxxxxx>

Patch also attached because I'm pretty sure the inline version will get mangled.

diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index f323291..3c55512 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -971,9 +971,12 @@ class Root(controllers.RootController):
                         log.debug("Updating newly added bug: %s" % bug)
                         try:
                             Bugzilla.byBz_id(bug).add_comment(update,
-                                "%s has been submitted as an update
for %s.\n%s" %
-                                    (update.title, release.long_name,
-                                     config.get('base_address') +
tg_url(update.get_url())))
+                                "%s has been submitted as an update
for %s and "
+                                "will soon be available in the
updates-testing "
+                                "repository. Please comment on your
experience at:\n"
+                                "%s" % (
+                                  update.title, release.long_name,
+                                  config.get('base_address') +
tg_url(update.get_url())))
                         except SQLObjectNotFound:
                             log.debug('Bug #%d not found in our
database' % bug)

@@ -992,9 +995,12 @@ class Root(controllers.RootController):
                 # Comment on all bugs
                 for bug in update.bugs:
                     bug.add_comment(update,
-                        "%s has been submitted as an update for %s.\n%s" %
-                            (update.title, release.long_name,
-                             config.get('base_address') +
tg_url(update.get_url())))
+                        "%s has been submitted as an update for %s and "
+                        "will soon be available in the updates-testing "
+                        "repository. Please comment on your experience at:\n"
+                        "%s" % (
+                          update.title, release.long_name,
+                          config.get('base_address') +
tg_url(update.get_url())))

             # If a request is specified, make it.  By default we're submitting
             # new updates directly into testing
-- 
1.7.3.2
From 8bf87c398701f5b8571d6cdffa3d81afd1ed34b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= <fcami@xxxxxxxxxxxxxxxxx>
Date: Sat, 4 Dec 2010 17:42:17 +0100
Subject: [PATCH] edit bz message so that reporters leave comments+karma in bodhi.

---
 bodhi/controllers.py |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index f323291..3c55512 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -971,9 +971,12 @@ class Root(controllers.RootController):
                         log.debug("Updating newly added bug: %s" % bug)
                         try:
                             Bugzilla.byBz_id(bug).add_comment(update,
-                                "%s has been submitted as an update for %s.\n%s" %
-                                    (update.title, release.long_name,
-                                     config.get('base_address') + tg_url(update.get_url())))
+                                "%s has been submitted as an update for %s and "
+                                "will soon be available in the updates-testing "
+                                "repository. Please comment on your experience at:\n"
+                                "%s" % (
+                                  update.title, release.long_name,
+                                  config.get('base_address') + tg_url(update.get_url())))
                         except SQLObjectNotFound:
                             log.debug('Bug #%d not found in our database' % bug)
 
@@ -992,9 +995,12 @@ class Root(controllers.RootController):
                 # Comment on all bugs
                 for bug in update.bugs:
                     bug.add_comment(update,
-                        "%s has been submitted as an update for %s.\n%s" %
-                            (update.title, release.long_name,
-                             config.get('base_address') + tg_url(update.get_url())))
+                        "%s has been submitted as an update for %s and "
+                        "will soon be available in the updates-testing "
+                        "repository. Please comment on your experience at:\n"
+                        "%s" % (
+                          update.title, release.long_name,
+                          config.get('base_address') + tg_url(update.get_url())))
 
             # If a request is specified, make it.  By default we're submitting
             # new updates directly into testing
-- 
1.7.3.2

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux