-
Notifications
You must be signed in to change notification settings - Fork 799
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
Removes all After the Deadline references from Jetpack #11772
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Are the changes on the |
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 is working for me as expected.
Note that this also removes the "Proofreading Writing" on posts created with the Classic editor (after activate the Classic editor plugin).
Before | After |
---|---|
- Switch to the Code Editor view.
- Add text to the code editor without adding any tags to activate the Classic Editor Block.
- Switch back to Visual Editor.
You can also insert a classic block directly without switching modes:
Note this convo about removing/deprecating PHP files: #11713 (review) We might want to keep them around for a couple Jetpack versions. |
Yup, at least want to keep To help me understand the decision to drop the feature, can you drop the shortlink anchor/link to the p2 discussion. I want to make sure our Happiness team is looped in and we have plenty of time to update documentation and prepare predefs for any questions about this. |
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.
modules/after-the-deadline.php needs to stay as a deprecated module file.
I think you can delete everything as you did, just leave the |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: April 29, 2019. |
@kraftbj I believe it stemmed from Automattic/wp-calypso#28550 (comment) |
After a fresh |
@kraftbj Besides getting a clean CI run, was there any other feedback to address, or are we mostly okay here? |
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 looks good and tests well. I would only recommend that you remove the yarn.lock
changes from this PR, since they are not related to the module changes.
31658cd
to
ffd8ad7
Compare
@simison rebased, retested and ready for review. The companion diff for WordPress.com is un-fusionable, so I'll force the test status on the MC tool. |
yarn.lock file removed from the diff.
All this looks good—are we going to clean up any user meta AtD options? Since cycling through every user could be too taxing, just something like filtering when an user is updated to check/remove that meta? |
@kraftbj I don't have a strong plan for cleaning user meta, because I'm not very familiar with the sync process and where is the best place to do it. But it's something for another (smaller) PR. |
It's unrelated to sync. It would be on the local Jetpack site. |
I'd like to test my changes outside of my local environment, but running out of time for today. I'll circle back to this tomorrow. |
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 end. 👍 🚢 💀
Did a pass over _inc/client/components looking for things that weren't used anywhere, and found a bunch: * components/data/query-connect-url - Last use removed in #8014 * components/data/query-connection-status - Last use removed in 62e9ab0 * components/data/query-modules - Last use removed in bfc40ad * components/data/query-plugin-updates - Last use removed in #17003 * components/data/query-site-products - Last use removed in #21594 * components/form/* - Didn't check for last use, too many bits. But it looks like the `formsy-react` package many of these depended on wasn't even installed since #8208. * components/inline-expand - Last use removed in #6550 * components/jetpack-dialogue - Last use removed in #16518 * components/jetpack-logo - Last use removed in #20148 * components/jetpack-termination-dialog - Last use removed in #21048 * components/module-settings/index.jsx - Last use removed in #10644 * components/module-settings/inline-module-toggle.jsx - Last use removed in #12118 * components/screen-reader-text - Last use removed in #18843 * components/settings - Last use removed in 26315e1, I think * components/tags-input - Last use removed in #11772 Then there were a few more that were only used from some of the above: * components/data/query-connected-plugins * components/module-settings/form-components.jsx * components/multiple-choice-question * components/setting-toggle
Did a pass over _inc/client/components looking for things that weren't used anywhere, and found a bunch: * components/data/query-connect-url - Last use removed in #8014 * components/data/query-connection-status - Last use removed in 62e9ab0 * components/data/query-modules - Last use removed in bfc40ad * components/data/query-plugin-updates - Last use removed in #17003 * components/data/query-site-products - Last use removed in #21594 * components/form/* - Didn't check for last use, too many bits. But it looks like the `formsy-react` package many of these depended on wasn't even installed since #8208. * components/inline-expand - Last use removed in #6550 * components/jetpack-dialogue - Last use removed in #16518 * components/jetpack-logo - Last use removed in #20148 * components/jetpack-termination-dialog - Last use removed in #21048 * components/module-settings/index.jsx - Last use removed in #10644 * components/module-settings/inline-module-toggle.jsx - Last use removed in #12118 * components/screen-reader-text - Last use removed in #18843 * components/settings - Last use removed in 26315e1, I think * components/tags-input - Last use removed in #11772 Then there were a few more that were only used from some of the above: * components/data/query-connected-plugins * components/module-settings/form-components.jsx * components/multiple-choice-question * components/setting-toggle Co-authored-by: Brandon Kraft <public@brandonkraft.com>
Fixes Automattic/wp-calypso#31865
This complements Automattic/wp-calypso#31880
Closes #9128
Closes #5640
Closes #3999
Closes #3506
Changes proposed in this Pull Request:
This PR removes all references for After the Deadline from Jetpack. This includes module, settings and the classic editor block.
Testing instructions:
On an site with an active Jetpack connection:
Go to Jetpack > Settings > Writing and look for the Composing card.
Verify that the remaining options work as expected.
Edit or Create a Post or Page with the Block Editor.
Switch to the Code Editor view.
Add text to the code editor without adding any tags to activate the Classic Editor Block.
Switch back to Visual Editor.
Click on the Classic Editor Block and verify that all options work as expected.
Proposed changelog entry for your changes: