chore(backend): add explicit test data seed command
All checks were successful
deploy-socialize / image (push) Successful in 53s
deploy-socialize / deploy (push) Successful in 21s

This commit is contained in:
2026-05-07 13:43:53 -04:00
parent 918136aae2
commit 6e417312f9
9 changed files with 74 additions and 47 deletions

View File

@@ -12,7 +12,7 @@ Replace frontend-derived fake channels with real workspace-owned channel records
- Add a backend `Channels` module with a `Channel` table.
- Add list and create endpoints for workspace channels.
- Seed development channels and align seeded content publication targets to those configured channel names.
- Seed test channels and align seeded content publication targets to those configured channel names.
- Update the frontend channels store to load and create channels through the API.
- Keep the Channels page UI shape intact.
@@ -20,7 +20,7 @@ Replace frontend-derived fake channels with real workspace-owned channel records
- `backend/src/Socialize.Api/Data/AppDbContext.cs`
- `backend/src/Socialize.Api/Modules/Channels/`
- `backend/src/Socialize.Api/Infrastructure/Development/DevelopmentSeedExtensions.cs`
- `backend/src/Socialize.Api/Infrastructure/TestData/TestDataSeedExtensions.cs`
- `frontend/src/features/channels/stores/channelsStore.js`
- `docs/FEATURES/channels.md`

View File

@@ -0,0 +1,20 @@
# Task: Add explicit test data seed script
## Goal
Move demo/test data seeding out of API startup and into an explicit script command that can be run intentionally against any configured environment.
## Relevant Files
- `backend/src/Socialize.Api/Program.cs`
- `backend/src/Socialize.Api/Infrastructure/TestData/TestDataSeedExtensions.cs`
- `backend/src/Socialize.Api/appsettings.Development.json`
- `backend/src/Socialize.Api/appsettings.Production.json`
- `scripts/seed-testdata.sh`
## Validation
```bash
dotnet build backend/Socialize.slnx
./scripts/seed-testdata.sh
```