Repository navigation
Bring the stored submissions across, not just the forms - #12
Merged
Merged
Conversation
Importing a form is the half of a migration somebody does immediately; the years of submissions sitting in Flamingo are the half they think of a week later. Forms now remember where they came from and how their fields map, entries import in chunks with their original dates, spam arrives as spam, and running it twice imports nothing twice. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0119U4sRRWGcTQdwYreTwpAp
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.
What
Extends the importer registry so a source can migrate its stored submissions, not only its forms — and implements it for Contact Form 7 (via Flamingo's storage).
{ importer, source }and a source-field-name → field-id map on import, so submissions stay readable afterwards.entries/import_entries(they come as a pair — offering only one drops both).atf_import_entry()stores a migrated submission: sanitised but deliberately not validated (a retired choice is still what that person said), keeps the original date, and is idempotent — each entry records its source key, so a second run skips what the first brought across.exclude_from_searchstatus apost_status => 'any'query would silently miss.atf_entries_importedaction;docs/hooks-reference.mdupdated in the same change.Tests
importersEntries.php, built against Flamingo's exact storage shape)🤖 Generated with Claude Code
https://claude.ai/code/session_0119U4sRRWGcTQdwYreTwpAp