Project Metrics - Midterms already?

Events happening in the community are now at Drupal community events on www.drupal.org.
drewish's picture

I'd totally fallen off of writing these updates so I'll start by discussing what I've been up to.

I've got a framework in place for computing, ranking and displaying the metrics. You can view the code that's in my sandbox. I've been able to test it out on a sanitized version of the Drupal.org database.

I think it's best to start with a little glossary to explain the way the parts work together:

Metric
A metric is a function that takes a node and computes a numeric score and an explanatory string.
Ranking
A ranking has a name, a numeric threshold, and a description. The ranking's purpose is to help a user interpret a property's score. Is a score of 30 is good or bad?
Property
A property has a name and a description to explain what it measures. The property is made up of metrics and rankings. Each metric within the property can have options and a multiplier. The multiplier is used to adjust the importance of each metric in the overall score.
Property result
When a property is computed for a node, each metrics is evaluated, the numeric value multiplied by the multiplier then added to the total, and the explanatory strings concatenated. This is stored in the database and displayed in a block on the node's page.

The property results are computed during a cron run by first looking for missing results and then updating the most out of date. The administrator can determine how frequently the properties are updated and how many are updated in a single cron run.

I've got the following metrics working, in decreasing order of usefulness:

  • CVS: Maintainer count - If there are more than the specified number of maintainers, returns 1.
  • Project Release: Has official release - Returns 1 if there is a published official release for the specificed version, else -1.
  • Metrics: Node body length - If there are more than the specified number of words, returns 1.
  • Metrics Test: Always one - This always returns one
  • Metrics Test: Always zero - This always returns zero.
  • Metrics Test: Node ID - This returns the node's ID.

I've got a page up where I'm trying to get feedback on other metrics: http://groups.drupal.org/node/5022

Currently I'm working with dww on #128827 which will log the usage information from the update.module (in Drupal 6.x) and update_status.module (5.x).

Issue tracking and software releases

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: