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

Run checks #397

Merged
merged 49 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a44797d
chore: networking
Topvennie Apr 26, 2024
4fa656d
chore: I hate fixtures
Topvennie Apr 27, 2024
ee459a2
chore: added back container names
Topvennie Apr 27, 2024
c932209
chore: change some routes
Topvennie Apr 27, 2024
7b1a286
chore: change structure check model
Topvennie Apr 27, 2024
383dbf0
feat: build docker images
Topvennie Apr 27, 2024
ad8aa81
feat: extra checks
Topvennie May 2, 2024
09f2be2
chore: add translations
Topvennie May 2, 2024
b234a13
chore: merge migrations
Topvennie May 2, 2024
dc3fbce
tests: fix em all
Topvennie May 2, 2024
84d018b
chore: removed unused variable
Topvennie May 2, 2024
33c8631
chore: remove container upon completion
Topvennie May 2, 2024
486c87f
chore: enforce memory & time limits
Topvennie May 3, 2024
a987df9
chore: add env variable
Topvennie May 3, 2024
e456547
chore: networking
Topvennie Apr 26, 2024
27530e3
chore: I hate fixtures
Topvennie Apr 27, 2024
ca91def
chore: added back container names
Topvennie Apr 27, 2024
b56c7e3
chore: change some routes
Topvennie Apr 27, 2024
c6491f7
chore: change structure check model
Topvennie Apr 27, 2024
89c9f30
feat: build docker images
Topvennie Apr 27, 2024
7917a74
feat: extra checks
Topvennie May 2, 2024
6e6e362
chore: add translations
Topvennie May 2, 2024
b586037
chore: merge migrations
Topvennie May 2, 2024
c5778e5
tests: fix em all
Topvennie May 2, 2024
c494920
chore: removed unused variable
Topvennie May 2, 2024
93d0978
chore: remove container upon completion
Topvennie May 2, 2024
15ec53c
chore: enforce memory & time limits
Topvennie May 3, 2024
ca2ca9b
chore: add env variable
Topvennie May 3, 2024
a49846e
chore: Allow custom exit codes
Topvennie May 3, 2024
69dc583
chore: structure checks
Topvennie May 5, 2024
93378ed
chore: yeet tests
Topvennie May 5, 2024
a60b1c3
chore: linting
Topvennie May 5, 2024
0c0bd72
chore: fixtures grrrr
Topvennie May 5, 2024
bee9fee
chore: sort docker volumes
Topvennie May 5, 2024
a783671
chore: remove submission routes
Topvennie May 5, 2024
c3012af
chore: add package
Topvennie May 6, 2024
2981c94
chore: less linting
Topvennie May 6, 2024
98c1a02
Merge remote-tracking branch 'origin/run_checks' into run_checks
DeLany123 May 6, 2024
5cd1fd3
chore: fix tests
Topvennie May 6, 2024
d457a2d
chore: add realistic fixtures
DeLany123 May 6, 2024
3601074
Merge remote-tracking branch 'origin/run_checks' into run_checks
DeLany123 May 6, 2024
7edea0c
chore: to js we go
Topvennie May 6, 2024
d886bfe
chore: Frontend fixes for #397
DeLany123 May 6, 2024
dc15f83
Merge branch 'refs/heads/run_checks_fix_frontend' into run_checks
DeLany123 May 6, 2024
c9ac6de
chore: yeeted cypress
DeLany123 May 6, 2024
52d7343
chore: fix tests
DeLany123 May 6, 2024
8787bb3
chore: fix tests 2
DeLany123 May 6, 2024
373bd53
chore: fix tests 3
DeLany123 May 6, 2024
c77f803
chore: linting for prutsers
DeLany123 May 6, 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
1 change: 1 addition & 0 deletions .dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ REDIS_PORT=6379

# Django
DJANGO_SECRET_KEY=""
DJANGO_ROOT_DIR=""
DJANGO_DEBUG=True
DJANGO_DOMAIN_NAME=localhost
DJANGO_CAS_URL_PREFIX=""
Expand Down
1 change: 1 addition & 0 deletions .prod.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ REDIS_PORT=6379

# Django
DJANGO_SECRET_KEY=""
DJANGO_ROOT_DIR=""
DJANGO_DEBUG=False
DJANGO_DOMAIN_NAME=""
DJANGO_CAS_URL_PREFIX=""
Expand Down
16 changes: 9 additions & 7 deletions backend/.flake8
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[flake8]

# Ignore unused imports; W503 and W504 conflict with each-other
ignore = F401,W504
ignore = F401
W504
W503
C901

max-line-length = 125

max-complexity = 10

exclude = .git,
__pycache__,
.venv,
venv,
migrations

exclude = .git,
__pycache__,
.venv,
venv,
migrations
2 changes: 1 addition & 1 deletion backend/api/fixtures/large/large.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/api/fixtures/medium/medium.json

Large diffs are not rendered by default.

192 changes: 192 additions & 0 deletions backend/api/fixtures/realistic/realistic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
[
{
"model": "api.dockerimage",
"pk": 0,
"fields":
{
"name": "miss.jpeg",
"file": "/now/move",
"owner": "0",
"public": true
}
},
{
"model": "api.course",
"pk": 0,
"fields":
{
"name": "Front-line even-keeled concept",
"academic_startyear": 2023,
"excerpt": "Guess shoulder step training everyone.",
"description": "Because eye push it knowledge. Environmental room north area sport beat.",
"faculty": "Letteren_Wijsbegeerte",
"parent_course": null
}
},
{
"model": "api.teacher",
"pk": "0",
"fields":
{
"is_active": true,
"courses": [0]
}
},
{
"model": "api.project",
"pk": 0,
"fields":
{
"name": "Intuitive bi-directional knowledgebase",
"description": "Activity word film including its. Gun its carry future. Recently fact trouble civil and firm.",
"visible": true,
"archived": false,
"locked_groups": false,
"start_date": "2024-05-07T08:35:49.346Z",
"deadline": "2024-06-15T08:35:49.346Z",
"max_score": 100,
"score_visible": false,
"group_size": 5,
"course": 0
}
},
{
"model": "api.student",
"pk": "1",
"fields":
{
"is_active": true,
"student_id": "1",
"courses": [0]
}
},
{
"model": "api.student",
"pk": "2",
"fields":
{
"is_active": true,
"student_id": "2",
"courses": [0]
}
},
{
"model": "api.student",
"pk": "3",
"fields":
{
"is_active": true,
"student_id": "3",
"courses": [0]
}
},
{
"model": "api.student",
"pk": "4",
"fields":
{
"is_active": true,
"student_id": "4",
"courses": [0]
}
},
{
"model": "api.group",
"pk": 0,
"fields":
{
"project": 0,
"score": 0.0,
"students": ["1", "2", "3", "4"]
}
},
{
"model": "api.submission",
"pk": 1,
"fields":
{
"group": 0,
"submission_number": 6,
"submission_time": "2024-04-15T00:00:00Z",
"is_valid": true
}
},
{
"model": "api.submission",
"pk": 0,
"fields":
{
"group": 0,
"submission_number": 5,
"submission_time": "2024-04-15T00:00:00Z",
"is_valid": true
}
},
{
"model": "api.fileextension",
"pk": 0,
"fields":
{
"extension": "pdf"
}
},
{
"model": "api.fileextension",
"pk": 1,
"fields":
{
"extension": "txt"
}
},
{
"model": "api.structurecheck",
"pk": 0,
"fields":
{
"path": "/effect/morning/back/reality",
"project": 0,
"obligated_extensions": [0],
"blocked_extensions": [1]
}
},
{
"model": "api.checkresult",
"pk": 0,
"fields":
{
"polymorphic_ctype": 19,
"submission": 0,
"result": "SUCCESS",
"error_message": null
}
},
{
"model": "api.structurecheckresult",
"pk": 0,
"fields":
{
"structure_check": 0
}
},
{
"model": "api.extracheck",
"pk": 0,
"fields":
{
"docker_image": 0,
"project": 0,
"file": "/now/move"
}
},
{
"model": "api.extracheckresult",
"pk": 0,
"fields":
{
"submission": 1,
"extra_check": 0,
"result": "SUCCESS",
"error_message": null
}
}
]
2 changes: 1 addition & 1 deletion backend/api/fixtures/small/small.json

Large diffs are not rendered by default.

Loading