newspack-content-converter

Plugin that enables automated conversion of pre-Gutenberg post content, to Gutenberg blocks content.

GPL-2.0 License

Stars
47

Bot releases are hidden (Show)

newspack-content-converter - 1.1.0 Latest Release

Published by jorostoyanov about 2 months ago

Changelog

⚠️ This release changes the way Classic Content is parsed and converted to Blocks to match the exact way Gutenberg works.

Enhancements

  • The plugin version is now displayed in the Admin interface (#138)
  • Conversion from Gallery shortcode to Gallery Block is now handled properly (#140)
newspack-content-converter - 1.0.3

Published by naxoc 5 months ago

This release contains:

  • #132 Allows setting an option for minium and maximum post ID to process. There is no GUI for it (yet), so the option needs to be set with wp option update ncc_min_post_id_to_process xx and/or wp option update ncc_max_post_id_to_process xx
  • #135 Allows an option to be set with the content type(s) the NCC should include in processing. To set the option from CLI, use wp option update ncc_conversion_post_types '["post","your_content_type"]' --format=json
  • #136 Fixes a slow query that would crash the page
  • #134 Ignores .cache files when creating a release.
newspack-content-converter - 1.0.2

Published by naxoc 6 months ago

This release includes #128, #133, and #131

newspack-content-converter - 1.0.1

Published by iuravic 6 months ago

Updates default batch size to 100.

newspack-content-converter - v 1.0.0

Published by iuravic 6 months ago

Merged from PR #129, this is a major refactoring of how the plugin processes posts for conversion, with several bigger simplifications. The build process is fixed and new features are added.

Big changes

  • Fixed old build process
  • Removed custom table -- no longer using ncc_wp_posts and the complex queuing system
  • Removed hooks during plugin installation and uninstallation (which previously populated the "conversion queue"). Plugin installation/activation and deactivation/deletion does no longer affect any data
  • Simple queuing system -- removed the previous conversion queue mechanism. Now whenever a conversion is clicked and started, it picks up all the existing posts that can to be converted on the fly, without any longer needing for the reset CLI command to "queue" new posts. The reset command was completely removed
  • Now using postmeta to store original post_content before conversion. Revisions were also considered, but those can get deleted because of the max number of revisions WP param -- when multiple revisions are created, old ones get deleted. Postmeta is permanent
  • Restore -- ability to restore posts via GUI, option to restore all posts, or just some specific post IDs. Removed the CLI command because GUI has more options
  • Refactored content filtering to use WP filters -- just for now, the patchers classes are still kept all the same, but they now get added to the new filters and executed WP-style. Moved all filtering (new filters) into NewspackContentConverter\Converter::register_filters() where they're now hardcoded and simplified
    • New filters are:
      • ncc_filter_html_before_conversion
      • ncc_filter_blocks_after_conversion
    • And a new action:
      • ncc_after_post_content_updated

Smaller changes

  • Added a function which detects the blank screen, that is if the converter app fails to load. If the app is not loaded and rendered correctly, after 15sec a popup alert notifies the user to try and temporarily disable plugins, then try running again. This is the most common "fix" to make the plugin work, because some plugins modify Gutenberg layout, and this plugin can't catch up with all those possible modifications
  • Refactored names of variables, methods and endpoints for more clarity
  • Downloadable list of converted and unconverted IDs from GUI
  • Posts get converted in ID DESC order (requested by our Team member)
  • "Flush backups" button in the new "Restore" screen optionally permanently cleans up all the postmeta/backups (there's also an explicit recommendation that DB should be fully backed up before running the conversion, and the README contains a warning that authors of this plugin are not responsible for data loss)
  • Updated composer dependencies
  • Updated PHPCS to newer
newspack-content-converter - Hardened API route permissions

Published by iuravic 6 months ago

Includes PR #130 .

newspack-content-converter - 0.1.5

Published by naxoc 7 months ago

This is a provisional version on a path to a stable release. Created based on 0.0.14-alpha with added logic from https://github.com/Automattic/newspack-content-converter/pull/126.

It contains changes in a file that was not in 0.1.4

newspack-content-converter - 0.1.4

Published by iuravic 7 months ago

This is a provisional version on a path to a stable release. Created based on 0.0.14-alpha with added logic from PR #162.

newspack-content-converter - 0.1.3

Published by naxoc 7 months ago

This release has #125 and #126

Note that this is a "hand-built" build because there are some build problems with the project.

newspack-content-converter - 0.0.14-alpha

Published by iuravic about 1 year ago

This is a preliminary release, in effect 0.0.13-alpha which contains PR #104 changes.

newspack-content-converter - 0.0.13-alpha

Published by iuravic almost 3 years ago

Fixes missing GUI and compatibility issues with new WP 5.8.

newspack-content-converter - 0.0.12-alpha

Published by iuravic over 3 years ago

Introduces a CLI option to restore content for specific Post IDs.
Fixes a missing dependency from the release archive.

newspack-content-converter - 0.0.11-alpha

Published by iuravic over 4 years ago

Added the wp newspack-content-converter reset command, which completely resets the converted posts internal queue table, and adds any new posts/pages to conversion queue.

newspack-content-converter - 0.0.10-alpha

Published by iuravic almost 5 years ago

Includes safer post types detection and filtering.

newspack-content-converter - 0.0.9-alpha

Published by iuravic almost 5 years ago

Completed the rest of the new UI elements and redesign.

newspack-content-converter - 0.0.8-alpha

Published by iuravic almost 5 years ago

Exciting updates in this release!

The UI was completely redone with many improvements, simplifications and beautifications. Still one round of improvements in the UI are expected soon.

There are also several smaller improvements in the operating logic too, such as: upgrade to support node 12, completely removed the dev and temporarily introduced "Re-apply patching" section, and added a better filtration/detection of content which gets selected for conversion.

newspack-content-converter - 0.0.7-alpha

Published by iuravic almost 5 years ago

Includes retrying to convert just the Posts which previously failed conversion, and the option to reset an ongoing conversion, so that it could be restarted all over again.

newspack-content-converter - 0.0.6-alpha

Published by iuravic almost 5 years ago

Includes improved error handling.

newspack-content-converter - 0.0.5-alpha

Published by iuravic almost 5 years ago

Includes a safer way to manipulate DOM elements in cases where it might take some extra time for them to be rendered/injected.

newspack-content-converter - 0.0.4-alpha

Published by iuravic almost 5 years ago

Includes another small fix for compatibility with the new WP 5.3, this time excludes from conversion/processing posts that have blank post_content.