Repository navigation
metrics for force push - #7154
Conversation
1e00b28 to
7b88906
Compare
niik
left a comment
There was a problem hiding this comment.
Code looks good aside from that one comment about a redundant check but I have a question about the metric itself. With this change we would not count a force push in the general [dotCom|enterprise|generic]Push metric. Compare this to the division between commit and partialCommits where a partial commit gets counted both as a commit and as a partial commit.
In other words, in the commits case partial commits is a subset of the total number of commits and the commitCount is the overall number of commits regardless of type. In this case the pushCount and forcePushCount are non-overlapping segments.
Looking at another such scenario we have the pullWithDefaultSettingCount and pullWithRebaseCount. These are not ambiguous like the cases above since they're explicitly named to indicate that there are no overlap.
I don't have a strong preference here but I feel like we should strive towards a consistent approach or at the very least be really clear in the documentation such that we minimize the risk of confusion when we analyze the data. Right now the documentation is not clear on what's included and not:
The number of time the user pushed commits to a repo hosted on Github.com.
Reading that and not having read the code I would assume this meant all pushes regardless of whether they were forced or not.
cc @scottypate For any feedback or preference you might want to provide.
|
@niik that's a good shout, and I'm happy to count |
Nope, It makes sense to me that the regular push should increment as well. |
7b88906 to
5d5e764
Compare
Overview
Closes #6935
Description
The third item and fourth items will also add
dotcomPushCount,enterprisePushCountandexternalPushCountwhich do not currently exist on the usage site but were discussed back in #5549.Release notes
Notes: no-notes