Skip to content

Commit

Permalink
Merge pull request #27 from stevebrownlee/feature/group-projects
Browse files Browse the repository at this point in the history
Final Phase of Removing GitHub Classroom
  • Loading branch information
stevebrownlee authored Oct 10, 2024
2 parents c043eff + 9229a4a commit bbbb300
Show file tree
Hide file tree
Showing 30 changed files with 933 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ prod_backup*.sql
setup
learning.service
logs/
.env
*.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Generated by Django 4.2.14 on 2024-08-28 20:03

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0051_add_student_note_type_to_database_function"),
]

operations = [
migrations.CreateModel(
name="StudentTeam",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("group_name", models.CharField(max_length=55, unique=True)),
("sprint_team", models.BooleanField(default=False)),
(
"cohort",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.cohort",
),
),
],
),
migrations.CreateModel(
name="NSSUserTeam",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"student",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.nssuser",
),
),
(
"team",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.studentteam",
),
),
],
),
migrations.CreateModel(
name="GroupProjectRepository",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("repository_url", models.URLField()),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.project",
),
),
(
"team",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.studentteam",
),
),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Generated by Django 4.2.14 on 2024-09-03 01:49

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
replaces = [
("LearningAPI", "0052_studentteam_nssuserteam_groupprojectrepository"),
("LearningAPI", "0053_alter_studentteam_group_name"),
("LearningAPI", "0054_alter_nssuserteam_student_alter_nssuserteam_team"),
("LearningAPI", "0055_studentteam_members_alter_nssuserteam_student_and_more"),
("LearningAPI", "0056_rename_members_studentteam_students"),
("LearningAPI", "0057_project_template_url"),
(
"LearningAPI",
"0058_remove_project_template_url_project_api_template_url_and_more",
),
("LearningAPI", "0059_remove_groupprojectrepository_repository_url"),
("LearningAPI", "0060_studentteam_slack_channel"),
]

dependencies = [
("LearningAPI", "0051_add_student_note_type_to_database_function"),
]

operations = [
migrations.CreateModel(
name="StudentTeam",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("group_name", models.CharField(max_length=55)),
("sprint_team", models.BooleanField(default=False)),
(
"cohort",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.cohort",
),
),
],
),
migrations.CreateModel(
name="NSSUserTeam",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"student",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.nssuser",
),
),
(
"team",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="members",
to="LearningAPI.studentteam",
),
),
],
),
migrations.AddField(
model_name="studentteam",
name="students",
field=models.ManyToManyField(
through="LearningAPI.NSSUserTeam", to="LearningAPI.nssuser"
),
),
migrations.AlterField(
model_name="nssuserteam",
name="team",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.studentteam",
),
),
migrations.AddField(
model_name="project",
name="api_template_url",
field=models.URLField(default=""),
),
migrations.AddField(
model_name="project",
name="client_template_url",
field=models.URLField(default=""),
),
migrations.CreateModel(
name="GroupProjectRepository",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.project",
),
),
(
"team",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.studentteam",
),
),
],
),
migrations.AddField(
model_name="studentteam",
name="slack_channel",
field=models.CharField(default="", max_length=55),
),
]
17 changes: 17 additions & 0 deletions LearningAPI/migrations/0053_alter_studentteam_group_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.14 on 2024-08-28 20:37

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0052_studentteam_nssuserteam_groupprojectrepository"),
]

operations = [
migrations.AlterField(
model_name="studentteam",
name="group_name",
field=models.CharField(max_length=55),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 4.2.14 on 2024-08-28 20:47

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0053_alter_studentteam_group_name"),
]

operations = [
migrations.AlterField(
model_name="nssuserteam",
name="student",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="teams",
to="LearningAPI.nssuser",
),
),
migrations.AlterField(
model_name="nssuserteam",
name="team",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="members",
to="LearningAPI.studentteam",
),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by Django 4.2.14 on 2024-08-28 20:50

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0054_alter_nssuserteam_student_alter_nssuserteam_team"),
]

operations = [
migrations.AddField(
model_name="studentteam",
name="members",
field=models.ManyToManyField(
through="LearningAPI.NSSUserTeam", to="LearningAPI.nssuser"
),
),
migrations.AlterField(
model_name="nssuserteam",
name="student",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="LearningAPI.nssuser"
),
),
migrations.AlterField(
model_name="nssuserteam",
name="team",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="LearningAPI.studentteam",
),
),
]
17 changes: 17 additions & 0 deletions LearningAPI/migrations/0056_rename_members_studentteam_students.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.14 on 2024-08-28 20:56

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0055_studentteam_members_alter_nssuserteam_student_and_more"),
]

operations = [
migrations.RenameField(
model_name="studentteam",
old_name="members",
new_name="students",
),
]
17 changes: 17 additions & 0 deletions LearningAPI/migrations/0057_project_template_url.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.14 on 2024-08-29 19:39

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0056_rename_members_studentteam_students"),
]

operations = [
migrations.AddField(
model_name="project",
name="template_url",
field=models.CharField(default="", max_length=256),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 4.2.14 on 2024-08-29 19:49

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("LearningAPI", "0057_project_template_url"),
]

operations = [
migrations.RemoveField(
model_name="project",
name="template_url",
),
migrations.AddField(
model_name="project",
name="api_template_url",
field=models.URLField(default=""),
),
migrations.AddField(
model_name="project",
name="client_template_url",
field=models.URLField(default=""),
),
]
Loading

0 comments on commit bbbb300

Please sign in to comment.