[PATCH] incite bug reporters to post feedback

François Cami fdc-lists at fcami.net
Sat Dec 4 16:56:42 UTC 2010


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 at fedoraproject.org>

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-edit-bz-message-so-that-reporters-leave-comments-kar.patch
Type: text/x-patch
Size: 2530 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20101204/c5d7eeec/attachment.bin 


More information about the test mailing list