Skip to content

Fix data seeding, add test users, and replace external auth#44

Merged
antosubash merged 1 commit intomainfrom
feature/peaceful-bohr
Apr 1, 2026
Merged

Fix data seeding, add test users, and replace external auth#44
antosubash merged 1 commit intomainfrom
feature/peaceful-bohr

Conversation

@antosubash
Copy link
Copy Markdown
Owner

Changes

  • Data Seeding: Refactored seed data handling, removed hardcoded order seed data and moved to dedicated OrderSeedService
  • Test Users: Added comprehensive user seeding with test accounts and configurable seed constants
  • Authentication: Replaced external authentication with account switcher UI component in login page
  • Migrations: Added new migration RemoveOrderSeedData to clean up database schema
  • Framework Updates: Updated Result type, entity change handling, and interceptors across SimpleModule.Core and SimpleModule.Database
  • Module Updates: Updated all modules (FeatureFlags, FileStorage, Tenants, Users, etc.) with improved service implementations
  • Testing: Updated test fixtures and benchmarks to work with new seeding approach
  • CLI & Templates: Updated scaffolding commands and templates to reflect structural changes

…unt switcher

- Move order seeding from HasData() to runtime IHostedService so orders
  reference real user IDs instead of random integers 1-10
- Seed admin and regular test users in all environments (not just dev)
- Add Show Test Accounts system setting to control login page switcher
- Replace external auth UI on login page with quick-login buttons for
  Admin and User accounts, controlled by the new setting
- Extract SeedRoleAsync/SeedUserAsync helpers to eliminate duplication
- Add RemoveOrderSeedData EF migration to clean up old seed rows
- Reduce NBomber load test concurrency from 50/10 to 5/5
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1bbed66
Status: ✅  Deploy successful!
Preview URL: https://8d1899b8.simplemodule-website.pages.dev
Branch Preview URL: https://feature-peaceful-bohr.simplemodule-website.pages.dev

View logs

@antosubash antosubash merged commit 733730a into main Apr 1, 2026
4 checks passed
@antosubash antosubash deleted the feature/peaceful-bohr branch April 1, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant