4e1e8c0f4d
Fix Rubocop offenses
2024-06-17 15:07:04 +02:00
7cc4fb00c6
RfCs: Allow filtering for any states
...
We want to differentiate between those RfCs explicitly marked as solved, those potentially solved since the author reached the maximum score, and those being unsolved where the author has not yet reached the full score yet.
2024-04-24 12:18:47 +02:00
bbee854002
Allow RfC index action for exercises to be nested
2023-10-23 18:17:42 +02:00
0e387ffda2
Add association for Comments and RequestForComments
...
For the submission and comments, I mainly decided to use a `has_one` association. Based on the database schema, multiple request for comments could be allowed (i.e., for each file or submission), but this won't happen practically (since we always create new submissions and files). Hence, the `has_one` association is representing our relationship better.
2023-09-25 18:17:52 +02:00
d03f2c7bf4
Slightly improve Statistics Controller performance
2023-02-21 01:27:32 +01:00
9c3392b324
Add consumer-based RfC Visibility settings
...
This setting will be useful to increase data protection, where users might not be allowed to see RfCs from other contexts.
2023-02-20 23:47: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
145c4aa8d5
Refactor various ruby files
...
* Insights based on brakeman report
2022-08-18 15:25:04 +02:00
110f1a5750
Fix rubocop offenses after bundle update
2021-06-30 09:13:25 +02:00
6cbecb5b39
Apply automatic rubocop fixes
2021-05-14 22:03:06 +02:00
44b32b6f6a
#46 Add Prometheus exporter
2021-04-07 14:06:32 +02:00
fac29f73d4
Respect user_type for RfC index routes
2020-12-04 16:58:11 +01:00
b2fc57430c
Disable live updates
2020-03-04 11:38:40 +01:00
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
76079bb47d
one line the loop, thanks for the hint @MrSerth
2018-12-14 13:36:24 +01:00
8558c5041f
fix active record induced error on postgres by removing distinct.
...
Inlining the code did not turn out well, as we have to cope with the polymorphic association of user here..
2018-12-13 16:16:12 +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
5d49431a79
Add scope to query historical data
2018-04-24 10:58:26 +02:00
6e022528a0
Move methods to model
2018-02-28 13:41:47 +01:00
efc271c4ed
add column full_score_reached, fill it accordingly and show information in the rfc index
2018-01-31 11:23:30 +01:00
4baab7430c
push commenters to RFC model
2017-09-13 07:06:55 +02:00
453d8fcb85
Remove subscribers attribute
2017-09-06 16:19:03 +02:00
5aa9edb209
Add subscription model and link it to RFC
2017-09-06 15:16:47 +02:00
30375a4909
Make comments available to RFC
2017-06-09 14:39:33 +02:00
6e6c9143cd
Some tidy up in request for comments (bugfix: removed leftover parts of requested_at attribute, some UI changes in comment dialog)
...
Redirect to open rfc if an exercise has been solved
2016-08-11 18:13:33 +02:00
39a253997d
use submission from model
2016-07-14 16:59:42 +02:00
8282820974
removed requested_at
...
partly using submission_id
some cleanup
2016-07-14 16:22:22 +02:00
223df2ffa8
some cleanup of request for comments. Work in progress.
...
Noticed a flaw when fetching the last submission, which is caused by timezone differences. First step to solve this.
Existing Request for Comments still need to be updated with their current submissionId, the SQL to do that is not yet finished.
2016-07-04 17:44:22 +02:00
2ff12dbeb6
Cached displaynames of users
...
Added solved state and #comments to index of request_for_comments
Added translations
2016-06-27 16:46:26 +02:00
2a52b66daa
rfc can now be solved.
...
show.html still needs to be finished
2016-06-24 16:44:34 +02:00
c9b2af0fdb
show question instead of execution environement
2016-05-06 17:24:38 +02:00
2998d63d13
Add human readable label
2016-04-27 18:02:37 +02:00
2777b64b0f
cleanup of request for comment view, shifted logic to controller.
2016-01-13 15:26:34 +01:00
57d1c9b129
altered class: to class_name: (class seems to be deprecated?)
2015-10-21 16:44:13 +02:00
d292fec47c
Code Cleanup: Usage of Polymorphic User instead of ExternalUser and InternalUser
...
Renamed requestor_user_id -> user_id
Index of request_for_comments now returns the n (5?) newest requests per user. Solved via sliding windows in postgres, code added to model.
Added route to /my_request_for_comments/ that shows all requests for the current user.
Changed view from ERB to slim
2015-09-04 14:05:30 +02:00
b8ec3edef2
Show requests for comments and begin work on a view for executing them
2015-03-27 18:10:47 +01:00