-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi Developers,
Pain
New deployments need default tenant data to function. This seeding should be idempotent and safe to run multiple times.
Suggested Solution
Update the database initializer to seed default tenant data on first run. Ensure the seeding is idempotent.
Implementation:
- Update database initializer
- Add tenant seeding logic
- Ensure idempotency
- Test on clean database
Tasks
- Update database initializer
- Add tenant seeding logic
- Ensure idempotency (safe to run multiple times)
- Seed SSW tenant on first run
- Seed TestCo tenant in dev/staging
- Test on clean database
- Verify seeding logged for verification
- Document seeding process
Acceptance Criteria
- Meets Definition of Done - https://github.com/SSWConsulting/SSW.Rewards.Mobile/blob/main/_docs/Definition-of-Done.md
- SSW tenant created on first run
- Default settings populated
- Idempotent seeding (safe to run multiple times)
- TestCo tenant seeded in dev/staging
- Seeding logged for verification
More Information
Files to Modify:
src/Infrastructure/Persistence/ApplicationDbContextInitializer.cs- Add seed data files if needed
Dependencies: First PBI in this phase must be completed first
Epic: #1483
Thanks!
Metadata
Metadata
Assignees
Labels
No labels