-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix Jetpack app review URL #19299
Fix Jetpack app review URL #19299
Conversation
Ratings submitted for the Jetpack app were being submitted to the WordPress app's store listing. This happened because the app was using the incorrect URL to open the App Store app review screen. While the app correctly defined the URL for the Jetpack app, it was then being overwritten at runtime by a URL fetched from an endpoint. This endpoint was only returning a URL for the WordPress app, so it overwrote the Jetpack app's URL with the WordPress app's one. This PR mitigates the problem on the Jetpack app by skipping the endpoint request for the Jetpack app only. This doesn't change behavior on the WordPress app. The impact of this change is that we can no longer remotely disable in-app requests for reviews. However, I don't recall this every being used. The priority here is to restore the Rate Us functionality for the Jetpack app, so follow-up work can look for a more permanenent fix.
Generated by 🚫 dangerJS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 @guarani - I tested:
- WordPress app -> Me -> About WordPress for iOS -> Rate Us
- Jetpack app -> Me -> About Jetpack for iOS -> Rate Us
And both went to their respective App Store pages to add a review, so these changes look good to me! I did have one question about the ScreenObject dependency version bump. Thanks!
You can test the changes in Jetpack from this Pull Request by:
|
You can test the changes in WordPress from this Pull Request by:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @guarani. 🚀
I will add one more thing about my review process - I stopped at step 5 in your testing steps "When the modal screen is presented to rate the app, the [app name] listing should be shown behind the modal". I felt this was enough to confirm it went to the right URL, but let me know if you disagree. |
I agree this is a good enough check. Thanks for the review @twstokes! |
👋 @mokagio, we think this deserves a betafix (in short, JP app reviews from the "Rate Us" functionality were going to the WP app instead). I'm merging this into |
PS I didn't add release notes because I the release is already cut and I figured it's too late to get them translated. I could be wrong about it being too late though since we're still in the beta's first week. That said, we estimated that the JP app was only getting at most 1 review per month, so I also don't think this bug fix is impactful enough for general users to warrant adding release notes. Please let me know if you think otherwise. |
@guarani this has been bundled as part of 20.7 beta 2 (20.7.0.2). Thanks for your work 🙌
Good call. The main issue with adding release notes after the first couple of days of the code freeze is that the editorialized version has already been made, so any update would need to go through editorialization and be resubmitted for translation (if landing after the second Monday of the sprint). |
Hey @mokagio, thanks for clarifying that it isn't just translation, but also editorialization, that wouldn't have had time to be completed had I added release notes for this. |
Fixes #19300
Ratings submitted for the Jetpack app were submitted to the WordPress app's store listing. This happened because the app used the incorrect URL to open the App Store app review screen. While the app correctly defined the URL for the Jetpack app, it was then overwritten at runtime by a URL fetched from an endpoint. This endpoint was only returning a URL for the WordPress app, so it overwrote the Jetpack app's URL with the WordPress app's one.
This PR mitigates the problem on the Jetpack app by skipping the endpoint request for the Jetpack app only. This doesn't change behavior on the WordPress app. The impact of this change is that we can no longer remotely disable in-app requests for reviews. However, I don't recall this ever being used. The priority here is to restore the Rate Us functionality for the Jetpack app so that follow-up work can look for a more permanent fix.
To test
a. Open the App Store app
b. Tap your profile picture
c. Tap your name
d. Tap "Ratings and Reviews"
e. Ensure that the rating was submitted for the Jetpack app
Regression Notes
This PR intentionally disables the ability to remotely turn off in-app review prompts for the Jetpack app. My current understanding is that this remote ability was not used often, so disabling it won't cause a significant negative impact.
Tested the review submission process using the above testing steps.
None, automated testing isn't practical for the review submission UI.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.