Repository navigation
Suggested changes metrics - #7635
Conversation
shiftkey
left a comment
There was a problem hiding this comment.
Tested the changes invoke the new stats functions. Most of my outstanding questions are about the keys used to name the new metrics...
Co-Authored-By: Brendan Forster <[email protected]>
|
Ready for another look |
|
@niik and I talked about the metrics and are 👍 on differentiating button vs. shortcut for creating a PR only. |
shiftkey
left a comment
There was a problem hiding this comment.
I'm 👍 to landing this in time for 1.7 based on what it adds, but happy to hear from others about whether they are 👍 or 👎 here.
tierninho
left a comment
There was a problem hiding this comment.
Tested the following and all were incremented as designed:
- suggestedStepOpenInExternalEditor ✅
- suggestedStepOpenWorkingDirectory ✅
- suggestedStepViewOnGitHub ✅
- suggestedStepPublishRepository ❓see note
* - suggestedStepPublishBranch ✅
- suggestedStepCreatePR ✅
* Note that although suggestedStepPublishRepository does increment when the publish button is clicked, the user can still cancel and not actually publish. Not sure if this use case matters.
(PS, if we are using these metrics to confirm the usefulness of the Next Steps, then the results will a bit misleading as we prioritize the stashing next step over most of them, thus forcing the user to use the menu option. 💭 )
Personally I'm fine with this. I think it's still interesting for us to see how often users gravitate towards that button, even if they don't complete the flow. I'll defer to @niik and @nerdneha here about whether there's interest in a more accurate metric about seeing users complete the publish flow. |
The same thing can be said about the create pr metrics. We don’t know if the user actually completes the PR flow. Such data is definitely interesting but for not for this PR. We’re looking for relative use between suggested next steps as well as success indicator for create PR specifically since that’s a new feature. |
|
lol @niik beat me to it. I think a great future step is seeing the "funnel" for all of these actions and whether they're actually completed but it isn't necessary for this iteration. To further back up what @niik is saying, the problem we're trying to address is that people have to think about the next step they want to do and then find the button/menu item or remember the shortcut. The solution is to make those next steps more discoverable and make it such that the user is more likely to continue the workflow. So, these metrics are to measure whether process is more likely to be continued and then eventually we can make sure that the next steps are completed for each workflow we provide a next step for. Based on all of us agreeing, i think this is good to merge today! |
|
thanks everyone! i’ll plan to merge this in 15 minutes unless someone objects before then. :) |
|
i’ll let @shiftkey do the honors since he called dibs! |

Overview
Addresses (but does not yet fully close): #6714
This PR implements the critical piece of #6714, namely the
suggestedStepCreatePRmetric which will allow us to differentiate between how often users use the create pull request suggested next step vs how often they use the menu (the latter already exists in production ascreatePullRequestCount).Additionally this will give us metrics to evaluate the relative use, and effectiveness, of the various suggested next steps.
I'm tentatively putting this into 1.7.0 since this would be nice to have but if we run up on the deadline this is not a critical piece.
Description
The entirety of metrics added are as follows
suggestedStepOpenInExternalEditor
The number of times the user has opened their external editor from the suggested next steps view
suggestedStepOpenWorkingDirectory
The number of times the user has opened their repository in Finder/Explorer from the suggested next steps view
suggestedStepViewOnGitHub
The number of times the user has opened their repository on GitHub from the suggested next steps view
suggestedStepPublishRepository
The number of times the user has used the publish repository action from the suggested next steps view
suggestedStepPublishBranch
The number of times the user has used the publish branch action branch from the suggested next steps view
suggestedStepCreatePR
The number of times the user has used the Create PR suggestion in the suggested next steps view. Note that this number is a subset of
createPullRequestCount. I.e. if the Create PR suggestion is invoked bothsuggestedStepCreatePRandcreatePullRequestCountwill increment whereas if a PR is created from the menu or from a keyboard shortcut onlycreatePullRequestCountwill increment.Release notes
Notes: no-notes