Code Changes
Question: How many changes were made to the source code during a specified period?
These are changes to the source code during a certain period. For “change” we consider what developers consider an atomic change to their code. In other words, a change is some change to the source code which usually is accepted and merged as a whole, and if needed, reverted as a whole too. For example, in the case of git, each “change” corresponds to a “commit”, or, to be more precise, “code change” corresponds to the part of a commit which touches files considered as source code.
Objectives
Volume of coding activity. Code changes are a proxy for the activity in a project. By counting the code changes in the set of repositories corresponding to a project, you can have an idea of the overall coding activity in that project. Of course, this metric is not the only one that should be used to track volume of coding activity.
Visualizations
Steps
-
Click on
Visualize
option in the sidebar and click on the+
icon to create a new visualization. -
Pick the
Vertical Bar
chart and selectgit
as the index. -
You’ll be presented with the following default visualization.
-
For
Metrics
set the aggregation toUnique Count
and field tohash
. Set the custom label asCommits
as the current unique shows the total number of commits. -
For
Buckets
select the bucket typeX-axis
. -
Set the aggregation to
Date Histogram
, field togrimoire_creation_date
and interval toAuto
. Set the custom label toTime
. -
In the end, your visualization would look something like the this.