Skip to content

metrics for rebase feature #6550

Closed
Closed

Description

@shiftkey

This is a placeholder issue for discussing what metrics we want to roll out as part of this feature. There's probably some prior art from the Merge Conflicts feature that we can mirror here.

cc @desktop/product @desktop/analytics

Activity

  1. added
    meta
    on Jan 8, 2019
  2. added this to the 1.7.0 milestone on Jan 8, 2019
  3. shiftkey commented on Feb 5, 2019

    @shiftkey
    MemberAuthor

    For reference, these are the merge events that are probably directly equivalent to rebase operations:

    • mergeAbortedAfterConflictsCount - the number of times a merge was aborted by the user
    • mergeSuccessAfterConflictsCount - the number of times a merge was completed successfully
    • mergeIntoCurrentBranchMenuCount - the number of time a merge was initiated from the menu
    • mergedWithCleanMergeHintCount - the number of times the app reported that a merge would be "clean" (i.e. "no conflicts? sweet!")
    • mergedWithConflictWarningHintCount - the number of times the app reported that a merge would not be "clean" (i.e "oh no, there be dragons!")
    • mergedWithLoadingHintCount - the number of times the user went straight to merging without looking at the result (i.e. "whatever, let's do this!")
  4. shiftkey commented on Feb 14, 2019

    @shiftkey
    MemberAuthor

    @desktop/product @desktop/analytics friendly nudge on what metrics should be in for 1.6.3, versus what can be deferred to 1.7.0

  5. scottypate commented on Feb 14, 2019

    @scottypate

    Deferring that decision to @iAmWillShepherd. I would lean on the side of making sure what we have is accurate prior to focusing on new metric additions.

  6. billygriffin commented on Feb 15, 2019

    @billygriffin
    Contributor

    @scottypate I view that project as more of a thing that's happening in parallel but shouldn't stop us from continuing to measure the things we're shipping.

    @shiftkey For 1.6.3, I think we ought to measure:

    1. Number of times a user pulls with rebase (potentially as a % of regular pulls if that's possible?)
    2. Number of times a user encounters a conflict while pull rebasing.
      2a. Number of times a pull rebase is completed successfully after a conflict.
      2b. Number of times a pull rebase is aborted after a conflict.
    3. Number of times a user force pushes (potentially as a % of regular pushes if that's possible?) moved to metrics for rebase features in 1.7.0  #6935

    The big things we're trying to learn here are whether this is something people are enabling without surfacing anything in the UI, how frequently they're hitting conflicts, and whether they're subsequently force pushing the resolution.

    Does that sound reasonable/appropriate?

  7. shiftkey commented on Feb 21, 2019

    @shiftkey
    MemberAuthor

    Does that sound reasonable/appropriate?

    This all sounds reasonable

  8. scottypate commented on Feb 21, 2019

    @scottypate

    Does that sound reasonable/appropriate?

    I second that this is all good stuff.

    A follow-up measurement that I need to look at is the effect that rebasing in desktop has on other collaborators on the repo that are not using desktop. I have a hypothesis that easier rebasing in Desktop could increase conflicts in other areas of the product. We don't need to collect any data for that here other than what @billygriffin described above.

  9. self-assigned this
    on Feb 21, 2019
  10. shiftkey commented on Feb 25, 2019

    @shiftkey
    MemberAuthor

    3. Number of times a user force pushes (potentially as a % of regular pushes if that's possible?)

    Force push is not in scope for 1.6.3 so we don't have anything to support this metric. Moving this out to #6935 to track there.

  11. shiftkey commented on Feb 26, 2019

    @shiftkey
    MemberAuthor

    An update on what is coming in 1.6.3 for rebase metrics:

    • Number of times a user pulls with rebase (potentially as a % of regular pulls if that's possible?)

    See #6893 for those metrics

    if (gitStore.pullWithRebase) {
    this.statsStore.recordPullWithRebaseEnabled()
    } else {
    this.statsStore.recordPullWithDefaultSetting()
    }

    1. Number of times a user encounters a conflict while pull rebasing.
      2a. Number of times a pull rebase is completed successfully after a conflict.
      2b. Number of times a pull rebase is aborted after a conflict.

    See #6951 for those metrics

    if (
    previousTip !== currentTip &&
    currentBranch === prevConflictState.targetBranch
    ) {
    statsStore.recordRebaseSuccessAfterConflicts()
    } else {
    statsStore.recordRebaseAbortedAfterConflicts()
    }

    Once both of those are merged, I'll add docs and update Central to pass through these new metrics so we can get them into the beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

meta

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions