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.
Summary of Changes
This pull request introduces BetterTogether::Seed, a new interoperable data protocol for the Community Engine platform. The Seed facilitates structured import/export of data, supporting:
Key Features & Changes
1. New
BetterTogether::Seed
Modelpayload
) and metadata (origin
), including:2. Seedable Concern for Models
Seedable
module that any model can include to become seed-exportable.#plant
,#export_as_seed
, and#export_as_seed_yaml
.Person
Wizard
WizardStep
WizardStepDefinition
3. SeedsController for CRUD UI
/seeds
in the admin panel.4. Import/Export Workflow
config/seeds/...
).5. Schema Migration
better_together_seeds
with:seedable
association.origin
andpayload
JSONB columns (indexed for performance).type
+identifier
for fast lookup.6. FactoryBot Factories & Shared Example
shared_examples
file to ensure any seedable model behaves correctly.Why This Matters
The Seed is a foundational piece of Community Engine’s commitment to data sovereignty. By enabling structured data import/export in a standard format, it:
✅ Empowers communities to migrate between platforms with minimal friction.
✅ Enables true data ownership, giving admins the ability to back up and restore their data anytime.
✅ Sets the groundwork for future federated platform collaboration, where platforms can exchange content in a structured, permissioned way.
Testing & Coverage
Seed
model.Seedable
concern.Files Changed
Migration Required
✅ Yes –
create_better_together_seeds
Related Issues
Suggested Next Steps
Seed
structure and format for third-party implementers.