-
Notifications
You must be signed in to change notification settings - Fork 808
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
Simple Payments: pre-populate attributes when converting from classic block #11731
Conversation
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: April 29, 2019. |
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.
Nice fix! It worked as expected when I converted to blocks a existing post created in the classic editor that was containing a payment button.
b330bec
to
b3025c7
Compare
@kraftbj FYI I've added this to 7.2 milestone as it's a bugfix, in case it makes it in before we ship blocks. Lemme know if you'd prefer to punt it for 7.3 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Since it isn't a regression caused by 7.2, I would prefer to punt to 7.3 if it isn't critical. We've been burnt before by sliding in fixes late that caused new issues (I've done plenty of that burning). One advantage of waiting too is don't need to worry about cherry-picking cross-repo :) |
Sure, works for me!
…On Fri, 29 Mar 2019, 00:38 Brandon Kraft, ***@***.***> wrote:
Since it isn't a regression caused by 7.2, I would prefer to punt to 7.3
if it isn't critical. We've been burnt before by sliding in fixes late that
caused new issues (I've done plenty of that burning).
One advantage of waiting too is don't need to worry about cherry-picking
cross-repo :)
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#11731 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFUgPNioteOnJdOF-XhuFMUSpQJD6OIks5vbURZgaJpZM4cOvIG>
.
|
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 think punting to 7.3 should be fine, but I'd like to get this on master ASAP so that we can fix the problem for wpcom sites. |
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 works well in my tests. 👍
it populates rightly the product properties gotten from the data/response when it comes from a shortcode transformation.
341f90c
b3025c7
to
341f90c
Compare
Caution: This PR has changes that must be merged to WordPress.com |
@roccotripaldi Damian is on leave, would you be available to bring this over the finish line? |
@obenland |
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.
Works as advertised.
Changes proposed in this Pull Request:
It populates rightly the product properties gotten from the data/response when it comes from a shortcode transformation.
Fixes Automattic/wp-calypso#29870
Testing instructions:
a. Get the product ID (inspect the dom tree trying to find the ID, or inspect the XHR request from the network tab)
b. Once you get the product ID, create a new
Classic
block with the Simple Payments shortcode:Convert to Blocks
![image](https://user-images.githubusercontent.com/77539/55110540-fec36900-50b6-11e9-8138-aa263d6aa515.png)
Once it's converted it should populate the fields with the right data.
![populate-simple-payments](https://user-images.githubusercontent.com/77539/55112327-1e5c9080-50bb-11e9-8317-8b8f909b3bb8.gif)
Proposed changelog entry for your changes:
Simple Payments Button: Convert classic Blocks (shortcode) rightly.