-
Notifications
You must be signed in to change notification settings - Fork 7
Ownership request status #812
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
Open
gabeweng
wants to merge
5
commits into
master
Choose a base branch
from
ownership-request-status
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
47b951d
Edit ownership request to keep track of accepted and denied ownership…
gabeweng 8b76f5d
Merge branch 'master' into ownership-request-status
gabeweng f886cde
Update migration dependencies
gabeweng 2e0a5e3
merge
gabeweng 69ece3b
new migration, new status logic, new tests
gabeweng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
backend/clubs/migrations/0132_alter_ownershiprequest_unique_together_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 5.2.4 on 2025-09-07 23:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('clubs', '0131_alter_club_tags'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='ownershiprequest', | ||
unique_together=set(), | ||
), | ||
migrations.AddField( | ||
model_name='ownershiprequest', | ||
name='status', | ||
field=models.IntegerField(choices=[(1, 'Pending'), (2, 'Withdrawn'), (3, 'Denied'), (4, 'Accepted')], default=1), | ||
), | ||
migrations.RemoveField( | ||
model_name='ownershiprequest', | ||
name='withdrawn', | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2353,6 +2353,7 @@ class Meta: | |
"name", | ||
"requester", | ||
"school", | ||
"status", | ||
"username", | ||
) | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- TYPES: | ||
club_name: | ||
type: string | ||
full_name: | ||
type: string | ||
--> | ||
{% extends 'emails/base.html' %} | ||
|
||
{% block content %} | ||
<h2>Ownership Request Accepted for <b>{{ club_name }}</b></h2> | ||
<p style="font-size: 1.2em">Congratulations <b>{{ full_name }}</b>! Your request for ownership of <b>{{ club_name }}</b> has been accepted. You are now an owner of this club and can manage its settings and members.</p> | ||
<p>You can now access the club management features through the Penn Clubs website.</p> | ||
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- TYPES: | ||
club_name: | ||
type: string | ||
full_name: | ||
type: string | ||
--> | ||
{% extends 'emails/base.html' %} | ||
|
||
{% block content %} | ||
<h2>Ownership Request Denied for <b>{{ club_name }}</b></h2> | ||
<p style="font-size: 1.2em">Hello <b>{{ full_name }}</b>, your request for ownership of <b>{{ club_name }}</b> has been denied.</p> | ||
<p>If you have any questions about this decision, please contact the club administrators or the Penn Clubs support team.</p> | ||
{% endblock %} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just realized: do we update requesters when the status of their request is updated? Feels like we should do that (if we don't already).