Roundup Tracker - Issues

Message5258

Author rouilj
Recipients antmail, ezio.melotti, rouilj
Date 2015-03-04.19:16:51
Message-id <20150304191349.3C60B81BE3@vm71.cs.umb.edu>
In-reply-to <1425490523.3.0.400423156491.issue2550876@psf.upfronthosting.co.za> <1425490523.3.0.400423156491.issue2550876@psf.upfronthosting.co.za>
Hello Anthony:

In message <1425490523.3.0.400423156491.issue2550876@psf.upfronthosting.co.za> 
<1425490523.3.0.400423156491.issue2550876@psf.upfronthosting.co.za>,
Anthony writes:

>Is there a posibility to sort issues by messages count it contain?

I can think of a couple of ways. The easiest is to add a new
number field to the issue called (for example) messagecount.

So in schema.py add:

 issue = IssueClass(db, "issue",
                      ... ,

                      messagecount=Number() )

Then in an auditor set the value of messagecount to the number of
elements in the messages multilink property plus 1.

Then modify the search and index pages to support the new field.
Sorting by the new field should just work I claim.

See:

  http://roundup.sourceforge.net/docs/customizing.html#adding-a-new-field-to-the-classic-schema

for more details on modifying the tracker to support the new field.

There isn't a good reference for the auditor, but searching:

   http://roundup.sourceforge.net/docs/customizing.html

has some example auditors.

Also rather than opening a ticket you may want to post your request to
the roundup-users list 
    (https://lists.sourceforge.net/lists/listinfo/roundup-users).
The mailing list has a much wider audience and somebody may already
have a solution for you.
History
Date User Action Args
2015-03-04 19:16:52rouiljsetrecipients: + rouilj, ezio.melotti, antmail
2015-03-04 19:16:52rouiljlinkissue2550876 messages
2015-03-04 19:16:51rouiljcreate