Repository navigation
Conversation
|
@nerdneha @desktop/engineering if you've got time today/tomorrow, could you sanity check that these Here's the original list, with my current thoughts about how this PR addresses them:
I think this is covered by
This should be covered by
We have various related commit metrics already - To put this simply as a percentage value (so from "never" to "always") this could be computed by
I think this just represents all users with
This feels like |
55a35cd to
afb1f00
Compare
|
Marking this as |
This comment was marked as off-topic.
This comment was marked as off-topic.
these all look good to me, but i have questions about:
is that how often they're committing to protected branches? or how often they try to push to a protected branch and get rejected? its pretty vague in #7091 but i'm leaning towards the former, which i believe is covered with the calculation @shiftkey outlined above (and thus by the implementation in this PR). @nerdneha can double check this in case we're reading this wrong? |
This is also my feeling too, because the check for "the push was rejected" is much later in the flow, and was separate enough from the rest of the questions about commit time that I didn't focus on anything I wrote up some notes about how we could detect failing pushes being related to protected branches in #7023 (comment), if you want to understand the potential extra work here. |
We have This should be fine since the
We have Would this be per repo or across the entire user's account? It might be helpful to also know how many repos that is across also but I'm not 100% sure here.
We're probably looking for whether the amount of times people commit to a protected branch increases or decreases over time. I think having
i think this is "attempted commits" (aka committing to protected branches, as @outofambit said) -- so it covers commits and rejections
I agree, it's # of users with
I think this is |
|
@nerdneha thanks for the extra context!
This metric is not broken down per-repository, and I'd love to unpack what "per repo" means here because I don't think I have a good grasp on how this should be computed. Could you elaborate?
Based on my understanding of what you're saying here, are you interesting in how may times a |
|
@shiftkey thanks for the great points there. addressing the "per repo" piece here and will address the "attempted commits" piece in a subsequent comment. @niik and I took a look at the metrics you're collecting and have a change that can address the "per repo" piece elegantly without actually having to collect each commit on a per repo basis.
Ultimately, we want to know the
Would this be too big of a change to make today? |
English language is hard y'all. Sorry about the confusion, what I was trying to say is that we shouldn't have to worry about any case where a push is rejected. What we have is sufficient and no extra work is needed. When we said |
Not too big of a change, just wanted to understand the context as it wasn't familiar to me and make sure I didn't head down the wrong path.
👍 |
totally, this was a super valid clarification and I'm glad we could take a step back and avoid actually collecting metrics on a per repo basis for this feature! thank you!!! 🙏 🙇♀ |
0fb09df to
006d484
Compare
|
I've update this PR to add two commits:
I'm still refining the flow to confirm the logic is correct and it's caching as much as possible, but I wanted to get this out for other 👀 while it's fresh. The goal with this last commit was to relax the flow a bit to:
Feel free to challenge those assumptions if you think there's a better flow here |
Co-Authored-By: evelyn masso <[email protected]>
72c57c6 to
60a5cb7
Compare
Dropping this because I believe we've settled on the right approach for what we're measuring here
|
Just updated the PR description to indicate this will be enabled for the next beta release, and I'll follow up with a PR to enable it for production if we're happy to turn it on for 1.7. |
Overview
Second PR to address #7091
Description
commitsToProtectedBranchandcommitWithBranchProtectionsEnabledto help understand how protected branches are encountered in the wildRepositoriesStorenot being aware of "branch protection is enabled" scenarioRepositoriesStore.getBranchProtectionContextrunsdevelopmentonce retrieve and cache protected branch information per-repository #7529 has been mergedI believe this is feature-complete now, and will go out with the next beta. I'll follow up with a PR to enable it for production based on how further testing on beta looks.
Release notes
Notes: no-notes