Commit Graph

752 Commits

Author SHA1 Message Date
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
Sebastian Serth
f9a7e73719 Remove usage of safe_html in renderings 2021-10-12 11:23:22 +02:00
Sebastian Serth
4926b33a5f Introduce new config option for JS-based Sentry
* Also update environment_variables.md
2021-07-08 20:15:29 +02:00
Sebastian Serth
237c225732 Add support for running CodeOcean under a subpath
* Also refactor (JavaScript) routes
2021-07-06 19:33:55 +02:00
Sebastian Serth
4e8033f5d4 Show CO and DCP versions on admin dashboard 2021-06-25 21:57:17 +02:00
Sebastian Serth
4b8e12e49a Disable turbolinks when switching the language.
This is required as code within the ACE editor would get duplicated if the switch forces a full pageload otherwise.
2021-06-16 14:25:33 +02:00
Sebastian Serth
649bb01249 Refactor h1 and inline button for exercise show 2021-06-08 09:00:25 +02:00
Sebastian Serth
f32661ad78 Rework left sidebar
* Move Buttons from left sidebar to JSTree
* Use light style for collapse sidebar buttons
2021-05-28 17:49:59 +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
78230f0d97 Add message for expired session 2021-04-22 11:32:12 +02:00
Sebastian Serth
9a5514942e Remove CSRF debug features 2021-04-22 11:31:30 +02:00
Sebastian Serth
1d5ceebd7b Fix RfC filter for unnamed study groups 2021-04-09 10:25:41 +02:00
Sebastian Serth
1e5a9b0825 Remove unused SubmissionsController#stop action 2021-04-07 17:45:38 +02:00
Sebastian Serth
9485c15c57 Fix exercise anomaly detection
* The SQL query and mail template was erroneous
* Including the `url_helpers` influenced the specs due different url helpers within the specs. Test by executing `rspec './spec/db/seeds_spec.rb[1:1:1]' './spec/features/request_for_comments_filter_spec.rb[1:1]' -f progress --fail-fast --seed 55564`
2021-04-07 14:06:33 +02:00
Tobias Kantusch
40d83dbb1d Fix access to exercise-specific RfC listing 2021-04-07 14:06:32 +02:00
Sebastian Serth
36ac8b63cb Use regular file as default for new exercise file roles 2021-03-17 14:33:40 +01:00
Sebastian Serth
a174d75a47 Debug CSRF issues temporarily 2021-03-10 13:51:29 +01:00
Sebastian Serth
c9e9731453 Use new Sentry endpoint 2021-03-08 22:01:55 +01:00
Sebastian Serth
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
Sebastian Serth
9582ab99a6 Fix model name for cover page 2021-03-03 12:22:23 +01:00
Sebastian Serth
17ac4bd60f Add model name to breadcrumbs in case of validation errors 2021-03-03 11:59:54 +01:00
Sebastian Serth
67dd435415 Fix link to Consumer if not enough permissions 2021-02-18 12:29:07 +01:00
Sebastian Serth
4022c5268f Enable static favicon URL for use in external systems 2021-02-17 10:51:06 +01:00
Sebastian Serth
b0c918d2c0 Make document language dynamic 2021-02-09 00:20:16 +01:00
Sebastian Serth
a72c022e4a Fix numbering shown for nested tips 2021-02-01 15:55:56 +01:00
Sebastian Serth
6900d4ef2c Add collapse_exercise_description LTI parameter 2021-01-29 13:54:47 +01:00
Sebastian Serth
72b3524b18 Leverage PostgreSQL count for study group size 2021-01-23 00:28:11 +01:00
Sebastian Serth
aed9a3121f Hide filename if not available 2021-01-20 23:12:04 +01:00
Sebastian Serth
2c99c2db62 Show filename and sort by it for statistic page 2021-01-19 12:37:05 +01:00
Sebastian Serth
4ea3cb29d3 Fix download for binary files 2021-01-11 15:10:41 +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
f98de3b66b Add Rails admin 2020-11-26 17:11:18 +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
ff6b04c051 Check for existence of submissions before accessing them 2020-11-24 01:37:12 +01:00
Sebastian Serth
319dc9d4db Check for first non-null exercise for permission 2020-11-23 23:36:34 +01:00
Sebastian Serth
3d7bddcad1 Adjust RegEx for RfC show 2020-11-21 00:50:59 +01:00
Sebastian Serth
6795a05944 Fix search for users with deleted consumer 2020-11-18 23:17:55 +01:00
Sebastian Serth
9fcb178839 Check for null in RfC RegEx 2020-11-17 21:46:42 +01:00
Sebastian Serth
4999918e51 Check for study group before checking permission 2020-11-12 16:00:24 +01:00
Sebastian Serth
ce3d9b488d Hotfix: Hide linter run for RfCs 2020-11-01 22:39:29 +01:00
Sebastian Serth
75a2929b39 Hotfix: Hide linter run for RfCs 2020-11-01 22:35:10 +01:00
Sebastian Serth
78f42628be Fix submission view if exercise is deleted 2020-10-28 16:31:33 +01:00
Sebastian Serth
87308f72a4 Allow access to RfCs based on migrated exercises 2020-10-28 13:57:47 +01:00
Sebastian Serth
5d7d8a7f68 Replace window.location with the full URL to prevent passing query parameters
* Example before:
location + '/mark_as_solved'
/request_for_comments/30885?locale=de/mark_as_solved

Now: //localhost:3333/request_for_comments/30885/mark_as_solved

Note: https or http will be added automatically by browsers
2020-10-28 13:41:41 +01:00
Sebastian Serth
4cb34a611d Allow empty string values to be matched 2020-10-28 01:15:33 +01:00
Sebastian Serth
a47ce7d069 Add Raven context to RfC show 2020-10-27 23:47:13 +01:00
Sebastian Serth
a9008d2a26 Improve numbering format for tips 2020-10-25 17:24:25 +01:00
Sebastian Serth
c2feaca046 Update styling for Tips to make them less annoying 2020-10-20 13:50:29 +02:00