@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove line-related stats from Differential

Summary:
Ref T2825. Line stats are misleading when multiple commits are associated with a revision. It's better to have no data than misleading/bad data.

We can compute them accurately against commits via Fact/ETL at some point far in the future (see T1562 / T1135).

Test Plan: {F37519}

Reviewers: ptarjan

Reviewed By: ptarjan

CC: aran

Maniphest Tasks: T2825

Differential Revision: https://secure.phabricator.com/D5432

-9
-9
src/applications/differential/view/DifferentialRevisionStatsView.php
··· 46 46 47 47 $dates = array(); 48 48 $counts = array(); 49 - $lines = array(); 50 49 $days_with_diffs = array(); 51 50 $count_active = array(); 52 51 $response_time = array(); ··· 62 61 ) as $age) { 63 62 $dates[$age] = strtotime($age . ' ago 23:59:59'); 64 63 $counts[$age] = 0; 65 - $lines[$age] = 0; 66 64 $count_active[$age] = 0; 67 65 $response_time[$age] = array(); 68 66 } ··· 96 94 } 97 95 98 96 if (!$revision_seen) { 99 - if ($rev) { 100 - $lines[$age] += $rev->getLineCount(); 101 - } 102 97 $counts[$age]++; 103 98 if (!$old_daycount) { 104 99 $count_active[$age]++; ··· 125 120 126 121 $row_array[$age] = array( 127 122 pht('Revisions per week') => number_format($counts[$age] / $weeks, 2), 128 - pht('Lines per week') => number_format($lines[$age] / $weeks, 1), 129 123 pht('Active days per week') => 130 124 number_format($count_active[$age] / $weeks, 1), 131 125 pht('Revisions') => number_format($counts[$age]), 132 - pht('Lines') => number_format($lines[$age]), 133 - pht('Lines per diff') => number_format($lines[$age] / 134 - ($counts[$age] + 0.0001)), 135 126 pht('Active days') => number_format($count_active[$age]), 136 127 ); 137 128