Commit Graph

2035 Commits

Author SHA1 Message Date
7dc83065eb Create study groups for every LTI launch 2018-12-14 15:11:50 +01:00
7983c0797a Add view for StudyGroups 2018-12-14 14:52:04 +01:00
9061a07763 Merge pull request #245 from openHPI/add_groups
Add groups via LTI
2018-12-14 13:41:28 +01:00
2c29bf4e2b Merge branch 'master' into add_groups 2018-12-14 00:57:26 +01:00
6c46566174 Merge pull request #242 from openHPI/fix_proxy_exercise
Add user (ID and type) to proxy exercise
2018-12-13 16:23:51 +01:00
ff701e52bb Merge pull request #244 from openHPI/specify_embed_options
Implement support for some basic embed options for work sheets via LTI
2018-12-13 16:21:55 +01:00
2bdb51ba14 Merge pull request #246 from openHPI/consider_empty_name_and_mail_for_external_users
Consider empty name and mail for external users
2018-12-13 16:19:48 +01:00
f0a462e3b8 Ensure that migration will always succeed 2018-12-13 14:30:21 +01:00
88081bb541 Replace usage of name in favor of displayname 2018-12-13 14:27:55 +01:00
4a1cd3037c Fix execution of code via Ajax.
Add output message for program runs without any output
2018-12-13 13:55:45 +01:00
d45a68a123 Minor: Fix spelling in comment 2018-12-13 12:57:49 +01:00
b4b9ab48d0 External User: Set name to displayname and introduce real_name 2018-12-12 16:47:49 +01:00
25602972ab Prevent delivery of mails to non-existent empty mail addresses 2018-12-12 14:11:57 +01:00
b137e64020 Add StudyGroups with ExternalUsers only 2018-12-12 12:09:52 +01:00
141450a840 Migrate User to abstract class 2018-12-12 11:45:11 +01:00
6bf1bde2ea Allow sign out request via GET 2018-12-11 14:30:00 +01:00
a0d8b30ef2 Implement support for some basic embed options for work sheets via LTI
This commit also fixes an issue with the flash messages being positioned too high and displayed for too long
2018-12-11 14:29:36 +01:00
4fd128b31b Merge pull request #241 from openHPI/fix_access_on_active_file
Use CodeOceanEditor.active_file to access file selected in JSFileTree
2018-12-07 20:17:08 +01:00
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
1833435268 Use CodeOceanEditor.active_file to access file selected in JSFileTree 2018-12-05 13:46:44 +01:00
e08e02f1c8 Merge pull request #240 from openHPI/snyk-fix-nw3acm
[Snyk] Fix for 2 vulnerable dependencies
2018-11-30 15:42:47 +01:00
8dfcef3e45 Merge pull request #235 from openHPI/remove_old_hints
Completely remove old hints connected to the execution environment
2018-11-30 15:41:01 +01:00
77c5367650 Merge pull request #239 from openHPI/remove_old_errors
Completely remove old non-structured errors and migrate existing ones.
2018-11-30 15:40:33 +01:00
c452fa16bd Merge pull request #238 from openHPI/fix_editing_exercises
Fix adding files to exercises (as admin)
2018-11-30 15:39:58 +01:00
b9bf869b55 fix: Gemfile & Gemfile.lock to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-RUBY-ACTIVEJOB-72640
- https://snyk.io/vuln/SNYK-RUBY-ACTIVESTORAGE-72641
2018-11-30 14:26:39 +00:00
58e01880df Merge pull request #208 from openHPI/flowr
Flowr Revival
2018-11-30 15:26:23 +01:00
56c59a616e Completely remove old non-structured errors and migrate existing ones. 2018-11-30 11:27:25 +01:00
b94289f36f Fix adding files to exercises (as admin)
Prevent hidden selection field from being removed after cloning the dummy. Also ensure the caret looks nice and add the file extension if possible
2018-11-29 22:32:12 +01:00
8ccdb79fef Flowr: Return empty array if no submission was found 2018-11-28 23:42:37 +01:00
64d5a0f9b2 Fix caret to show down (collapsed state) after initial load 2018-11-28 22:54:40 +01:00
63d36726aa Merge pull request #236 from openHPI/fix_testruns
Specify file as optional for testruns
2018-11-28 16:10:28 +01:00
08ce579e8d Add comment about #insights? in SubmissionPolicy 2018-11-28 15:55:44 +01:00
832b48ba62 Refactor /insights to throw a Pundit exception if no current_user is set 2018-11-28 15:44:45 +01:00
8381b4f1ba Specify file as optional for testruns
(no file is present for `run` but e.g. for `assess`)
2018-11-28 15:23:32 +01:00
212867f300 Fix flowr output to work with Bootstrap 4 2018-11-28 15:22:21 +01:00
b9dce854c4 Merge remote-tracking branch 'origin/master' into flowr
# Conflicts:
#	app/assets/javascripts/editor/evaluation.js
#	app/assets/javascripts/editor/participantsupport.js
#	app/views/exercises/_editor_output.html.slim
#	config/code_ocean.yml.example
#	config/routes.rb
2018-11-28 13:14:21 +01:00
efacb5a6a9 Completely remove old hints connected to the execution environment 2018-11-28 01:21:13 +01:00
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
3980b78d92 Merge pull request #232 from openHPI/fix_empty_docker_image_tag
Skip all docker images not tagged (otherwise, the method crashes)
2018-11-27 15:46:11 +01:00
c65488880e Merge pull request #231 from openHPI/fix_db_rake_tasks
Prevent creation of the Docker containers if just running a db rake task
2018-11-27 15:44:12 +01:00
0a624c3d5b Merge pull request #229 from openHPI/fix_db_migrations
Add version identifier to old migrations (required for Rails 5)
2018-11-27 15:42:55 +01:00
85088a60d0 Merge pull request #228 from openHPI/fix_flash_messages
Fix flash messages
2018-11-27 15:42:14 +01:00
1131d08e2b Add user_type to RemoteEvaluationMappings 2018-11-26 17:56:07 +01:00
94808cc9ef Merge pull request #234 from openHPI/fix_jquery
Migrate jQuery function use for ajax in case of success or failure
2018-11-26 12:35:19 +01:00
16a5345a71 Migrate jQuery function use for ajax in case of success or failure
Deprecation Notice:

The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
2018-11-26 12:23:30 +01:00
44dc18feb0 Add version identifier to old migrations (required for Rails 5) 2018-11-22 19:05:19 +01:00
39a822f8bf Skip all docker images not tagged (otherwise, the method crashes) 2018-11-22 19:03:35 +01:00
942d87f9ba Prevent creation of the Docker containers if just running a db rake task
Otherwise, the rake task might fail if the database connection could not be established (e.g. when creating a new database).
2018-11-22 19:02:33 +01:00
c4f9c2fc85 Prevent redirection if possible
This will just show the flash message on prevent the browser from changing the location. Works great with Turbolinks!
2018-11-22 19:00:01 +01:00
68c07f49cf Show flash messages based on turbolinks:load instead of real page load 2018-11-22 18:59:07 +01:00