Skip to content

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

Merged
sgomes merged 7 commits into
masterfrom
update/improve-async-checklist-code
Nov 19, 2018
Merged

sgomes merged 7 commits into
masterfrom
update/improve-async-checklist-code

Conversation

@sgomes

@sgomes sgomes commented Nov 19, 2018

Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request

Code improvements to async checklist merged in #27926 as per the review in that PR. It was decided these could be done after merging, to reduce the time the PR stayed open and generating merge conflicts.

Testing instructions

Try the various checklist variations and ensure that the behaviour remains the same.

@sgomes sgomes added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Checklist labels Nov 19, 2018
@sgomes
sgomes requested a review from jsnajdr November 19, 2018 14:12
@matticbot

Copy link
Copy Markdown
Contributor

this.props.track( 'calypso_checklist_banner_close', {
site_id: siteId,
} );
}

@jsnajdr jsnajdr Nov 19, 2018 •

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.

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. ⚡️💥

@sirreal sirreal Nov 19, 2018 •

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.

Thanks for spotting this 🙇

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

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

Ready to 🚢 if the tracks prop gets fixed The Right Way™ Thanks for making the checklist code better!

@sirreal sirreal added the [Feature] Tracks Metrics & Monitoring Capturing analytics about user behavior on WordPress.com. label Nov 19, 2018
@sgomes
sgomes merged commit 954cee0 into master Nov 19, 2018
@sgomes
sgomes deleted the update/improve-async-checklist-code branch November 19, 2018 15:58
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Checklist Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Tracks Metrics & Monitoring Capturing analytics about user behavior on WordPress.com.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants