Skip to content

Track compare-influenced merges (NDDB) - #5041

Merged
shiftkey merged 15 commits into
i-wanna-comparefrom
under-the-influence
Jun 29, 2018
Merged

shiftkey merged 15 commits into
i-wanna-comparefrom
under-the-influence

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Jun 26, 2018 •

Copy link
Copy Markdown
Contributor

Addresses one of the tasks in #4883.

Specifically, this metric captures the event where a notification is displayed and the user clicks the Compare button and later merges the changes in the compare side bar. That is to say, merging happened as an indirect result of the banner (as opposed to the direct result of the banner which would occur if the user clicks Merge).

@iAmWillShepherd
iAmWillShepherd changed the base branch from master to i-wanna-compare June 26, 2018 19:43
@iAmWillShepherd iAmWillShepherd changed the title Adds ability to track merges that have occured because of the notificatio banner (NDDB) Adds ability to track merges that have occured because of the notification banner (NDDB) Jun 27, 2018
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

@desktop/analytics, just a heads up, I had to rename one of the measures (see commit).

@iAmWillShepherd iAmWillShepherd changed the title Adds ability to track merges that have occured because of the notification banner (NDDB) Track compare-influenced merges (NDDB) Jun 27, 2018
@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 27, 2018

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

Just one question

Comment thread app/src/ui/history/compare.tsx Outdated
this.props.dispatcher.setDivergingBranchBannerVisibility(false)
this.props.dispatcher.recordDivergingBranchBannerDismissal()

if (reason === undefined) {

This comment was marked as spam.

This comment was marked as spam.

readonly dispatcher: Dispatcher
readonly currentBranch: Branch
readonly formState: ICompareBranch
readonly onMerge: () => void

This comment was marked as spam.

@shiftkey shiftkey self-assigned this Jun 29, 2018
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

💯

Comment thread app/src/ui/history/compare.tsx Outdated

if (reason === 'close') {
this.setState({ hasConsumedNotification: false })
return

This comment was marked as spam.

This comment was marked as spam.

break
case 'compare':
case 'merge':
this.setState({ hasConsumedNotification: true })

This comment was marked as spam.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🥇

@shiftkey
shiftkey merged commit 3202740 into i-wanna-compare Jun 29, 2018
@shiftkey
shiftkey deleted the under-the-influence branch June 29, 2018 17:26
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 28, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants