Skip to content

Update ApplicationTableSeeder.php#66

Merged
joseganora merged 1 commit intostagingfrom
WN-366
Apr 14, 2026
Merged

Update ApplicationTableSeeder.php#66
joseganora merged 1 commit intostagingfrom
WN-366

Conversation

@jajaramillo24
Copy link
Copy Markdown
Collaborator

This pull request expands the seeding logic in ApplicationTableSeeder to create multiple test application records with varying access rules and configurations. Instead of seeding a single application, the seeder now adds a diverse set of applications to better support testing different scenarios.

Key changes:

Seeding logic improvements:

  • Replaces the single static Application::create call with a loop that seeds six different application records, each with distinct name, description, tenant_user_id, and access rules.

Test data diversity:

  • Adds applications covering scenarios such as: no policy rules (full access), all countries with only preparedness v2 enabled, India-only access, USA-only access with legacy and/or preparedness v2 enabled, and combinations thereof.
  • Some applications use dynamically generated keys via Application::generateKey(), while one uses a static key for testing purposes.
  • Each application record now includes an is_active flag and a rules array to control access restrictions and feature toggles.

@joseganora joseganora merged commit be2c555 into staging Apr 14, 2026
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.

2 participants