Currently total_churn will do a join on PatchSet and PatchSetFiles and add up everything. But that might not be the best representative of the workload that a given code review has. I'm thinking the size of the largest patch set is a better representative. So we need to do a sum of PatchSetFiles, grouped by PatchSet, then the Max of num_added and num_removed.
Currently
total_churn
will do a join onPatchSet
andPatchSetFiles
and add up everything. But that might not be the best representative of the workload that a given code review has. I'm thinking the size of the largest patch set is a better representative. So we need to do a sum of PatchSetFiles, grouped by PatchSet, then the Max ofnum_added
andnum_removed
.