-
Notifications
You must be signed in to change notification settings - Fork 83
Easier way to add volunteer role admins #1534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
743d0c1 to
09569c5
Compare
|
Rebased, and regenerated the migration. I'm seeing the following warnings on startup, and don't know enough SQLAlchemy (or have enough brain power this evening) to work out whether they're something we should be worrying about. |
russss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really sorry that this one got dropped - it'll need re-applying to the current state of the codebase (the migrations have got reset so at least the migration will need replacement, and it'll probably need tweaking for the new SQLAlchemy syntax).
Given that we've got a blank database at the moment, I wonder if it might be better to make trained_roles into an explicit join table with a boolean admin flag, rather than adding a new table for admins?
|
RoleAdmin already exists, the problem is the secondary join path, which sqlalchemy doesn't like. It should either be view_only or an association proxy (and I don't know how those interact with flask-admin, which is why it's languished). We should also be getting rid of lazy=dynamic. |
fixes #1508