Skip to content

Collect Review Turnaround metrics in Metrics table #55

@mrubi-rootstrap

Description

@mrubi-rootstrap

Description

Create the process that periodically collects the Review Turnaround metrics and makes the collected metrics available in the Metrics table.

Background

The metrics table keeps the value of

  • a metric
  • of an entity
  • at a given point in time or at a given time interval

For example it keeps the collected values of the Review Turnaround metric value.

To populate the metrics table a process runs collecting and calculating the values of interest for each given metric.

The process runs by demand as a standalone process or as a frequent cron job.

The process to collect metrics takes into account which values were already collected to avoid duplicating values (which might add corrupted values to the metric) and collects only the values that haven't been processed yet.

This task implements the metrics recollection process for a first concrete case, the Review Turnaround metric.

Sub-tasks

  • Create the Rake task that invokes the process metrics job.

  • Create the ProcessMetricsJob that process the review_turnaround metrics.

  • Create the MetricsDefinition model that relates a wanted metric (such as review_turnaround) with its processor and sources (such as daily per project or weekly per user )

  • Implement a ReviewTurnaroundPerProjectProcessor to generate the review_turnaround metric of projects.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions