Commit Graph

256 Commits

Author SHA1 Message Date
adb0e36dd4 Able to sync and export standalone exercices 2024-04-19 11:48:59 +02:00
0b04185933 sync: It the repository is on the wrong branch and shallow, update the config 2024-04-19 11:48:58 +02:00
904ef661ba sync: Continue sync if just submodule update fails 2024-04-19 11:48:58 +02:00
b93c57f704 sync: If step is undefined, use the default value 2024-04-19 11:48:58 +02:00
3bd6ecf11e sync: Place hints files in the files/ directory 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
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
190fdfe422 sync: Label flags can contain more than 255 chars in database 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
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
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
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
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
f097c029f3 Security fix: Incorrect permission assignment for critical resource 2024-04-19 11:48:55 +02:00
1769938205 generator: Can perform synchronous generation 2024-04-19 11:48:55 +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
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
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
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
20dc1f65dc dashboard: can customize main image background 2024-04-19 11:46:54 +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
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
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
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