Commit Graph

29 Commits

Author SHA1 Message Date
f36f3cdc64 Rename user to contributor in exercise statistics
Fixes CODEOCEAN-TN
2023-09-05 18:44:20 +02:00
bc5baed05e Use exec_query for custom SQL execution
Also align how we use query Postgres from controllers.

The change is mainly due to regular (but not reproducible) issues with the `intervalstyle` defaulting to `postgres` (instead of `iso8601`) and thereby causing issues. We're just experimenting to see whether this change resolves the issue.
2022-12-06 22:41:00 +01:00
b7a3fd4586 Refactor exercise statistics to use convert times in Ruby 2022-12-05 21:59:34 +01:00
574e99eddd Fix rubocop offenses - Requires Ruby 3.1+ 2022-11-25 11:10:06 +01:00
1581d658ea Simplify user search for external teachers 2022-09-04 19:03:15 +02:00
bdebcf319e Allow access to user statistics for teachers
Fixes CODEOCEAN-BV
2022-08-25 18:14:10 +02:00
7da08d2990 Fix typo for working_time_query 2022-08-24 23:29:49 +02:00
c8c3a5bf95 Fix external user statistics for tags 2022-08-24 12:16:38 +02:00
c228850ae8 Update find method 2022-08-20 00:37:48 +02:00
6927b57170 Update Study Group Dashboard and Statistics 2022-08-20 00:05:02 +02:00
145c4aa8d5 Refactor various ruby files
* Insights based on brakeman report
2022-08-18 15:25:04 +02:00
0a6ae91db8 Introduce per_page parameter for custom page size 2022-01-12 20:46:54 +01:00
5243808d54 Apply automatic rubocop fixes 2021-05-17 19:40:38 +02:00
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
7da69f05b8 Require user for all actions in /external_users 2020-12-14 13:17:11 +01:00
914eeb6035 Add submission deadline to exercises and allow teachers to view their submissions 2020-05-07 21:23:27 +02:00
8e8404dffa Add search for external users 2020-05-05 16:52:28 +02:00
114f77e799 Extract WORKING_TIME_DELTA to be used globally and set it to 5 min. 2019-03-09 00:32:36 +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
9037c84639 Link to filtered exercise list 2018-08-02 10:40:18 +02:00
bc33d9211f Allow filtering external user statistics by tag 2018-07-20 12:57:57 +02:00
ab2d936165 Reduce precision and sort in descending order 2018-07-03 14:10:23 +02:00
804e70ea3b Move tag statistics to its own route for asynchronous loading 2018-07-03 13:09:35 +02:00
5a099a42b8 changed working time calculation to only consider submissions within 5 minutes instead of 30 2017-04-03 18:09:30 +02:00
4ee474a7d2 Speed up external user statistics 2016-01-28 14:46:25 +01:00
95ec5b0231 Routes, empty views and controller changes for statistics concerning external_users, exercises and external_users having exercises 2015-11-25 18:47:49 +01:00
acf03b1f51 added pagination for all resources 2015-03-11 16:13:45 +01:00
a06e20b6c5 use eager loading to reduce the number of database queries 2015-03-11 14:24:24 +01:00
4cbf9970b1 transferred Code Ocean from original repository to GitHub 2015-01-22 10:01:32 +01:00