Commit Graph

132 Commits

Author SHA1 Message Date
Felix Auringer
cf58be97ee Fix 17 previously failing specs 2021-11-01 17:12:49 +01:00
Konrad Hanff
90fac7b94c Copy execution environment to Poseidon on create and update
When creating or updating an execution environment, an API call to
Poseidon is made with the necessary information to create the
corresponding Nomad job.

If runner management is configured, his will display a warning
(currently in the same color as if it were a success) in the UI, if the
API call fails. The environment is saved even if it fails.
If runner management is not configured, this warning will not be created.
2021-11-01 17:12:48 +01:00
Felix Auringer
63d997a7e3 Fix Rubocop offenses after Rubocop was reconfigured 2021-11-01 17:12:47 +01:00
Konrad Hanff
92b249e7b3 Reimplement scoring and create connection abstraction
Co-authored-by: Felix Auringer <felix.auringer@student.hpi.uni-potsdam.de>
2021-11-01 17:12:43 +01:00
Sebastian Serth
74e285e9fd Fix rubocop offenses 2021-10-05 12:09:56 +02:00
Ralf Teusner
a170f7bfc2 Throw exception on any error within Concurrent::Future
Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
2021-08-05 23:17:06 +02:00
Ralf Teusner
3840b45f8a Revert "Revert "Use switch_locale instead of I18n.with_locale directly""
This reverts commit 2c08e270e7.

Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
2021-08-05 23:17:06 +02:00
Ralf Teusner
2c08e270e7 Revert "Use switch_locale instead of I18n.with_locale directly"
This reverts commit 125c342f35.
2021-08-05 11:55:54 +02:00
Sebastian Serth
125c342f35 Use switch_locale instead of I18n.with_locale directly 2021-07-26 12:01:25 +02:00
Sebastian Serth
448b5e4a7a Use current_locale for "not_graded" hint 2021-07-22 10:23:57 +02:00
Sebastian Serth
7010614a75 Re-enable translation of linter messages 2021-06-28 22:11:00 +02:00
Sebastian Serth
d08707f62e Fix switch_locale to return the block result 2021-06-28 16:08:24 +02:00
Sebastian Serth
7b4a487530 Localize exercises.implement.not_graded 2021-06-11 22:23:09 +02:00
Sebastian Serth
5243808d54 Apply automatic rubocop fixes 2021-05-17 19:40:38 +02:00
Sebastian Serth
da0a682ffb Apply manual rubocop fixes 2021-05-14 22:03:06 +02:00
Sebastian Serth
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
Sebastian Serth
48904a19fd Fix test for new custom file 2021-05-14 17:35:37 +02:00
Sebastian Serth
bf6ab4f114 Prevent custom files from being rejected 2021-05-14 17:15:55 +02:00
Sebastian Serth
2b32829e60 Upgrade DatabaseCleaner strategy 2021-05-12 16:47:05 +02:00
tobias.kantusch
36cacc2330 Pass exercise object instead of id to reject_illegal_file_attributes 2021-04-30 12:06:11 +02:00
tobias.kantusch
b3c110cead Improve code style 👮 2021-04-30 12:06:11 +02:00
tobias.kantusch
caaa52409e Avoid that files from other exercises can be created 2021-04-30 12:06:10 +02:00
tobias.kantusch
1f3c9db537 Reject illegal file attributes in remote evaluation
Remove ! from reject illegal file parameters
2021-04-30 12:06:09 +02:00
Sebastian Serth
39467ad0e0 Hide linter in week 1 and 2 of Python course 2021-03-08 23:20:42 +01:00
Sebastian Serth
110b009480 Remove A/B test from Python20 course setup 2021-03-08 23:15:58 +01:00
Sebastian Serth
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
Sebastian Serth
0f55c64ddd Refactor LTI study group assignment 2021-02-16 22:01:11 +01:00
Sebastian Serth
a5da0eb91e Delete study_group_id for LTI users on sign out 2021-02-01 15:56:23 +01:00
Sebastian Serth
6900d4ef2c Add collapse_exercise_description LTI parameter 2021-01-29 13:54:47 +01:00
Sebastian Serth
ae47913ca8 Pass locale to PyLint translator and allow switchable output 2021-01-20 22:41:49 +01:00
Sebastian Serth
423a5b08f9 Allow internal user to be part of an study group 2021-01-11 14:22:50 +01:00
Sebastian Serth
20741835b5 Remove additional sentry logging for invalid objects 2020-11-27 16:29:53 +01:00
Sebastian Serth
c32e7586cd Remove consumer_id from session
* Each external (and also internal) user has a consumer attached. We don't need that information twice.
2020-11-25 21:19:18 +01:00
Sebastian Serth
993fb88f03 Enable submit via API client 2020-11-25 20:47:28 +01:00
Sebastian Serth
807b763e49 Add Sentry info if returning unprocessable_entity 2020-11-11 17:42:20 +01:00
Sebastian Serth
fc6b0f2adc Fix not_graded to German 2020-11-09 21:38:52 +01:00
Sebastian Serth
84c291626f Make note "not graded" optional for linters 2020-11-09 21:19:24 +01:00
Sebastian Serth
5fdfb12e62 Add German translations for PyLint adapter with basic spec 2020-11-08 01:04:39 +01:00
Sebastian Serth
9cd8ca2013 Merge branch 'bug_fixes' 2020-10-28 16:46:41 +01:00
Sebastian Serth
eef48c47cd Fix access to empty output 2020-10-28 13:29:03 +01:00
Sebastian Serth
1b5d1d3dca Reduce score sent via LTI if too late 2020-10-28 11:58:40 +01:00
Sebastian Serth
bad51add3f Store parsed linter messages 2020-10-26 21:14:09 +01:00
Sebastian Serth
472ed120c6 Merge pull request #756 from openHPI/concurrent_scoring
Concurrent scoring
2020-10-25 16:30:49 +01:00
Sebastian Serth
9fb3dd13e4 Fix rubocop offenses 2020-10-25 16:10:51 +01:00
Sebastian Serth
0988e41f6d Use Conccurrent::Future properly 2020-10-25 16:09:51 +01:00
Sebastian Serth
fda120559c Prepare Python20 Course Experiments 2020-10-25 13:29:26 +01:00
Sebastian Serth
dbd76e9316 Adjust default message for linter / unit test 2020-10-15 18:11:28 +02:00
Sebastian Serth
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
Sebastian Serth
4ee1f3aada Remove teacher access for informatiktag2020 2020-09-09 10:17:46 +02:00
Sebastian Serth
6cae31ae8d Allow teacher access for informatiktag2020 2020-09-09 10:17:17 +02:00