-
Notifications
You must be signed in to change notification settings - Fork 963
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
[WIP] Project reservations #12527
[WIP] Project reservations #12527
Conversation
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
return ( | ||
self.has_primary_verified_email | ||
and self.has_two_factor | ||
and self.date_joined <= ninety_days_ago | ||
and not has_already_reserved_project |
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.
Flagging for review: do I need to check User.is_frozen
here as well? I don't think I do since I believe that frozen users can't log in to begin with, but I could be wrong about that.
Reservations actually work, events are emitted, etc. Signed-off-by: William Woodruff <[email protected]>
Just making a note for myself: this'll go under |
Also add a TODO and a sanity check. Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
This handles cascades correctly, preventing FK errors when the project's events are orphaned. Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
@woodruffw Whatever is easiest for you! |
(I'll leave this branch undeleted, since I think the groundwork here might be interesting/useful if the project reservation idea is ever revived.) |
This is still a WIP; just putting something up for visibility and early feedback.
Outstanding items:
POST
ing the reservation form should actually reserve the project namemanage/projects
list should include a "reserved" chip on any reserved project(s)Project.reserved_until
, if presentCloses #11296.
cc @di