-
Notifications
You must be signed in to change notification settings - Fork 815
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
Connection: Do not show plans grid if site has pending plan #14916
Conversation
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: April 7, 2020. |
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.
I love how simple this is. Minor, optional nit but overall this approach is great.
Also - tests?
_inc/connect-button.js
Outdated
@@ -138,7 +138,7 @@ jQuery( document ).ready( function( $ ) { | |||
}, | |||
success: function( data ) { | |||
var siteData = JSON.parse( data.data ); | |||
jetpackConnectButton.isPaidPlan = ! siteData.plan.is_free; | |||
jetpackConnectButton.isPaidPlan = ! siteData.plan.is_free || siteData.is_pending_plan; |
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.
Can you reverse the order of the RHS? in it's current state it's easy to mis-read the logic if you don't know operator precedence by heart
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.
I've reversed the order as requested. 👍
bb48d91
to
f86c45d
Compare
Do you know if there are existing tests that I can leverage? I didn't see any tests. But, it's also been quite a while since I've been active in the Jetpack plugin. |
I don't think there are. It's not a big enough change to warrant
bootstrapping them.
…On Fri, Mar 6, 2020, 7:52 PM Eric Binnion ***@***.***> wrote:
Also - tests?
Do you know if there are existing tests that I can leverage? I didn't see
any tests. But, it's also been quite a while since I've been active in the
Jetpack plugin.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14916?email_source=notifications&email_token=AAAMVOEQETPE6GKXPA4FMKLRGHAHRA5CNFSM4LDJ4WRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODOJGY#issuecomment-596042907>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMVOE6DOD5TD4FTL23SITRGHAHRANCNFSM4LDJ4WRA>
.
|
Need to go out with D40032-code . |
I've updated the patch to look for the |
D40032-code is now deployed. |
Howdy! The Jetpack team has disappeared for a few days to a secret island lair to concoct new ways to make Jetpack one hundred billion percent better. As a result, your Pull Request may not be reviewed right away. Do not worry, we will be back next week to look at your work! Thank you for your understanding. |
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.
This tests well, it should be good to merge!
* Initial changelog entry * Changelog: add #14904 * Changelog: add #14910 * Changelog: add #14913 * Changelog: add #14916 * Changelog: add #14922 * Changelog: add #14924 * Changelog: add #14925 * Changelog: add #14928 * Changelog: add #14840 * Changelog: add #14841 * Changelog: add #14842 * Changelog: add #14826 * Changelog: add #14835 * Changelog: add #14859 * Changelog: add #14884 * Changelog: add #14888 * Changelog: add #14817 * Changelog: add #14814 * Changelog: add #14819 * Changelog;: add #14797 * Changelog: add #14798 * Changelog: add #14802 * Changelog: add #13676 * Changelog: add #13744 * Changelog: add #13777 * Changelog: add #14446 * Changelog: add #14739 * Changelog: add #14770 * Changelog: add #14784 * Changelog: add #14897 * Changelog: add #14898 * Changelog: add #14968 * Changelog: add #14985 * Changelog: add #15044 * Changelog: add #15052 * Update to remove Podcast since it remains in Beta * Changelog: add #14803 * Changelog: add #15028 * Changelog: add #15065 * Changelog:add #14886 * Changelog: add #15118 * Changelog: add #14990 * Changelog: add #14528 * Changelog: add #15120 * Changelog: add #15126 * Changelog: add #15049 * Chanegelog: add #14852 * Changelog: add #15090 * Changelog: add #15138 * Changelog: add #15124 * Changelog:add #15055 * Changelog: add #15017 * Changelog: add #15109 * Changelog: add #15145 * Changelog:add #15096 * Changelog:add #15153 * Changelog: add #15133 * Changelog: add #14960 * Changelog: add #15127 * Changelog: add #15056 * Copy current changelog to changelog archive. * Clarify changelog description
The in-place connection creates a regression in the connection flow for users that have a pending plan. Specifically, users with a pending plan, should be treated as users that already have a plan, and as such, those users should not see the plans grid after connecting their site.
Changes proposed in this Pull Request:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
This is a bug fix for a relatively new connection flow.
Testing instructions:
Proposed changelog entry for your changes: