Skip to content

Assign fixed organisations in UserTableSeeder#321

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

Assign fixed organisations in UserTableSeeder#321
joseganora merged 1 commit intostagingfrom
WN-366

Conversation

@jajaramillo24
Copy link
Copy Markdown
Collaborator

Add a mapping of specific user IDs to organisation codes in database/seeds/Access/UserTableSeeder.php and create UserOrganisation records for those users during seeding. A $fixedOrgs array maps users 3, 4, and 6 to IND/USA and the seeder now iterates this mapping to save new \App\Models\Access\User\UserOrganisation instances. This ensures those test/app users get the expected organisation assignments while preserving the existing special-case logic for users 8 and 9.

Add a mapping of specific user IDs to organisation codes in database/seeds/Access/UserTableSeeder.php and create UserOrganisation records for those users during seeding. A $fixedOrgs array maps users 3, 4, and 6 to IND/USA and the seeder now iterates this mapping to save new \App\Models\Access\User\UserOrganisation instances. This ensures those test/app users get the expected organisation assignments while preserving the existing special-case logic for users 8 and 9.
@joseganora joseganora merged commit aabef12 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