Skip to content

Suggested changes metrics - #7635

Merged
shiftkey merged 26 commits into
developmentfrom
suggested-changes-metrics
May 28, 2019
Merged

shiftkey merged 26 commits into
developmentfrom
suggested-changes-metrics

Conversation

@niik

@niik niik commented May 27, 2019

Copy link
Copy Markdown
Member

Overview

Addresses (but does not yet fully close): #6714

This PR implements the critical piece of #6714, namely the suggestedStepCreatePR metric 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 as createPullRequestCount).

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 both suggestedStepCreatePR and createPullRequestCount will increment whereas if a PR is created from the menu or from a keyboard shortcut only createPullRequestCount will increment.

Release notes

Notes: no-notes

@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 27, 2019
@niik niik added this to the 1.7.0 milestone May 27, 2019
Comment thread app/src/ui/app.tsx Resolved
@shiftkey shiftkey self-assigned this May 27, 2019
Comment thread app/src/ui/lib/button.tsx Resolved
Comment thread app/src/lib/stats/stats-database.ts Resolved

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the changes invoke the new stats functions. Most of my outstanding questions are about the keys used to name the new metrics...

Comment thread app/src/lib/stats/stats-database.ts Resolved
Comment thread app/src/lib/stats/stats-store.ts Resolved
Comment thread app/src/lib/stats/stats-store.ts Resolved
@niik

niik commented May 28, 2019

Copy link
Copy Markdown
Member Author

Ready for another look

@nerdneha

Copy link
Copy Markdown
Contributor

@niik and I talked about the metrics and are 👍 on differentiating button vs. shortcut for creating a PR only.

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
tierninho self-requested a review May 28, 2019 18:56

@tierninho tierninho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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. 💭 )

@shiftkey

Copy link
Copy Markdown
Member

* 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.

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.

@niik

niik commented May 28, 2019

Copy link
Copy Markdown
Member Author

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.

@nerdneha

nerdneha commented May 28, 2019 •

Copy link
Copy Markdown
Contributor

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!

@shiftkey

Copy link
Copy Markdown
Member

Based on all of us agreeing, i think this is good to merge today!

Aiming to merge this in with the next 30mins

@outofambit

Copy link
Copy Markdown
Contributor

thanks everyone! i’ll plan to merge this in 15 minutes unless someone objects before then. :)

@outofambit

Copy link
Copy Markdown
Contributor

i’ll let @shiftkey do the honors since he called dibs!

@shiftkey
shiftkey merged commit abc6392 into development May 28, 2019
@shiftkey
shiftkey deleted the suggested-changes-metrics branch May 29, 2019 14:55
@outofambit outofambit added the metrics measuring user behavior for better decisions label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metrics measuring user behavior for better decisions ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants