[FEATURE]: Seed Data - Roles and Default Assignment #365
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
UX research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
Create seed data for 5 roles and assign default "Mitglied" role to existing users. Optionally designate one admin via environment variable.
Tasks:
priv/repo/seeds/authorization_seeds.exsAsh.Seed.seed!/2or create actions:ADMIN_EMAILenv var, assign Admin role to that userIO.putsstatements to show progressAcceptance Criteria:
Test Strategy (TDD):
Role Creation Tests:
User Assignment Tests:
Idempotency Tests:
Optional Admin Tests:
Error Handling Tests:
Test File:
test/seeds/authorization_seeds_test.exs