Commit Graph

57 Commits

Author SHA1 Message Date
2679f5fa56 Allow random selection for ProxyExercise 2023-01-20 21:02:20 +01:00
5d02251cbb Replace BooleanPresenceValidator with InclusionValidator
The `BooleanPresenceValidator` is causing issues with Ruby 3.2+ YJIT irregularly.

Fixes CODEOCEAN-GQ, fixes CODEOCEAN-GR
2023-01-08 14:10:14 +01:00
922ba5df4e Fix rubocop offenses 2023-01-02 10:06:00 +01:00
574e99eddd Fix rubocop offenses - Requires Ruby 3.1+ 2022-11-25 11:10:06 +01:00
166aa3cc6f Remove Ransack from Exercise edit for tags
* Also improve Ransack usage of attributes and associations
2022-08-20 01:33:00 +02:00
ea85519163 Update bundle (with newest rubocop version) and fix offenses 2022-01-04 09:42:37 +01:00
74e285e9fd Fix rubocop offenses 2021-10-05 12:09:56 +02:00
e7cf4ef5db Apply automatic rubocop fixes 2021-06-25 14:41:49 +02:00
5243808d54 Apply automatic rubocop fixes 2021-05-17 19:40:38 +02:00
da0a682ffb Apply manual rubocop fixes 2021-05-14 22:03:06 +02:00
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
4cc9bc49fe Cap points_ratio for tags statistics at 1.0 2020-10-28 16:26:40 +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
d7dcbdc799 Merge pull request #200 from openHPI/remove-ab-tests
Remove ab tests
2018-11-15 18:02:34 +01:00
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
400eef3118 move logging statement up to be sure that its result is not assigned to matching_exercise if an error might be thrown. 2018-08-15 15:43:37 +02:00
d9d3dc42d4 remove all A/B testing code no longer in use. 2018-08-09 15:14:52 +02:00
d971382b5b re-introduce exercise description exercise split 2018-07-18 09:34:25 +02:00
17789fdc3f Clean up 2018-07-03 12:42:10 +02:00
08c7154708 removed duplicate logging statement 2017-11-01 10:14:03 +01:00
dbd6db69b7 Merge pull request #136 from openHPI/fix-tests
Fix Tests
2017-11-01 10:10:04 +01:00
0bade2c2e7 Fix recommending too difficult questions if user has too low level 2017-10-25 14:05:10 +02:00
87f280089d Fix return value of logger being assigned to exercise 2017-10-25 12:07:16 +02:00
01aad0a4a6 fixed problem in ProxyExercise that caused: ActiveRecord::AssociationTypeMismatch (Exercise(#51937940) expected, got TrueClass(#7943420)): 2017-10-25 11:28:27 +02:00
9ce29d211b Cleanup of Intervention and Bonus Exercise Experiments 2017-09-14 16:53:59 +02:00
b9fb743cf8 fix NaN exception if user attend spielweise 2017-04-12 13:24:56 +02:00
20c8a95a87 quickfix 2017-03-30 16:56:55 +02:00
ad29551bb4 added code to test bonus exercise with different descriptions. 2017-03-30 16:54:22 +02:00
e1f1134992 ignore dummy exercise in recommendation 2017-03-28 11:51:51 +02:00
d6a25b8496 do now assign dummy exercise to random group 2017-03-27 18:52:44 +02:00
ef5ebc3b69 splitted user in groups for assigning bonus exercises 2017-03-24 12:14:53 +01:00
26e93c4b23 changed puts methods in proxy_exercise.rb to Rails.logger.debug. also changed Rails.logger.info to Rails.logger.debug 2017-03-21 11:25:11 +01:00
4f5c936dd6 changed formulas for demising return 2017-03-21 10:31:45 +01:00
325c44c1fb added finishing return value in proxy exercise 2017-03-21 10:31:33 +01:00
7ef318713b added reason vor proxy exercise 2017-03-21 10:31:33 +01:00
bfc96328c4 added interventions back to code. added post method to be able to save interventions 2017-03-21 10:31:33 +01:00
b41a858762 changed way working times are returned. builtin protection if exercise is new 2017-03-21 10:31:32 +01:00
1f141f440a added fallback to recommendation if something went completely wrong 2017-03-21 10:31:32 +01:00
355e8af14b privatized methods in proxy_exercise 2017-03-21 10:31:32 +01:00
66a2d8c992 minor change 2017-03-21 10:31:32 +01:00
1eea3fab4c lots of renaming to _ names instead of camelCase 2017-03-21 10:31:32 +01:00
f63b9eeb3c added that users would only get exercises recommended which are max 1 level more difficult 2017-03-21 10:31:32 +01:00
1d75af51d2 quick fix 2017-03-21 10:31:32 +01:00
5bbc124097 improvement debug output 2017-03-21 10:31:32 +01:00
fe8b04fcfc more debugging infos 2017-03-21 10:31:32 +01:00
4796dd5c9d find solved exercises of users now by fetching submissions with cause assess or submit 2017-03-21 10:31:32 +01:00
0f67297e2c recommendation also now returns easiest exercise as recommendation if no tag matched could be found
findMatchingExercises only searched for assessed submissions to get processed exercises, fixed this to look at all submissions
2017-03-21 10:31:32 +01:00
9bef1d8bb2 recommendation also with lots of debugging messages looks promising 2017-03-21 10:31:32 +01:00
04c54549c5 zwischenstand 2017-03-21 10:31:32 +01:00
16a3bad453 renaming method 2017-03-21 10:31:32 +01:00