-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from pennlabs/pcp-schedule-sharing-frontend
PCP - schedule sharing, friends, state changes
- Loading branch information
Showing
52 changed files
with
3,439 additions
and
1,312 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
20 changes: 20 additions & 0 deletions
20
backend/courses/migrations/0054_alter_ngssrestriction_inclusive.py
This file contains 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,20 @@ | ||
# Generated by Django 4.1.1 on 2023-02-03 21:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0053_alter_ngssrestriction_code"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="ngssrestriction", | ||
name="inclusive", | ||
field=models.BooleanField( | ||
help_text='\nWhether this is an include or exclude restriction. Corresponds to the `incl_excl_ind`\nresponse field. `True` if include (ie, `incl_excl_ind` is "I") and `False`\nif exclude ("E").\n' | ||
), | ||
), | ||
] |
This file contains 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,51 @@ | ||
# Generated by Django 4.0.5 on 2022-08-14 04:31 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0053_alter_ngssrestriction_code"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="Friendship", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, primary_key=True, serialize=False, verbose_name="ID" | ||
), | ||
), | ||
( | ||
"status", | ||
models.IntegerField( | ||
help_text="\nWhether the request was sent or accepted (0 if sent, \n1 if recieved and accepted, deleted if rejected)\n" | ||
), | ||
), | ||
("accepted_at", models.DateTimeField(auto_now_add=True)), | ||
("sent_at", models.DateTimeField()), | ||
( | ||
"requestReciever", | ||
models.ForeignKey( | ||
help_text="The person (user) who recieved the request.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="receiver", | ||
to="courses.userprofile", | ||
), | ||
), | ||
( | ||
"requestSender", | ||
models.ForeignKey( | ||
help_text="The person (user) who sent the request.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="sender", | ||
to="courses.userprofile", | ||
), | ||
), | ||
], | ||
), | ||
] |
66 changes: 66 additions & 0 deletions
66
backend/courses/migrations/0055_friendship_recipient_friendship_sender_and_more.py
This file contains 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,66 @@ | ||
# Generated by Django 4.0.5 on 2022-10-31 20:37 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("courses", "0054_friendship"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="friendship", | ||
name="recipient", | ||
field=models.ForeignKey( | ||
default=None, | ||
help_text="The person (user) who recieved the request.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="received_friendships", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="friendship", | ||
name="sender", | ||
field=models.ForeignKey( | ||
default=None, | ||
help_text="The person (user) who sent the request.", | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="sent_friendships", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="accepted_at", | ||
field=models.DateTimeField(), | ||
), | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="status", | ||
field=models.CharField( | ||
choices=[("S", "Sent"), ("A", "Accepted"), ("R", "Rejected")], | ||
default="S", | ||
max_length=1, | ||
), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="friendship", | ||
unique_together={("sender", "recipient")}, | ||
), | ||
migrations.RemoveField( | ||
model_name="friendship", | ||
name="requestReciever", | ||
), | ||
migrations.RemoveField( | ||
model_name="friendship", | ||
name="requestSender", | ||
), | ||
] |
48 changes: 48 additions & 0 deletions
48
backend/courses/migrations/0056_alter_friendship_accepted_at_and_more.py
This file contains 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,48 @@ | ||
# Generated by Django 4.0.5 on 2022-11-04 21:02 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("courses", "0055_friendship_recipient_friendship_sender_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="accepted_at", | ||
field=models.DateTimeField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="recipient", | ||
field=models.ForeignKey( | ||
help_text="The person (user) who recieved the request.", | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="received_friendships", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="sender", | ||
field=models.ForeignKey( | ||
help_text="The person (user) who sent the request.", | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="sent_friendships", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="friendship", | ||
name="sent_at", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
backend/courses/migrations/0057_alter_ngssrestriction_inclusive.py
This file contains 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,20 @@ | ||
# Generated by Django 4.0.5 on 2023-01-22 18:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0056_alter_friendship_accepted_at_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="ngssrestriction", | ||
name="inclusive", | ||
field=models.BooleanField( | ||
help_text='\nWhether this is an include or exclude restriction. Corresponds to the `incl_excl_ind`\nresponse field. `True` if include (ie, `incl_excl_ind` is "I") and `False`\nif exclude ("E").\n' | ||
), | ||
), | ||
] |
This file contains 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 @@ | ||
# Generated by Django 3.2.18 on 2023-04-04 03:10 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0054_alter_ngssrestriction_inclusive"), | ||
("courses", "0057_alter_ngssrestriction_inclusive"), | ||
] | ||
|
||
operations = [] |
This file contains 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 @@ | ||
# Generated by Django 3.2.18 on 2023-07-12 17:50 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0054_userprofile_uuid_secret_and_more"), | ||
("courses", "0057_alter_ngssrestriction_inclusive"), | ||
] | ||
|
||
operations = [] |
This file contains 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 @@ | ||
# Generated by Django 3.2.18 on 2023-08-17 02:08 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("courses", "0058_merge_20230403_2310"), | ||
("courses", "0058_merge_20230712_1350"), | ||
] | ||
|
||
operations = [] |
This file contains 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 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 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
Oops, something went wrong.