Fix Tracks event for adding domain to cart#18809
Merged
guarani merged 1 commit intorelease/20.0from Jun 2, 2022
Merged
Conversation
Contributor
You can test the changes in Jetpack from this Pull Request by:
|
Contributor
You can test the changes in WordPress from this Pull Request by:
|
It's my understanding that the `domains_dashboard_select_domain_tapped` Tracks event should be fired when a domain is added to the cart from the "Search domains" screen. It looks like there was a typo and `domains_dashboard_add_domain_tapped` was being fired instead. From what I can tell, this fix brings iOS in-line with Android, see code here: https://github.com/wordpress-mobile/WordPress-Android/blob/a045c883a39f8228b1aeaa8392dd64f90517eeec/WordPress/src/main/java/org/wordpress/android/ui/domains/DomainSuggestionsViewModel.kt#L217-L225
11bd37b to
1e404b0
Compare
Contributor
Author
|
👋 Hi @mokagio, this PR targeting the current beta. |
frosty
approved these changes
Jun 2, 2022
Contributor
frosty
left a comment
There was a problem hiding this comment.
Looks good to me! Thanks for catching this!
7 tasks
Contributor
|
@guarani this has been bundled as part of 20.0 beta 1 (20.0.0.1). Thanks for your work 🙌 |
Contributor
Author
|
Thank you, @mokagio! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's my understanding that the
domains_dashboard_select_domain_tappedTracks event should be fired when a domain is added to the cart from the "Search domains" screen. It looks like there was a typo anddomains_dashboard_add_domain_tappedwas being fired instead.From what I can tell, this fix brings iOS in-line with Android, see code here:
https://github.com/wordpress-mobile/WordPress-Android/blob/a045c883a39f8228b1aeaa8392dd64f90517eeec/WordPress/src/main/java/org/wordpress/android/ui/domains/DomainSuggestionsViewModel.kt#L217-L225
To test
Test the fix
domains_dashboard_select_domain_tapped) was firedVerify the bug (optional)
release/20.0domains_dashboard_add_domain_tapped) was firedRegression Notes
This change should fix a straightforward bug. I suppose the only unintended impact would be if the new event is wrong
Just manual testing.
It could nice to add tests for tracks events for this feature. At the moment, I don't think it's worth it in this PR.
PR submission checklist:
RELEASE-NOTES.txtif necessary.