We created Communities programmatically on UAT and Prod (maybe Dev, too) without creating their corresponding teams, meaning that users can't be added to them with roles.
New communities created through the UI will have teams created automatically, but this adds some code to CommunitySeeder to add teams for any communities without them.
🧪 Testing
After running normal local seeding, delete the Community-type teams in the database.
Try to add a user to a community. This should fail.
Run php artisan db:seed --class=CommunitySeeder
Repeat step 2, it should work now.
🚚 Deployment
Run php artisan db:seed --class=CommunitySeeder to ensure all
🤖 Resolves #11743
👋 Introduction
We created Communities programmatically on UAT and Prod (maybe Dev, too) without creating their corresponding teams, meaning that users can't be added to them with roles.
New communities created through the UI will have teams created automatically, but this adds some code to CommunitySeeder to add teams for any communities without them.
🧪 Testing
php artisan db:seed --class=CommunitySeeder
🚚 Deployment
Run
php artisan db:seed --class=CommunitySeeder
to ensure all