Skip to content

Commit

Permalink
Bulk transfer students (#311)
Browse files Browse the repository at this point in the history
* transfer class

* transfer students

* merge from development

* add toml support

* use new py package

* add student view set and serializer

* test get queryset

* quick save

* fix transfer students

* move bulk destroy students and house keeping

* merge from dev

* fix tests

* fix tests again lolz

* so much test fixing :(

* remove duplicate fields

* install new py package

* feedback

* install new py package

* fix tests
  • Loading branch information
SKairinos authored Mar 14, 2024
1 parent 93dd89c commit d832777
Show file tree
Hide file tree
Showing 22 changed files with 1,270 additions and 872 deletions.
3 changes: 2 additions & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"ms-python.mypy-type-checker",
"ms-python.black-formatter",
"qwtel.sqlite-viewer",
"njpwerner.autodocstring"
"njpwerner.autodocstring",
"tamasfe.even-better-toml"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name = "pypi"
# 5. Run `pipenv install --dev` in your terminal.

[packages]
codeforlife = {ref = "v0.14.6", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
codeforlife = {ref = "v0.14.8", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
# 🚫 Don't add [packages] below that are inhertited from the CFL package.
# TODO: check if we need the below packages
whitenoise = "==6.5.0"
Expand All @@ -48,7 +48,7 @@ google-cloud-container = "==2.3.0"
# "django-anymail[amazon_ses]" = "==7.0.*"

[dev-packages]
codeforlife = {ref = "v0.14.6", git = "https://github.com/ocadotechnology/codeforlife-package-python.git", extras = ["dev"]}
codeforlife = {ref = "v0.14.8", git = "https://github.com/ocadotechnology/codeforlife-package-python.git", extras = ["dev"]}
# codeforlife = {file = "../../codeforlife-package-python", editable = true, extras = ["dev"]}
# 🚫 Don't add [dev-packages] below that are inhertited from the CFL package.
# TODO: check if we need the below packages
Expand Down
134 changes: 67 additions & 67 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions backend/api/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
from .klass import ClassSerializer
from .school import SchoolSerializer
from .school_teacher_invitation import SchoolTeacherInvitationSerializer
from .student import StudentSerializer
from .student import (
CreateStudentSerializer,
ReleaseStudentSerializer,
ResetStudentPasswordSerializer,
TransferStudentSerializer,
)
from .teacher import TeacherSerializer
from .user import (
HandleIndependentUserJoinClassRequestSerializer,
ReleaseStudentUserSerializer,
UserSerializer,
)
Loading

0 comments on commit d832777

Please sign in to comment.