Skip to content
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

Admin panel #230

Closed
wants to merge 181 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
37cbb36
Merge pull request #116 from SELab-2/development
EwoutV Mar 14, 2024
dac7983
frontent(ProjectView) chore: closes #185
DeLany123 Mar 29, 2024
90e9d07
Merge pull request #200 from SELab-2/development
BramMeir Mar 29, 2024
0bda1d2
Merge pull request #202 from SELab-2/development
EwoutV Mar 29, 2024
52fc1fe
Merge pull request #211 from SELab-2/development
Topvennie Mar 30, 2024
9abe1ec
chore: admin panel scaffold
EwoutV Mar 31, 2024
73cf193
Merge branch 'development' into project_view
DeLany123 Apr 2, 2024
f2c7663
fix: merges add user.id's
DeLany123 Apr 2, 2024
abfa323
chore: set up jdom in tests
francisvaut Apr 3, 2024
fb842a1
chore static import jsdom
francisvaut Apr 3, 2024
4210942
chore: dont mount app in tests
francisvaut Apr 3, 2024
d9cf2ab
chore: add basic user services #228
bsilkyn Apr 3, 2024
bbf25c7
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
a09909e
chore: add admin page with nothing displayed yet #198
bsilkyn Apr 3, 2024
61e572a
chore: add admin to admins in setup
francisvaut Apr 3, 2024
879bc20
chore: popup dialog for editing (non-functional at the moment) #198
bsilkyn Apr 3, 2024
038661c
chore: admin create test
francisvaut Apr 4, 2024
de587df
chore: assistant create test
francisvaut Apr 4, 2024
b3b267b
chore: student create test
francisvaut Apr 4, 2024
9950e0c
chore: edit dialog edits values locally #198
bsilkyn Apr 4, 2024
1c01f24
chore: logic for adding new admin (untested) #198
bsilkyn Apr 4, 2024
f31922f
chore: course-faculty relation, faculty name translations
EwoutV Apr 3, 2024
fa2dcc4
chore: added debug option to echo user credentials upon login
EwoutV Apr 3, 2024
a5492f5
fix: debug parameter
EwoutV Apr 3, 2024
6aebd45
feat: course list
EwoutV Apr 3, 2024
74bfb22
fix: linting
EwoutV Apr 3, 2024
8a72921
chore: async/await constructs, better user fetching
EwoutV Apr 3, 2024
30193e7
feat: better error handling, linting
EwoutV Apr 3, 2024
06db1c9
fix: refresh user after enrollment
EwoutV Apr 3, 2024
d0cabf3
feat: pagination
EwoutV Apr 4, 2024
0a2f284
chore: squash migrations
EwoutV Apr 4, 2024
e6d5628
fix: faculty tests
EwoutV Apr 4, 2024
8b7e5c0
fix: linting
EwoutV Apr 4, 2024
68461a0
chore: pr comments
EwoutV Apr 4, 2024
314eaba
chore: translations, test linting
EwoutV Apr 4, 2024
102da54
chore: frontend linting
EwoutV Apr 4, 2024
99a8858
Merge pull request #231 from SELab-2/course-search
francisvaut Apr 4, 2024
728305e
chore: init project creation from dashboard
BramMeir Apr 1, 2024
ed6cf33
chore: project creation logic
BramMeir Apr 1, 2024
54be640
chore: add time selection to deadline
BramMeir Apr 1, 2024
81f5c4c
chore: dashboard for every role
BramMeir Apr 3, 2024
dc6614c
chore: start form validation
BramMeir Apr 3, 2024
e4d2bbc
chore: create course validation + academic year display
BramMeir Apr 4, 2024
685777b
chore: error message component
BramMeir Apr 4, 2024
243b030
chore: merge
EwoutV Apr 4, 2024
62a6a08
Merge pull request #232 from SELab-2/project_creation
EwoutV Apr 4, 2024
81f3875
Merge branch 'development' into project_view
DeLany123 Apr 5, 2024
1d55747
chore: admin panel scaffold
EwoutV Mar 31, 2024
820a636
chore: add basic user services #228
bsilkyn Apr 3, 2024
8fe865f
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
bbce367
chore: add admin page with nothing displayed yet #198
bsilkyn Apr 3, 2024
93b91e4
chore: popup dialog for editing (non-functional at the moment) #198
bsilkyn Apr 3, 2024
9c6bdb8
chore: edit dialog edits values locally #198
bsilkyn Apr 4, 2024
a2161c4
chore: logic for adding new admin (untested) #198
bsilkyn Apr 4, 2024
8bad4d1
chore: package lock for this branch
bsilkyn Apr 5, 2024
42f2202
chore: refactor imports
bsilkyn Apr 5, 2024
e2ba6fd
Merge branch 'development' into services
francisvaut Apr 5, 2024
cc99330
fix: fix failing tests
francisvaut Apr 5, 2024
49bb7c0
Frontend: leave/join groups
DeLany123 Apr 5, 2024
90aa96c
fix: group join state
EwoutV Apr 5, 2024
00f7098
chore: action test script
francisvaut Apr 5, 2024
b90a79b
chore: run test action as sudo
francisvaut Apr 5, 2024
40e5c6b
chore: secret key test
francisvaut Apr 5, 2024
52dc1f2
fix: action script syntax
francisvaut Apr 5, 2024
2099fff
chore: run test action with c flag
francisvaut Apr 5, 2024
96ce289
chore: remove backend tests action
francisvaut Apr 5, 2024
768e55f
chore: remove cypress login test
francisvaut Apr 5, 2024
178cf4e
chore: add permission to remove previous action script directory
francisvaut Apr 5, 2024
be57c37
chore: fix linting, tests
francisvaut Apr 5, 2024
977bac5
chore: add dummy cypress test
francisvaut Apr 5, 2024
7da10f6
chore: linting autofix
francisvaut Apr 5, 2024
6130296
Merge pull request #235 from SELab-2/services
tyboro2002 Apr 6, 2024
7f77bf9
Frontend: styling Closes #184
DeLany123 Apr 6, 2024
3f2a415
Backend: fix, updated group submission permission
DeLany123 Apr 6, 2024
f0e557c
chore: add filtering ability for users in backend
bsilkyn Apr 6, 2024
8a354bd
chore: try adding the seeder lib
tyboro2002 Apr 6, 2024
172fda9
chore: add student provider
tyboro2002 Apr 6, 2024
a6957c8
chore: seed courses
tyboro2002 Apr 6, 2024
9269394
Frontend: ProjectView
DeLany123 Apr 6, 2024
4b3f432
chore: seed assistants
tyboro2002 Apr 6, 2024
a8a4b58
chore: seed assistants moved before courses
tyboro2002 Apr 6, 2024
1cad9f9
Frontend: feat fileupload
DeLany123 Apr 7, 2024
973c7d8
chore: seed teacherss
tyboro2002 Apr 7, 2024
d7b0b9d
chore: seed projects
tyboro2002 Apr 7, 2024
1ec1b7e
chore: seed groups
tyboro2002 Apr 7, 2024
26ad231
chore: seed submissions
tyboro2002 Apr 7, 2024
0e83335
chore: merge completed
bsilkyn Apr 7, 2024
86c422b
chore: add filters + rework display of roles #198
bsilkyn Apr 7, 2024
5039d76
chore: add error handling to the commands
tyboro2002 Apr 7, 2024
fb2dece
chore: make admin script take in username
tyboro2002 Apr 7, 2024
0afad8a
chore: provide structure_checks
tyboro2002 Apr 8, 2024
e6ab64a
Frontend: feat FileUpload logic + styling
DeLany123 Apr 8, 2024
3349f15
Frontend: feat Add projects to navbar, closes #243
DeLany123 Apr 8, 2024
9503283
Frontend: fix linting for #245
DeLany123 Apr 8, 2024
ed248bb
fix: production down when tests being run
Topvennie Apr 8, 2024
0919332
chore: cleanup seeders and add students assistants and teachers to co…
tyboro2002 Apr 8, 2024
32995dd
Update project.service.ts #245
DeLany123 Apr 8, 2024
6c54026
chore: added ignored nginx conf
Topvennie Apr 8, 2024
89c0336
Merge pull request #245 from SELab-2/project_view
tyboro2002 Apr 8, 2024
4df5954
Merge branch 'development' of github.com:SELab-2/UGent-7 into seeders
tyboro2002 Apr 8, 2024
06bd90a
Merge pull request #246 from SELab-2/testing_environment
francisvaut Apr 8, 2024
3eb8851
fix: fix linting in makeAdmin.py
tyboro2002 Apr 8, 2024
c714852
fix: make backend tests work
tyboro2002 Apr 8, 2024
0365bef
fix: fix linting in makeAdmin.py
tyboro2002 Apr 8, 2024
cfe4696
fix: fix linting in seedDb.py
tyboro2002 Apr 8, 2024
4bc968d
chore: fix linter warnings
tyboro2002 Apr 8, 2024
0b0ef12
chore: fix linter warnings
tyboro2002 Apr 8, 2024
7d32837
Merge pull request #247 from SELab-2/seeders
DeLany123 Apr 8, 2024
197a31a
Extra checks (#238)
Topvennie Apr 8, 2024
5caf521
feat: better calendar view
EwoutV Apr 9, 2024
bccc7ad
Revert "feat: better calendar view"
EwoutV Apr 9, 2024
e13cc61
chore: add make teacher script
tyboro2002 Apr 8, 2024
0cb4bc4
fix: added psychology faculty icon
EwoutV Apr 8, 2024
00a9254
Calendar view improvements (#257)
EwoutV Apr 9, 2024
f4f3d71
feat: better calendar view
EwoutV Apr 9, 2024
b488a1d
chore: linting
EwoutV Apr 9, 2024
5084e5e
Merge pull request #258 from SELab-2/calendar-view-improvements
BramMeir Apr 9, 2024
328b585
Reduce container size (#259)
Topvennie Apr 9, 2024
448249a
Seeders (#248)
tyboro2002 Apr 9, 2024
26e5e43
Role management (#260)
EwoutV Apr 9, 2024
dd610a1
chore: hotfix
tyboro2002 Apr 9, 2024
ac6d699
chore: hotfix (#267)
tyboro2002 Apr 9, 2024
bd17fa6
Merge branch 'development' of github.com:SELab-2/UGent-7 into hotfix
tyboro2002 Apr 9, 2024
ebecd8a
chore: commit changes
tyboro2002 Apr 9, 2024
954a5c6
Merge pull request #270 from SELab-2/hotfix
BramMeir Apr 9, 2024
82524b0
Project creation update (#271)
BramMeir Apr 9, 2024
448b337
Course card improvements (#272)
EwoutV Apr 9, 2024
d667743
fix: user creation
EwoutV Apr 9, 2024
7850ce7
chore: linting
EwoutV Apr 9, 2024
31d69f5
Deployment (#273)
EwoutV Apr 9, 2024
858eb6a
chore: linting
EwoutV Apr 9, 2024
2ea8bff
chore:linting
EwoutV Apr 9, 2024
629ae0b
Actions (#277)
francisvaut Apr 9, 2024
e24c736
build: change sh -c to bash -c (#278)
francisvaut Apr 9, 2024
f5bc347
Backend Dockerfile fix (#280)
EwoutV Apr 9, 2024
776c880
Docker fix (#282)
EwoutV Apr 9, 2024
ab02dc0
Docker fix (#283)
EwoutV Apr 9, 2024
32a15da
fix: glob imports
EwoutV Apr 10, 2024
bba01c7
chore: linting
EwoutV Apr 10, 2024
6edaa10
Update README.md
EwoutV Apr 10, 2024
97b2116
Glob import fix (#285)
EwoutV Apr 10, 2024
7457569
fix: better glob indexing
EwoutV Apr 10, 2024
45d939d
Merge branch 'main' into glob-import-fix
EwoutV Apr 10, 2024
e10675e
Glob import fix (#286)
EwoutV Apr 10, 2024
562ebd0
Update deployement.yml
EwoutV Apr 10, 2024
90f987f
chore: seeding config
EwoutV Apr 10, 2024
9183ee3
Glob import fix (#287)
EwoutV Apr 10, 2024
272a304
fix: seeder
EwoutV Apr 10, 2024
47c6115
Merge branch 'main' into glob-import-fix
EwoutV Apr 10, 2024
3e71075
chore: linting
EwoutV Apr 10, 2024
615ad75
Glob import fix (#284)
EwoutV Apr 10, 2024
6e35e46
Merge branch 'development' into seeder-improvements
EwoutV Apr 10, 2024
6b4a12c
chore: native SQL seeder queries
EwoutV Apr 10, 2024
d802a7c
chore: removed db files
EwoutV Apr 10, 2024
530ac65
chore: some small cleanup
tyboro2002 Apr 10, 2024
be64b5a
Merge pull request #290 from SELab-2/seeder-improvements
tyboro2002 Apr 10, 2024
e110744
chore: admin panel scaffold
EwoutV Mar 31, 2024
6189f32
chore: add basic user services #228
bsilkyn Apr 3, 2024
c38c823
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
5b1041b
chore: add admin page with nothing displayed yet #198
bsilkyn Apr 3, 2024
13eb919
chore: popup dialog for editing (non-functional at the moment) #198
bsilkyn Apr 3, 2024
bdd4745
chore: edit dialog edits values locally #198
bsilkyn Apr 4, 2024
abf674f
chore: logic for adding new admin (untested) #198
bsilkyn Apr 4, 2024
1821c4d
chore: refactor imports
bsilkyn Apr 5, 2024
2701e46
chore: add filtering ability for users in backend
bsilkyn Apr 6, 2024
5945f2a
chore: admin panel scaffold
EwoutV Mar 31, 2024
c0ff818
chore: add basic user services #228
bsilkyn Apr 3, 2024
331ad0f
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
9a6c5a9
chore: logic for adding new admin (untested) #198
bsilkyn Apr 4, 2024
6526305
chore: add filters + rework display of roles #198
bsilkyn Apr 7, 2024
930e77b
chore: admin panel scaffold
EwoutV Mar 31, 2024
0a8a33e
chore: add basic user services #228
bsilkyn Apr 3, 2024
af4a1b6
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
e56c8b9
chore: logic for adding new admin (untested) #198
bsilkyn Apr 4, 2024
b89e8ba
chore: refactor imports
bsilkyn Apr 5, 2024
922b322
chore: add filtering ability for users in backend
bsilkyn Apr 6, 2024
7e1fb87
chore: admin panel scaffold
EwoutV Mar 31, 2024
598a4e5
chore: basic user view (id + username + email + roles) #198
bsilkyn Apr 3, 2024
2e5beaa
chore: lint fixes #198
bsilkyn Apr 7, 2024
380f6ee
chore: add translations and set up for adding roles remotely for a us…
bsilkyn Apr 8, 2024
22d1905
chore: add admin switch to edit dialog #198
bsilkyn Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/backend-linting.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: backend-linting

on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
workflow_dispatch:
Expand All @@ -11,6 +9,8 @@ jobs:
test:
runs-on: self-hosted
steps:
- name: Add permission to remove contents of previous action script
run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/backend-tests.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/deployement.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy
name: deploy
on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
Expand All @@ -18,6 +19,6 @@ jobs:
script: |
cd UGent-7
docker-compose -f production.yml down
git pull
git pull --force
docker-compose -f production.yml build --no-cache
docker-compose -f production.yml up -d
2 changes: 0 additions & 2 deletions .github/workflows/frontend-linting.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: frontend-linting

on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
workflow_dispatch:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: tests

on:
pull_request:
branches: [main, development]
workflow_dispatch:

jobs:
test:
runs-on: self-hosted
steps:
- name: Add permission to remove contents of previous action script
run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/
- uses: actions/checkout@v4
- name: Run tests
run: echo ${{ secrets.SUDO }} | sudo -S ./test.sh -c
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ frontend/cypress/videos/*


!data/nginx/ssl/.gitkeep
!data/nginx/nginx.dev.conf
!data/nginx/nginx.test.conf
!data/nginx/nginx.prod.conf
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Ypovoli

![backend linting](https://github.com/SELab-2/UGent-7/actions/workflows/backend-linting.yaml/badge.svg)
![backend tests](https://github.com/SELab-2/UGent-7/actions/workflows/backend-tests.yaml/badge.svg)
![backend tests](https://github.com/SELab-2/UGent-7/actions/workflows/tests.yaml/badge.svg)

This application was developed within the framework of the course "Software Engineering Lab 2" within the Computer Science program at Ghent University.

Expand Down
Binary file removed backend/.coverage
Binary file not shown.
3 changes: 2 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.venv
.idea
db.sqlite3
staticfiles
db.sqlite3*
__pycache__
*.mo
8 changes: 3 additions & 5 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM python:3.11.4
FROM python:3.11.4-alpine3.18

RUN apt update && apt install -y gettext libgettextpo-dev && pip install --upgrade pip && pip install -U poetry
RUN apk update && apk add --no-cache gettext libintl && pip install -U poetry
RUN poetry config virtualenvs.create false

WORKDIR /code

COPY pyproject.toml poetry.lock ./
RUN poetry install --only main

COPY . .

RUN ./setup.sh
COPY . ./
8 changes: 3 additions & 5 deletions backend/api/apps.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

from django.apps import AppConfig


class ApiConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "api"

def ready(self):
from authentication.signals import user_created
from api.signals import user_creation

user_created.connect(user_creation)
def ready(self) -> None:
import api.signals
82 changes: 74 additions & 8 deletions backend/api/fixtures/courses.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,87 @@
- model: api.course
pk: 1
fields:
name: Math
name: "Parallel and Distributed Software Systems"
academic_startyear: 2023
description: Math course
description: "Deze cursus brengt de studenten de verschillende aspecten aan van het ontwerp en
implementatie van gedistribueerde software. De cursus geeft de studenten een state-of-the-art
overzicht van parallelle en cloud-gebaseerde systemen, het ontwerp van parallelle software,
software engineering specifiek voor deze applicaties en het beheren van hoog-performante en
cloud-gebaseerde systemen. De nadruk ligt op de algoritmische aspecten, software aspecten
en op de verschillende programmeermodellen. Hardware en architectuur aspecten worden
slechts aangehaald in de mate noodzakelijk voor het begrijpen van de impact van software
performantie."
parent_course: null
faculty: "Ingenieurswetenschappen_Architectuur"
- model: api.course
pk: 2
fields:
name: Sel2
name: "Wiskundige modellering in de ingenieurswetenschappen"
academic_startyear: 2023
description: Software course
parent_course: 3
description: "De basiswiskunde en de eruit voortspruitende wiskundige modellen spelen een prominente rol
in de ingenieurswetenschappen. Wiskunde maakt immers de kwantitatieve aanpak mogelijk die
eigen is aan de ingenieurspraktijk, en wiskundig modelleren ligt aan de basis van de meeste
courante technologische innovaties."
parent_course: null
faculty: "Wetenschappen"
- model: api.course
pk: 3
fields:
name: Sel1
academic_startyear: 2022
description: Software course
name: "Software Engineering Lab 2"
academic_startyear: 2023
description: "Het ontwerpen en ontwikkelen van een groot software-project in teamverband waarbij
vaardigheden en kennis uit verschillende opleidingsonderdelen moeten worden toegepast. De
uitvoering van het project gebeurt in een context die de bedrijfsrealiteit zoveel mogelijk
nabootst: de projectgroepen moeten zelfstandig beslissingen nemen over werkverdeling,
tijdsbesteding, keuze van architectuur en programmeeromgeving, enz."
parent_course: null
faculty: "Wetenschappen"
- model: api.course
pk: 4
fields:
name: "Informatiebeveiliging"
academic_startyear: 2023
description: "Kennis bijbrengen van basisbegrippen over informatiebeveiliging (wiskundige basis,
toepassingen en legale aspecten)"
parent_course: null
faculty: "Ingenieurswetenschappen_Architectuur"
- model: api.course
pk: 5
fields:
name: "Computationele biologie"
academic_startyear: 2023
description: "Waar komt SARS vandaan? Hebben wij genen geërfd van de Neanderthalers? Hoe gebruiken
planten hun interne klok? Hoeveel genetisch materiaal wordt er uitgewisseld tussen bacteriële
soorten? De genomische revolutie in de biologie maakt het mogelijk om een antwoord te
vinden op elk van deze vragen. Maar deze revolutie zou onmogelijk geweest zijn zonder de
ondersteuning van krachtige computationele en statistische methodes die toelaten om gebruik
te maken van deze genomische informatie. Oplossen van openstaande en toekomstige
problemen die opduiken in dit intrigerend onderzoeksdomein vereist de opleiding van een
volgende generatie onderzoekers, die zich vloeiend kunnen uitdrukken in de taal van de
wiskunde, informatica en biologie."
parent_course: null
faculty: "Wetenschappen"
- model: api.course
pk: 6
fields:
name: "Inleiding tot de elektrotechniek"
academic_startyear: 2023
description: "Practica horend bij het opleidingsonderdeel"
parent_course: null
faculty: "Wetenschappen"
- model: api.course
pk: 7
fields:
name: "Mobile and Broadband Access Networks"
academic_startyear: 2023
description: "Practica horend bij het opleidingsonderdeel"
parent_course: null
faculty: "Ingenieurswetenschappen_Architectuur"
- model: api.course
pk: 8
fields:
name: "Design of Multimedia Applications"
academic_startyear: 2023
description: "Software projects"
parent_course: null
faculty: "Ingenieurswetenschappen_Architectuur"
25 changes: 24 additions & 1 deletion backend/api/fixtures/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,32 @@
- model: api.group
pk: 3
fields:
project: 123456
project: 2
score: 8
students: []
- model: api.group
pk: 4
fields:
project: 2
score: 8
students:
- '1'
- model: api.group
pk: 5
fields:
project: 2
score: 8
students:
- '2'

- model: api.group
pk: 6
fields:
project: 2
score: 8
students:
- '3'

- model: api.group
pk: 2
fields:
Expand Down
15 changes: 14 additions & 1 deletion backend/api/fixtures/projects.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- model: api.project
pk: 123456
fields:
name: sel2
name: sel1
description: make a project
visible: true
archived: false
Expand All @@ -22,3 +22,16 @@
group_size: 3
max_score: 20
course: 1

- model: api.project
pk: 2
fields:
name: sel2
description: make a project, but better and more fun than the previous one because it's the second one and we learned from the first one
visible: true
archived: false
start_date: 2024-02-26 00:00:00+00:00
deadline: 2024-02-27 00:00:00+00:00
group_size: 3
max_score: 20
course: 1
15 changes: 15 additions & 0 deletions backend/api/fixtures/submissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@
submission_number: 2
submission_time: "2021-01-02T00:00:00Z"
structure_checks_passed: True
- model: api.submission
pk: 3
fields:
group: 4
submission_number: 1
submission_time: "2021-01-02T00:00:00Z"
structure_checks_passed: True
- model: api.submission
pk: 4
fields:
group: 4
submission_number: 2
submission_time: "2021-01-02T00:00:00Z"
structure_checks_passed: True


- model: api.submissionfile
pk: 1
Expand Down
Loading
Loading