Skip to content

✨ Seed Default Tenant Data #1507

@zacharykeeping

Description

@zacharykeeping

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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions