Skip to content
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

Merged
merged 201 commits into from
Apr 27, 2020
Merged

Membership models #401

merged 201 commits into from
Apr 27, 2020

Conversation

jace
Copy link
Member

@jace jace commented Apr 19, 2019

The design of the membership models is described here: #371 (comment)

if not set(roles.keys()).issubset(self.__role_columns__):
raise AttributeError("Unknown role")
self.revoked_at = db.func.utcnow()
self.revoked_by = actor
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could.

  1. I'm evaluating having an additional column for the revocation reason, to indicate termination or replacement.

  2. 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.

@jace jace merged commit 6022a2b into master Apr 27, 2020
@jace jace deleted the membership branch April 27, 2020 17:51
@jace jace mentioned this pull request Aug 22, 2020
This was referenced May 24, 2021
vidya-ram pushed a commit that referenced this pull request Nov 23, 2021
The Members team was introduced in #28, but has never gained traction, so is being deleted to aid transition to the direct membership model presented in #151, #118 and #232. The final switch to direct org membership will happen elsewhere, in #401.
vidya-ram pushed a commit that referenced this pull request Nov 23, 2021
Adds Organization admin and Project crew memberships, with Project participant Proposal memberships pending.
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.

4 participants