Commit Graph

120 Commits

Author SHA1 Message Date
Felix Auringer
b847daf823 Remove waiting_time from runner model
After removing the logic that stores the duration that has been
waited for a runner in the runner, this now also removes the column
from the database as it is not used anymore.
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
Felix Auringer
fc6aa12b0a Remove handling of runner timeouts 2021-11-01 17:12:47 +01:00
Konrad Hanff
17bd2d8726 Reuse runners per user and execution environment
Co-authored-by: Jan-Eric Hellenberg <jan-eric.hellenberg@student.hpi.uni-potsdam.de>
Co-authored-by: Maximilian Pass <maximilian.pass@student.hpi.uni-potsdam.de>
2021-11-01 17:12:46 +01: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
11962a1d65 Upgrade to Rails 6.1 and apply new framework defaults 2021-05-12 16:49:14 +02:00
Sebastian Serth
8378070bc2 Upgrade to Rails 6.0 and apply new framework defaults 2021-05-12 16:47:05 +02:00
Sebastian Serth
4958f5b9a9 Add StudyGroup to RemoteEvaluationMapping 2021-04-30 12:06:12 +02: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
Sebastian Serth
ee7729110b Add LinterCheck and LinterCheckRun 2020-10-26 21:08:43 +01:00
Sebastian Serth
ad467fa58f Distinguish between intermediate and final feedback
* Also add more information to user_exercise_feedback
* Migrate existing feedback to enrich with submissions
2020-10-20 13:50:04 +02:00
Sebastian Serth
bfcb536cc9 Tips: Recheck database constraints 2020-10-14 14:34:27 +02:00
Sebastian Serth
2e1c97d87d Add database support and model for tips 2020-10-14 14:34:25 +02:00
Sebastian Serth
f44e1c6fc9 Fix migration for empty database 2020-10-05 22:17:55 +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
48d06b6dbe Persist metrics for container usage (execution time and waiting time) to Testrun table 2020-03-26 16:28:56 +01:00
Karol
7d4c4a4494 remove checksum 2019-12-16 17:43:47 +01:00
Karol
9512fe4a79 add check_uuid_url to codeharbor_link 2019-10-20 16:20:04 +02:00
Karol
4ab78c170e add uuid check 2019-10-16 19:19:28 +02:00
Karol
45ceacd34b update migration 2019-10-08 18:44:30 +02:00
Karol
7b2f61e602 add unpublished field to exercise 2019-10-08 18:32:02 +02:00
Karol
55e49f01f2 add import checksum 2019-09-05 17:41:12 +02:00
Karol
3c65565b8c enable export to codeharbor 2019-09-02 19:03:50 +02:00
Karol
818064267c rename table, add fields to link table 2019-08-18 12:53:13 +02:00
Sebastian Serth
d63700c7db Add live dashboard for teachers in the context of an exercise
This commit also adds the fundamentals for ActionCable
2019-03-06 14:00:59 +01:00
Sebastian Serth
27aa822e27 Migration: Skip if submission is blank 2018-12-20 15:17:29 +01:00
Sebastian Serth
d95cf1cffb Merge branch 'master' into add_roles_via_LTI
# Conflicts:
#	app/controllers/concerns/lti.rb
2018-12-19 01:44:34 +01:00
rteusner
2c29bf4e2b Merge branch 'master' into add_groups 2018-12-14 00:57:26 +01:00
Sebastian Serth
1a26d67c82 Merge branch 'master' into add_roles_via_LTI
# Conflicts:
#	app/views/application/_breadcrumbs.html.slim
#	app/views/application/welcome.html.slim
#	app/views/exercise_collections/show.html.slim
#	app/views/external_users/index.html.slim
#	app/views/layouts/application.html.slim
#	app/views/proxy_exercises/index.html.slim
#	app/views/user_exercise_feedbacks/index.html.slim
#	app/views/user_mailer/send_thank_you_note.slim
2018-12-14 00:53:06 +01:00
Sebastian Serth
f0a462e3b8 Ensure that migration will always succeed 2018-12-13 14:30:21 +01:00
Sebastian Serth
71fd3b9b07 Add role to ExternalUser and update it via LTI 2018-12-12 14:09:19 +01:00
Sebastian Serth
b137e64020 Add StudyGroups with ExternalUsers only 2018-12-12 12:09:52 +01:00
Sebastian Serth
59257d17f2 Add user (ID and type) to proxy exercise
This is required for the existing policies to work
2018-12-06 00:31:45 +01:00
Sebastian Serth
56c59a616e Completely remove old non-structured errors and migrate existing ones. 2018-11-30 11:27:25 +01:00
Sebastian Serth
efacb5a6a9 Completely remove old hints connected to the execution environment 2018-11-28 01:21:13 +01:00
rteusner
5d13ee0e56 Merge pull request #230 from openHPI/fix_download
Specify `ExternalUser` as class for `user` in `RemoteEvaluationMapping`
2018-11-27 15:49:18 +01:00
Sebastian Serth
1131d08e2b Add user_type to RemoteEvaluationMappings 2018-11-26 17:56:07 +01:00
Sebastian Serth
44dc18feb0 Add version identifier to old migrations (required for Rails 5) 2018-11-22 19:05:19 +01:00
Sebastian Serth
de52db89f0 Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:00 +01:00
Ralf Teusner
1677561698 add index on lti_parameters to speed up several routes 2018-09-04 14:54:46 +02:00
Sebastian Serth
6bd1dac756 Performance Optimizations:
1. Add index on testrun.submissionId
2. replace lti_parameters.size with lti_parameters.present? to prevent COUNT query

Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-08-23 17:29:14 +02:00
Maximilian Grundke
6bf14a0e50 Remove indices 2018-08-15 14:17:26 +02:00
Maximilian Grundke
f1278a7f48 Rename type column to category to avoid conflict with rails 2018-08-14 18:07:41 +02:00
Maximilian Grundke
d6c64f5b91 Add event model 2018-08-14 16:59:58 +02:00
Maximilian Grundke
b68b3bc2b0 Add position attribute to relation between exercise collection and exercises 2018-07-03 15:23:00 +02:00
Maximilian Grundke
7a6e73db20 Remove file_id from structured_errors 2018-05-15 13:03:36 +02:00
Maximilian Grundke
77a40c9fc5 Merge remote-tracking branch 'origin/master' into exercise-anomaly-detection
# Conflicts:
#	Gemfile.lock
2018-03-08 12:12:06 +01:00
Ralf Teusner
84bd85703d add submission_ids to existing RFCs via SQL query (query included as a comment) 2018-03-07 17:01:57 +01:00