Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve async checklist code. Follow-up to #27926 #28678

Merged
merged 7 commits into from
Nov 19, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ export class ChecklistBanner extends Component {
setNeverShowBannerStatus( siteId, true );

this.setState( { closed: true } );

if ( this.props.track ) {
this.props.track( 'calypso_checklist_banner_close', {
site_id: siteId,
} );
}
Copy link
Member

@jsnajdr jsnajdr Nov 19, 2018

Choose a reason for hiding this comment

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

The original author clearly had intent to send the calypso_checklist_banner_close tracks event, but then something went wrong 😄 Let's make the tracks call work great again.

It got broken in this commit: 29af3b0. Part of #26764 by @ockham and @sirreal.

That commit removes file my-sites/stats/checklist-banner/index.jsx which connected the track prop to recordTracksEvent action.

And creates a new file, my-sites/checklist/wpcom-checklist/checklist-banner/index.js, which still calls this.props.tracks, but doesn't do the connect. ⚡️💥

Copy link
Member

@sirreal sirreal Nov 19, 2018

Choose a reason for hiding this comment

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

Thanks for spotting this 🙇

Will note the affected period: 623-gh-tracks-events-validation-status

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the latest commit adds it back in correctly! :) Could one of you please double-check the code looks good?

Copy link
Member

Choose a reason for hiding this comment

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

Looks good 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, @jsnajdr ! Also, by the way, excellent sleuthing work!

};

render() {
Expand Down