Most active bugs summary

This is tracked at: http://www.mantisbt.org/bugs/view.php?id=8208

Rationale

The summary page could benefit from a list of the most active bugs, since active bugs are likely related to topics the users and/or the developers are interested in.

Several metrics were proposed as a measure of activity:

  1. the number of views of the given bug (currently, this data is not available in mantis)
  2. the number of monitors
  3. the number of bugnotes
  4. the number of attachments

Implementation

The current implementation leverages the bug_history_table content to score the bugs and build the top ten list; this looks like the easiest way to take into account all of the above metrics (of course excluding bug views)

Of course we could refine the scoring function to give “better” results; for example:

and/or provide a custom function hook to personalize the scoring function