[osgeo4w-dev] [osgeo4w] #261: clean up noisy trac notification emails

OSGeo4W trac_osgeo4w at osgeo.org
Tue Feb 7 13:50:15 EST 2012


#261: clean up noisy trac notification emails
-------------------+--------------------------------------------------------
Reporter:  maphew  |       Owner:  osgeo4w-dev@…              
    Type:  task    |      Status:  new                        
Priority:  major   |   Component:  Website                    
 Version:          |    Keywords:                             
-------------------+--------------------------------------------------------
 The email notifications from the tracker are noisier than they need to be.
 Every tac notification body begins with header of ticket properties
 (reporter, type, priority, etc). These properties rarely change so we
 don't need to have them flashed at us with every ticket update. The most
 relevant information what's new and changed, is what we want to see first.

 Fortunately the templating system gives enough flexibility to present
 things differently. Let's move the rarely changing items to the bottom of
 the message (or not include them at all, as the definitive record is the
 website anyway).

 Here is a current sample notification from a ticket comment being added.
 Note that the info of interest doesn't start until line 9.

 {{{
 #162: pythonwin launcher
 --------------------------+-------------------------------------------------
 Reporter:  wildintellect  |       Owner:  osgeo4w-dev@…
     Type:  enhancement    |      Status:  new
 Priority:  major          |   Component:  Package
  Version:  1.0            |    Keywords:  python pythonwin
 --------------------------+-------------------------------------------------

 Comment(by maphew):

  I put together a version of [pkg-python-win32] which creates desktop and
  ...
 }}}

 Here is a presentation that moves the most relevant information to the
 top:
 {{{
 #162: pythonwin launcher
 Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/162#comment:3>

 Comment(by maphew):

  I put together a version of [pkg-python-win32] which creates desktop and
  ...
  ...
  ...

 --------------------------+-------------------------------------------------
 Reporter:  wildintellect  |       Owner:  osgeo4w-dev@…
     Type:  enhancement    |      Status:  new
 Priority:  major          |   Component:  Package
  Version:  1.0            |    Keywords:  python pythonwin
 --------------------------+-------------------------------------------------
 OSGeo4W <http://trac.osgeo.org/osgeo4w>
 OSGeo4W is the Windows installer and package environment for the OSGeo
 stack.
 }}}

 And this is the template modification that enables it, a very simple
 modification of [http://trac.edgewall.org/wiki/0.11/TracNotification
 #Customizingthee-mailcontent the default] (only 4 lines changed).
 {{{
 $ticket_body_hdr
 Ticket URL: <$ticket.link>
 #choose ticket.new
   #when True
 $ticket_props  # moved here from line 3
 $ticket.description
   #end
   #otherwise
     #if changes_body
 Changes (by $change.author):
 ...
 ...
 ...
 --
 $ticket_props  # repeated, but only on new tickets.
 Ticket URL: <$ticket.link>
 $project.name <${project.url or abs_href()}>
 $project.descr
 }}}

 New tickets will remain mostly as they are now, reporting the properties
 at the beginning of the message, and then repeated again in the footer. So
 there is some duplication, but given the position I think it acceptable.
 (Someone more familiar with Genshi templates could figure out how to avoid
 the duplication if it is really desired).

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/261>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list