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

Align post update hook and sync script #3028

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Dec 15, 2023

The wordpress posts sync script (syncPostsToGrapher.ts) and the update hook (postUpdatedHook.ts) are supposed to do pretty much the same thing, the former in batch mode and the latter for a single post.

The two got a bit our of sync though as of late. One issues was that the treatment of reusable blocks (wp_block) was different - the sync script ignored them but they still came in via the hook. These can be useful (e.g. to migrate the reuseable blocks that store the content below explorers).

Another issue was that the formattingOptions were not yet extracted in the update hook.

@danyx23 danyx23 force-pushed the wp-posts-table-add-formatting-options branch from 562abd2 to 8e3146d Compare December 15, 2023 19:53
@danyx23 danyx23 changed the base branch from wp-posts-table-add-formatting-options to wp-posts-sync-wp-blocks December 15, 2023 19:54
@danyx23 danyx23 force-pushed the wp-sync-align-with-post-update-hook branch from 9d5fbf7 to 33da95c Compare December 15, 2023 19:54
@danyx23 danyx23 force-pushed the wp-posts-sync-wp-blocks branch from 95c42a6 to b00bb24 Compare December 21, 2023 10:24
@danyx23 danyx23 force-pushed the wp-sync-align-with-post-update-hook branch from 9b6a951 to 96fe052 Compare December 21, 2023 10:24
Copy link
Contributor Author

danyx23 commented Dec 21, 2023

Merge activity

  • Dec 21, 12:23 PM: @@danyx23 started a stack merge that includes this pull request via Graphite.
  • Dec 21, 12:24 PM: @@danyx23 merged this pull request with Graphite.

Base automatically changed from wp-posts-sync-wp-blocks to master December 21, 2023 17:23
@danyx23 danyx23 merged commit eea42c3 into master Dec 21, 2023
13 checks passed
@danyx23 danyx23 deleted the wp-sync-align-with-post-update-hook branch December 21, 2023 17:24
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.

1 participant