Commit Graph

776 Commits

Author SHA1 Message Date
afcc7f2de0 Allow more parameters to be passed in environment 2024-04-19 11:48:58 +02:00
954cf84f0f repochecker: Test number step are in phase with response precision
Closes: https://gitlab.cri.epita.fr/ing/majeures/srs/fic/server/-/issues/36
2024-04-19 11:48:58 +02:00
636cc2b55b repochecker: Markdown: unescape path to images 2024-04-19 11:48:58 +02:00
9a5347b8ef admin: Don't consider non-git directory as Fatal 2024-04-19 11:48:58 +02:00
c9e3a9ac3c Introducing get-remote-files to download remote files 2024-04-19 11:48:58 +02:00
c3353572e6 sync: Export DownloadExerciceFile function 2024-04-19 11:48:58 +02:00
1f833d39fc admin: Export more importer functions 2024-04-19 11:48:57 +02:00
b52622c772 repochecker: Check flag's help content through mdTextHooks 2024-04-19 11:48:57 +02:00
ecf5cac9c9 Add tests 2024-04-19 11:48:57 +02:00
b6966d47ce sync: Replace []error by go.uber.org/multierr 2024-04-19 11:48:57 +02:00
9f49a689fd Fix (CWE-118): Implicit memory aliasing in for loop. 2024-04-19 11:48:57 +02:00
6fd14306e1 Don't take case in count when sorting non-ordered vector flag
Fixes: https://gitlab.cri.epita.fr/ing/majeures/srs/fic/server/-/issues/30
2024-04-19 11:48:57 +02:00
20272e7bad Display a badge to inform about case sensitivity (can be disabled by setting) 2024-04-19 11:48:57 +02:00
190fdfe422 sync: Label flags can contain more than 255 chars in database 2024-04-19 11:48:57 +02:00
d6ff46ca7f New option to allow teams to self reset their progression 2024-04-19 11:48:57 +02:00
f328261ea2 repochecker: Fix number of detected choices with step attribute 2024-04-19 11:48:57 +02:00
08107931ea admin: View out of sync repositories 2024-04-19 11:48:57 +02:00
b08039c997 admin: New routes to expose git repositories status 2024-04-19 11:48:57 +02:00
d996c12452 repochecker-grammalecte: Fix headline.md spelling error 2024-04-19 11:48:57 +02:00
ba26dd6bb1 sync: Don't warn on remote compressed files 2024-04-19 11:48:57 +02:00
7573717f71 admin: Fix generator return format (was base64 bytes) 2024-04-19 11:48:57 +02:00
4b03f0befd admin: Create the SYNC directory if it doesn't exist 2024-04-19 11:48:57 +02:00
49aa1682d7 sync: Refactor how and when remote files are downloaded 2024-04-19 11:48:57 +02:00
6163d51e5b repochecker: New option to restrict domain where remote file can come from 2024-04-19 11:48:57 +02:00
3e1c01031f admin: Fix missing return 2024-04-19 11:48:57 +02:00
8b50029f4d admin: Fix errors reporting 2024-04-19 11:48:57 +02:00
1d4b79bf90 sync: Handle remote challenge files 2024-04-19 11:48:57 +02:00
ec3f818c30 sync: Exercice headline can be in a dedicated file 2024-04-19 11:48:57 +02:00
11662d8c5e dashboard: Allow countdown to be hidden 2024-04-19 11:48:56 +02:00
d2f409db7a New setting delegated_qa to store QA managers 2024-04-19 11:48:56 +02:00
89334ce57c admin: Fix panic as map is nil 2024-04-19 11:48:56 +02:00
6acc752bd9 label flags: Increase allowed size 2024-04-19 11:48:55 +02:00
5dd92a6603 CI: Use ./... instead of listing all packages 2024-04-19 11:48:55 +02:00
f097c029f3 Security fix: Incorrect permission assignment for critical resource 2024-04-19 11:48:55 +02:00
499e251796 security fix: Uncontrolled resource consumption (Slowloris) 2024-04-19 11:48:55 +02:00
1769938205 generator: Can perform synchronous generation 2024-04-19 11:48:55 +02:00
ed091e761c Split backend service into checker and generator
Both are linked through a unix socket.
2024-04-19 11:48:55 +02:00
1ca5452707 Rename frontend as receiver 2024-04-19 11:48:51 +02:00
dc83efa868 sync: Better perform exception in exercices 2024-04-19 11:46:54 +02:00
edbb867f62 sync: Allow exercice directory to do not have identifier 2024-04-19 11:46:54 +02:00
b86a6ebc0c admin: Add an animation when modifications are in progress 2024-04-19 11:46:54 +02:00
34f175e57b admin: Use branch indication to access the repo 2024-04-19 11:46:54 +02:00
28ad0fa791 fic: Can overwrite authors for each exercice 2024-04-19 11:46:54 +02:00
ab23ef8f71 admin: Fix API response 2024-04-19 11:46:54 +02:00
abe5ad61d4 fic: Exercice can have heading.jpg 2024-04-19 11:46:54 +02:00
f366d6b8c1 sync: Handle repochecker-ack.txt in exercice directory 2024-04-19 11:46:54 +02:00
c06d667088 fixup! svelte-migrate: updated files 2024-04-19 11:46:54 +02:00
3a38a75e25 admin: Readd missing route to add exercice from ui 2024-04-19 11:46:54 +02:00
edc5c25a29 sync: Try to handle new submodules on pull 2024-04-19 11:46:54 +02:00
d8458e5b49 repochecker: Update documentation URL 2024-04-19 11:46:54 +02:00
78189aab37 Rename ValidatorRegexp to CaptureRegexp 2024-04-19 11:46:54 +02:00
890a532d01 Minimize needed images 2024-04-19 11:46:54 +02:00
20dc1f65dc dashboard: can customize main image background 2024-04-19 11:46:54 +02:00
37dde01444 New settings hide_header to hide the top banner with partners and countdown 2024-04-19 11:46:53 +02:00
aad95f1e53 settings: Challenge can never ends 2024-04-19 11:46:53 +02:00
5fb85c22dc sync: Don't pull repo when doing synchronization. Do it only on auto-sync 2024-04-19 11:46:53 +02:00
ac64db277a admin: Don't consider .locked file as problematic 2024-04-19 11:46:53 +02:00
f6a251e2ec sync: Don't start SpeedySyncDeep by pull 2024-04-19 11:46:53 +02:00
2140939364 sync: Allow using challenge.toml instead of challenge.txt 2024-04-19 11:46:53 +02:00
20c41ec573 admin: Handle exercice path given to auto-sync 2024-04-19 11:46:53 +02:00
75eae43f60 admin: auto-sync tries to sync themes if it doesn't exists yet 2024-04-19 11:46:53 +02:00
63cf665f2d admin: Refactor sync/auto 2024-04-19 11:46:53 +02:00
e261c77c79 sync: Include in file presence checks splitted and compressed files 2024-04-19 11:46:53 +02:00
f5529ff72d admin: New option to pass branch to use 2024-04-19 11:46:53 +02:00
c5a059bd3b sync: Expose sync.Exists function 2024-04-19 11:46:53 +02:00
6bd23ee9f0 admin: Fix move between exercices 2024-04-19 11:46:53 +02:00
a585a6338e admin: Fix typo 2024-04-19 11:46:53 +02:00
4451e41285 New setting: introduce a decote/discount to exercice's gain 2024-04-19 11:46:52 +02:00
d4ce0dd474 Can lock theme 2024-04-19 11:46:52 +02:00
ef1eafb789 themes.json: Use a exercice list instead of hash 2024-04-19 11:46:52 +02:00
3fcf705dcf admin: Show what properties will be overwritted 2024-04-19 11:46:52 +02:00
eb85b28f5b Add a disabled state to exercices 2024-04-19 11:46:52 +02:00
847a42700f admin: Fix team updating 2024-04-19 11:46:52 +02:00
1d3a75ff82 sync: Don't stop parsing after the first treated image 2024-04-19 11:46:52 +02:00
0f65babdf4 admin/sync: typo 2024-04-19 11:46:52 +02:00
aa0e7406c1 Detect theme and exercice language at runtime (not stored) 2024-04-19 11:46:52 +02:00
4b09efa9fd sync: Handle finished.md as alternative to finished.txt 2024-04-19 11:46:52 +02:00
baa410e654 sync: Import labels of Label flags as Markdown 2024-04-19 11:46:52 +02:00
93eed8d5e4 sync: Display import error in markdown processing 2024-04-19 11:46:52 +02:00
f079ecd9e3 repochecker/grammalecte: Allow redondances in resolution.md 2024-04-19 11:46:52 +02:00
3421286c9b repochecker/grammalecte: Check for forbidden strings (raw flags) in resolution.md 2024-04-19 11:46:52 +02:00
80422daffb repochecker/grammalecte: Check resolution.md 2024-04-19 11:46:51 +02:00
1f3f0fd55b admin: Transmit sync errors to interface 2024-04-19 11:46:51 +02:00
bd19d31577 New attribute "disclaimer" on downloadable files 2024-04-19 11:46:51 +02:00
257c594dbe sync: Expose GetFileSize 2024-04-19 11:46:51 +02:00
abb277210c admin: Fix file download from admin interface 2024-04-19 11:46:51 +02:00
9bcf4a481e repochecker: Check gunziped file hash 2024-04-19 11:46:51 +02:00
6ca71230c1 Refactor sync file reading 2024-04-19 11:46:51 +02:00
541e32e10b sync: Return the reader from importer instead of writing to a given Writer 2024-04-19 11:46:51 +02:00
f4c3f1e15e sync: Create empty file for nginx gzip-static module 2024-04-19 11:46:51 +02:00
85027166d7 repochecker: Fix dependency loop detection 2024-04-19 11:46:51 +02:00
95a7986e94 admin: Rephrase label 2024-04-19 11:46:51 +02:00
a8fa58e111 repochecker: Add loop dependency detection 2024-04-19 11:46:51 +02:00
67f129ce4c qa: Auto-solve OK requests 2024-04-19 11:46:51 +02:00
cd07bec05b admin: Use branch main instead of master 2024-04-19 11:46:51 +02:00
c415e06237 libfic: Can indicate that an exercice is WIP 2024-04-19 11:46:51 +02:00
ae1378780f admin/sync: Also handle uncompressed file in CheckExerciceFiles 2024-04-19 11:46:51 +02:00
f9e9bfcb75 repochecker: fix numerous general issues with exception inheritance 2024-04-19 11:46:51 +02:00
19daf69482 admin/sync: New syntax for flag dependency 2024-04-19 11:46:51 +02:00
cc37348aaa repochecker/epita: Check full numbered flag has type number 2024-04-19 11:46:51 +02:00