fix: builder layout meta stays raw, never modelled as content (too_large on deep Elementor trees) - #40
Merged
Conversation
…rge on deep Elementor trees) Page-builder meta (Policy::BUILDER: _elementor_*, _et_pb_*) was modelled into meta_* fields and wp-structured-values rows; a deeply nested _elementor_data tree exceeded the modelling depth and failed the whole export (too_large). It now travels only in raw-posts / RawIR, matching @contentrain/wp-import, which never turns underscore meta into content fields. Past the modelling depth, value() keeps the remaining subtree as JSON text and records a nesting-too-deep warning instead of throwing.
Member
Author
|
ONAY bcc8766 (t9) No silent loss:
Backward compatibility: migrate (main) reads PHP/WP: the plugin needs PHP 7.4 / WP 6.2. Local gates (Docker, isolated stack, torn down afterwards):
Non-blocking notes:
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On the Elementor golden, the migration export failed as a whole:
EXPORT_FAILED too_largewith "Content nesting exceeds the supported modelling depth". Deep_elementor_datatrees on the landing and about pages were modelled intometa_*content fields andwp-structured-valuesrows, and one of them went past the modelling depth.Change
Policy::BUILDER:_elementor_*,_et_pb_*) is no longer modelled as content. It is kept only in the raw evidence (raw-posts / RawIR), where Migrate reads it. This matches@contentrain/wp-import, which never turns underscore meta into content fields, so status and entry parity do not change.value()stops throwing. It keeps the rest of the subtree as JSON text and records anesting-too-deep: kept as JSON textwarning. A single deep value can no longer fail the export.Verification
tests/builder.php: 64 lines of new checks._elementor_datais kept inrawir.json.wp-pagehas nometa_elementor_*fields.Open points (separate work)
Policy::BUILDERstill mentionsCORE_META. wp-import actually skips every_key._yoast_*,_aioseo_*). This is a separate parity gap with wp-import.