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

Neo Field BlockTypes Deleted and Recreated During Import #44

Open
github-ab-martinez opened this issue Apr 25, 2022 · 4 comments
Open

Comments

@github-ab-martinez
Copy link

Issue Description: When a Neo field migration is created, the field's blockTypes are not assigned their respective ids. As a result, upon import, the Neo plugin registers the blockTypes as new, and deletes the existing blockTypes for the field before creating new blockType instances with the migration data.

Impact: When the original blockTypes are deleted, any Entry which used the Neo Field is reset, resulting in data loss.

Steps to Replicate:

  1. Create an entry which uses a Neo field.
  2. Create a migration for the Neo field.
  3. Re-apply the new migration.

Result: The Neo field data for the entry created in step 1 has been reset.

@dgrigg
Copy link
Owner

dgrigg commented Apr 26, 2022

Yes, that was intentional to ensure migrations inside Neo blocks were updating the correct block since moving block order etc caused migration issues. Are you having this issue when creating content migrations or settings migrations?

@github-ab-martinez
Copy link
Author

We're having this issue with Field migrations, specifically.

@tekstrand
Copy link

We're still running into issues with this, we aren't able to create FIeld Setting migrations for Neo fields.

@tekstrand
Copy link

Our latest is that creating/running a migration for a Neo field with 42 blocks in it exhausts the php memory

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

No branches or pull requests

3 participants