Store evaluator templates in the database
To complete the feature request in frontend-react#19, automated evaluator templates should be stored in the database, in a new table, so later development can manage them dynamically from the frontend.
The database table should store the current information of the templates:
-
name
: string -
os
: enum (linux or windows) -
image
: string -
autoTestEnabled
: bool -
appType
: enum (console or web) -
compileInstructions
:string -
runInstructions
:string -
staticCodeAnalysisEnabled
: bool -
staticCodeAnalyzerTool
: string -
staticCodeAnalyzerInstructions
: string -
codeCheckerCompileInstructions
: string -
codeCheckerSkipFile
: string
Some extra fields should also be added:
-
enabled
: bool (so templates can be disabled without deletion) -
courseId
: later templates could be assigned to courses (should benull
for now)
The templates should be loaded from the database instead of the configuration file.
This will also make the configuration file config.dist.yml
a bit simpler, as it became quite complex already.
Edited by Máté Cserép