-
Notifications
You must be signed in to change notification settings - Fork 52
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
Membership models #401
Membership models #401
Conversation
if not set(roles.keys()).issubset(self.__role_columns__): | ||
raise AttributeError("Unknown role") | ||
self.revoked_at = db.func.utcnow() | ||
self.revoked_by = actor |
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.
This can call the revoke function above?
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.
It could.
-
I'm evaluating having an additional column for the revocation reason, to indicate termination or replacement.
-
This code was originally a state manager transition, so one method couldn't call the other. I removed the state manager because it was too verbose for what the model needed.
Adds Organization admin and Project crew memberships, with Project participant Proposal memberships pending.
The design of the membership models is described here: #371 (comment)