Commit Graph

264 Commits

Author SHA1 Message Date
nemunaire eeced21be8 sync: Allow justified as flag type
continuous-integration/drone/push Build is passing Details
2024-05-18 00:28:59 +02:00
nemunaire 651d428223 sync: Prefer challenge.toml over challenge.txt
continuous-integration/drone/push Build is passing Details
2024-05-16 13:09:13 +02:00
nemunaire f4d0e0001c sync: Don't overwrite theme image if it exists 2024-04-19 11:49:00 +02:00
nemunaire 122e919daf admin: Don't do only standalone exercices when doing speedy sync 2024-04-19 11:49:00 +02:00
nemunaire 26c282138e Extract background color to continue image 2024-04-19 11:48:59 +02:00
nemunaire 35d07c1aa4 sync: Peak a deterministic ID if 0 2024-04-19 11:48:59 +02:00
nemunaire 7fbe2f3f8e repochecker: Ensure hint and choice_cost are not higher than gain 2024-04-19 11:48:59 +02:00
nemunaire 09c1111135 repochecker: Ensure non-optional flag doesn't depend on optional one 2024-04-19 11:48:59 +02:00
nemunaire adb0e36dd4 Able to sync and export standalone exercices 2024-04-19 11:48:59 +02:00
nemunaire 0b04185933 sync: It the repository is on the wrong branch and shallow, update the config 2024-04-19 11:48:58 +02:00
nemunaire 904ef661ba sync: Continue sync if just submodule update fails 2024-04-19 11:48:58 +02:00
nemunaire b93c57f704 sync: If step is undefined, use the default value 2024-04-19 11:48:58 +02:00
nemunaire 3bd6ecf11e sync: Place hints files in the files/ directory 2024-04-19 11:48:58 +02:00
nemunaire 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
nemunaire 636cc2b55b repochecker: Markdown: unescape path to images 2024-04-19 11:48:58 +02:00
nemunaire 9a5347b8ef admin: Don't consider non-git directory as Fatal 2024-04-19 11:48:58 +02:00
nemunaire c3353572e6 sync: Export DownloadExerciceFile function 2024-04-19 11:48:58 +02:00
nemunaire 1f833d39fc admin: Export more importer functions 2024-04-19 11:48:57 +02:00
nemunaire b52622c772 repochecker: Check flag's help content through mdTextHooks 2024-04-19 11:48:57 +02:00
nemunaire ecf5cac9c9 Add tests 2024-04-19 11:48:57 +02:00
nemunaire b6966d47ce sync: Replace []error by go.uber.org/multierr 2024-04-19 11:48:57 +02:00
nemunaire 9f49a689fd Fix (CWE-118): Implicit memory aliasing in for loop. 2024-04-19 11:48:57 +02:00
nemunaire 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
nemunaire 190fdfe422 sync: Label flags can contain more than 255 chars in database 2024-04-19 11:48:57 +02:00
nemunaire f328261ea2 repochecker: Fix number of detected choices with step attribute 2024-04-19 11:48:57 +02:00
nemunaire b08039c997 admin: New routes to expose git repositories status 2024-04-19 11:48:57 +02:00
nemunaire d996c12452 repochecker-grammalecte: Fix headline.md spelling error 2024-04-19 11:48:57 +02:00
nemunaire ba26dd6bb1 sync: Don't warn on remote compressed files 2024-04-19 11:48:57 +02:00
nemunaire 49aa1682d7 sync: Refactor how and when remote files are downloaded 2024-04-19 11:48:57 +02:00
nemunaire 6163d51e5b repochecker: New option to restrict domain where remote file can come from 2024-04-19 11:48:57 +02:00
nemunaire 1d4b79bf90 sync: Handle remote challenge files 2024-04-19 11:48:57 +02:00
nemunaire ec3f818c30 sync: Exercice headline can be in a dedicated file 2024-04-19 11:48:57 +02:00
nemunaire 89334ce57c admin: Fix panic as map is nil 2024-04-19 11:48:56 +02:00
nemunaire 6acc752bd9 label flags: Increase allowed size 2024-04-19 11:48:55 +02:00
nemunaire f097c029f3 Security fix: Incorrect permission assignment for critical resource 2024-04-19 11:48:55 +02:00
nemunaire 1769938205 generator: Can perform synchronous generation 2024-04-19 11:48:55 +02:00
nemunaire dc83efa868 sync: Better perform exception in exercices 2024-04-19 11:46:54 +02:00
nemunaire edbb867f62 sync: Allow exercice directory to do not have identifier 2024-04-19 11:46:54 +02:00
nemunaire 34f175e57b admin: Use branch indication to access the repo 2024-04-19 11:46:54 +02:00
nemunaire 28ad0fa791 fic: Can overwrite authors for each exercice 2024-04-19 11:46:54 +02:00
nemunaire abe5ad61d4 fic: Exercice can have heading.jpg 2024-04-19 11:46:54 +02:00
nemunaire f366d6b8c1 sync: Handle repochecker-ack.txt in exercice directory 2024-04-19 11:46:54 +02:00
nemunaire edc5c25a29 sync: Try to handle new submodules on pull 2024-04-19 11:46:54 +02:00
nemunaire d8458e5b49 repochecker: Update documentation URL 2024-04-19 11:46:54 +02:00
nemunaire 78189aab37 Rename ValidatorRegexp to CaptureRegexp 2024-04-19 11:46:54 +02:00
nemunaire 20dc1f65dc dashboard: can customize main image background 2024-04-19 11:46:54 +02:00
nemunaire 5fb85c22dc sync: Don't pull repo when doing synchronization. Do it only on auto-sync 2024-04-19 11:46:53 +02:00
nemunaire f6a251e2ec sync: Don't start SpeedySyncDeep by pull 2024-04-19 11:46:53 +02:00
nemunaire 2140939364 sync: Allow using challenge.toml instead of challenge.txt 2024-04-19 11:46:53 +02:00
nemunaire e261c77c79 sync: Include in file presence checks splitted and compressed files 2024-04-19 11:46:53 +02:00