Commit Graph

274 Commits

Author SHA1 Message Date
Sebastian Serth
30603cb7ab Generalize method and constant names for runner management 2021-11-01 17:12:53 +01:00
Konrad Hanff
598de3bcff Add button to synchronize all execution environments
This adds a button to the execution environment index page that, when
clicked, causes all execution environments to be synchronized to the
runner management (Poseidon) by creating or replacing them.

CodeOcean does not synchronize it's execution environments on startup or
when a new runner management configuration is used for the first time.
The administrator has to manually start this process by pressing this
button.

The equivalent for syncing just one execution environment is updating
it.
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
Konrad Hanff
347e4728a0 Rework protocol inside websocket
Co-authored-by Felix Auringer <felix.auringer@student.hpi.uni-potsdam.de>
2021-11-01 17:12:44 +01:00
Sebastian Serth
f9a7e73719 Remove usage of safe_html in renderings 2021-10-12 11:23:22 +02:00
Sebastian Serth
671c2bd28b Allow changes to internal user when password is void 2021-07-12 13:27:41 +02:00
Sebastian Serth
da0a682ffb Apply manual rubocop fixes 2021-05-14 22:03:06 +02:00
Sebastian Serth
78230f0d97 Add message for expired session 2021-04-22 11:32:12 +02:00
Sebastian Serth
6e3127dad8 Add missing translation for activating internal users 2021-04-07 14:06:32 +02:00
Tobias Kantusch
40d83dbb1d Fix access to exercise-specific RfC listing 2021-04-07 14:06:32 +02:00
Sebastian Serth
293bcccc80 Introduce new enabled option for CodeHarbor
* Fix tests to ensure they work independent of config option
2021-02-16 14:29:54 +01:00
Sebastian Serth
41ae6c2880 Update deadline string shown to users 2021-02-09 00:20:05 +01:00
Sebastian Serth
3acc9f769f Capitalize RfC button on implement 2021-01-12 16:55:16 +01:00
Sebastian Serth
9fba70cde2 Always show file upload box when editing exercises 2020-12-16 18:00:47 +01:00
Maximilian Pass
028fc2989a #18 Add sql index for unpublished exercises
And remove spec for remove feature
2020-12-15 12:17:11 +01:00
Karol
3d763a540a rails_admin Translation fixes 2020-11-27 14:59:52 +01:00
Karol
f98de3b66b Add Rails admin 2020-11-26 17:11:18 +01:00
Sebastian Serth
2f15a322ae Update confirm question for exercise and file reset 2020-11-16 01:50:43 +01:00
Sebastian Serth
20bddf6f00 Update locales for start_over to reduce misconception
Some learners thought that "reset all files" will delete everything they ever did in a course.
2020-11-16 01:48:17 +01:00
Sebastian Serth
c9e5d60dfb Add missing translation if sign in failed 2020-11-13 13:01:11 +01:00
Sebastian Serth
84c291626f Make note "not graded" optional for linters 2020-11-09 21:19:24 +01:00
Sebastian Serth
da064efef7 Merge pull request #771 from openHPI/add_handling_missing_file_type_on_import
Add handling for missing file type on import
2020-11-02 19:44:51 +01:00
Karol
f872cf73ee Review points, specs 2020-11-02 17:09:31 +01:00
Karol
4e61d53cb3 typos and cleanup 2020-11-01 11:18:06 +01:00
Sebastian Serth
65a4274c7e Update translations for LTI score reduction 2020-10-29 09:45:59 +01:00
Sebastian Serth
1b5d1d3dca Reduce score sent via LTI if too late 2020-10-28 11:58:40 +01:00
Sebastian Serth
ca9467bf3c Merge branch 'linter_toggle'
# Conflicts:
#	config/locales/de.yml
2020-10-15 18:33:19 +02:00
Sebastian Serth
dbd76e9316 Adjust default message for linter / unit test 2020-10-15 18:11:28 +02:00
Sebastian Serth
799e37f9ae Add new style for linter and allow 0 points 2020-10-15 16:22:37 +02:00
Sebastian Serth
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
Sebastian Serth
2678d9ecdf Add admin UI to assign tips to exercises 2020-10-14 14:34:27 +02:00
Sebastian Serth
8f8a4f3cca Show tips when implementing an exercise 2020-10-14 14:34:26 +02:00
Sebastian Serth
2e1c97d87d Add database support and model for tips 2020-10-14 14:34:25 +02:00
Sebastian Serth
afafe0c218 Adjust teacher permissions:
* Hide non-public exercises and proxy exercises
* Hide average working time value on statistic page
* Add hint about filter to submission page for teachers
* Hide display name from feedback page
2020-09-07 19:04:34 +02:00
Sebastian Serth
b6db9e186c Add information if execution timed out during scoring 2020-05-12 17:51:07 +02:00
Sebastian Serth
26b9edabb4 Add deadline information to submission page and some minor bugfixes 2020-05-08 15:07:02 +02:00
Sebastian Serth
413ec9f956 Show up to three submissions for teachers and add overview to table 2020-05-08 11:36:27 +02:00
Sebastian Serth
914eeb6035 Add submission deadline to exercises and allow teachers to view their submissions 2020-05-07 21:23:27 +02:00
Sebastian Serth
4c571c4fb2 Add missing locales and fix access to public pages 2020-05-06 11:27:09 +02:00
Sebastian Serth
8e8404dffa Add search for external users 2020-05-05 16:52:28 +02:00
Sebastian Serth
1069e623be Add more statistics 2020-03-25 14:40:26 +01:00
Sebastian Serth
25b14a9fca Fix duplicate intervention text 2020-03-18 22:56:55 +01:00
Sebastian Serth
82e560cace Add link to WebSocket test if WebSocket connection failed 2020-03-07 11:53:44 +01:00
Sebastian Serth
659b5646c1 Update translations of RfC interventions 2020-02-14 16:59:16 +01:00
Sebastian Serth
75fe6e5b68 Add file name to reset this file action 2020-01-30 19:27:16 +01:00
Sebastian Serth
1096c1a2f5 Add translation for unpublished exercises and adopt UI for reset all files 2020-01-30 18:31:14 +01:00
Sebastian Serth
d0eceac440 Upgrade font-awesome and add option reset only active file 2020-01-29 10:55:15 +01:00
Sebastian Serth
b51be3edb3 Add option to add multiple entry points which could be executed similar to the Main File 2020-01-16 11:14:59 +01:00
Ralf Teusner
19e137c174 some locales (question text) and two more statistic metrics for exercise collections 2020-01-13 18:22:00 +01:00
Karol
f680916385 remove create_new functionality, when exercise exists on CH but is not editable 2019-12-13 16:43:19 +01:00