Skip to content
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

Move GutenbergBlockManipulator, transformer and transformer command #28

Open
wants to merge 14 commits into
base: trunk
Choose a base branch
from

Conversation

naxoc
Copy link
Member

@naxoc naxoc commented Oct 14, 2024

Move over and minimally refactor to use the new classes. History is move over too using the below. The git format-patch is fired in the NCMM and the git am command is fired in the NMT.

git format-patch --stdout --root -- src/Logic/GutenbergBlockManipulator.php > patches/GutenbergBlockManipulator.patch
git am < ../../patches/GutenbergBlockManipulator.patch

git format-patch --stdout --root -- src/Logic/GutenbergBlockTransformer.php > patches/GutenbergBlockTransformer.patch
git am < ../../patches/GutenbergBlockTransformer.patch

git format-patch --stdout --root -- src/Command/General/BlockTransformerCommand.php > patches/BlockTransformerCommand.patch
git am < ../../patches/BlockTransformerCommand.patch

* WIP

* Works in theory

* Add a block-en/decoder for use with NCC

* Code style stuff

* Add min and max for post processing

* Refactor a bit into two classes

* Repeat myself in comments
* Add NCC trickery

* Also allow NCC nudge in encode

* Better logging and querying

* Make things work with all flags and args

* Some code style

* Order when processsing to avoid programmer confusion

* Remove NCC batch resetter - it's gone in the NCC too

* Added checks in case the post update fail
* WIP

* Works in theory

* Add a block-en/decoder for use with NCC

* Code style stuff

* Add min and max for post processing

* Refactor a bit into two classes

* Repeat myself in comments
* Add NCC trickery

* Also allow NCC nudge in encode

* Better logging and querying

* Make things work with all flags and args

* Some code style

* Order when processsing to avoid programmer confusion

* Remove NCC batch resetter - it's gone in the NCC too

* Added checks in case the post update fail
* Use a closure to delay instantiation

* Leave $this alone

* Refactor the rest of the command classes

* Added comment

* Update newspack-migration-tools
@@ -4,7 +4,7 @@ on: [ pull_request ]

jobs:
unit-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See apache/beam#32766 – this is temporary. I'll switch it back when it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants