Commit Graph

58 Commits

Author SHA1 Message Date
be4f2b790d Add user to testrun
* We want to identify a user that has triggered a testrun. Previously (in regular operation), only submission author who were regular users were able to start a testrun. Now, we want to prepare a future where submission authors are programming groups. Still, a testrun is triggered by an individual user and not a group.
* Further, this commit fixes some missing foreign key constrains.
2023-08-24 19:32:06 +02:00
d6c95dd383 Default to first page for RfC pages 2023-02-22 00:05:33 +01:00
2e825f2413 Fix pagination for RfCs 2023-02-21 23:44:34 +01:00
d0b713ddcd Dramatically improve RfC query
While the code gets more complex, the new query will first filter all relevant RfCs and only use the `with_last_activity` scope for the current page.

Using `distinct` in the policy is not required (no duplicated RfCs), but causes issues for the ordering otherwise. Therefore, it is removed.

Fixes CODEOCEAN-J2
2023-02-21 01:27:32 +01:00
d0717fb178 Reduce SQL queries for RfC index actions
By using includes and carefully selecting objects through references, all required objects are only queried once.
2023-02-20 23:47:06 +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
83feb67dd5 Update find method for study group in RfC index 2022-08-20 00:58:12 +02:00
c228850ae8 Update find method 2022-08-20 00:37:48 +02:00
145c4aa8d5 Refactor various ruby files
* Insights based on brakeman report
2022-08-18 15:25:04 +02:00
9a0f26a84f Allow admins and teachers to remove explicit RfC text 2022-04-28 15:31:58 +02:00
0a6ae91db8 Introduce per_page parameter for custom page size 2022-01-12 20:46:54 +01:00
1e7cf1c622 Prevent parallel execution of run and test during RfC creation
* Otherwise, the output of both might be mixed and saved incorrectly for the RfC
2021-11-01 17:13:14 +01:00
5cc180d0e9 Fix rubocop, I18n, cleanup rebase 2021-11-01 17:12:52 +01:00
cf58be97ee Fix 17 previously failing specs 2021-11-01 17:12:49 +01:00
110f1a5750 Fix rubocop offenses after bundle update 2021-06-30 09:13:25 +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
40d83dbb1d Fix access to exercise-specific RfC listing 2021-04-07 14:06:32 +02:00
8ebe59b692 Revert changes for Python20 fishbowl experiment
* Show all RfCs again, even those with #loesung
2021-03-08 23:15:58 +01:00
78f71fc3bf RfC require user before accessing anything else 2020-12-16 19:24:29 +01:00
028fc2989a #18 Add sql index for unpublished exercises
And remove spec for remove feature
2020-12-15 12:17:11 +01:00
fac29f73d4 Respect user_type for RfC index routes 2020-12-04 16:58:11 +01:00
16093fd94d Mark RfCs with keyword #loesung as solved 2020-11-17 00:55:00 +01:00
6f3300c66a Hide RfCs with keyword #loesung 2020-11-17 00:46:57 +01:00
4d5e00fde5 Require authorization for RfCs and remove obsolete routes 2020-10-28 13:24:44 +01:00
9ddeb91c41 Remove leftovers from PR #117; exercise feedback on RfC show 2020-10-20 12:15:45 +02:00
06b3059655 Ensure to close DB connections within threads 2020-03-04 12:25:09 +01:00
a0b544fb26 Upgrade Ransack #search to #ransack to prevent deprecation warning 2019-03-11 09:59:38 +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
6e03939c10 Add StudyGroup to submissions and show it for submissions and RfCs
Also take care of deleting a StudyGroup for existing submissions
2019-03-06 14:00:58 +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
dbb201ccad Clean up controller 2018-02-28 13:58:55 +01: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
194984a620 add cause to testruns
trigger run and assess on request_for_comment
2017-09-21 17:21:10 +02:00
28741854a6 Merge pull request #125 from openHPI/rework-comment-modal
Rework comment modal
2017-09-20 16:51:47 +02:00
8f372bab04 added total_entries attribute to fix pagination on more complicated query. Don't know why this is necessary. Fix was found by MGrundke 2017-09-15 14:52:35 +02:00
4baab7430c push commenters to RFC model 2017-09-13 07:06:55 +02:00
9e53fb4ea5 Fix query for RFC activity 2017-08-16 16:03:49 +02:00
06f11ae6f5 Fix RFC lists for RFCs without comments 2017-08-13 16:09:44 +02:00
726ef31ee7 Add new route to view all RFCs the user has commented on 2017-08-13 15:01:11 +02:00
eaac43ac63 Send e-Mail to all commenters if thank you note is given 2017-06-09 14:40:44 +02:00
f0fb52d92a Add thank you note to rfc 2017-06-08 16:46:15 +02:00
6eea338f84 supply search object for my_request_for_comments 2017-04-04 11:08:20 +02:00
58f76f53e6 added a search for request_for_comments.
fixed translation of model for request_for_comments
2017-04-03 19:49:03 +02:00
3f398c6047 add feedback for exercises 2017-03-30 22:06:17 +02:00
ff7446fde6 redirect to RFCs on max score: redirect users to their own RFCs if they are open, fixed wrong usage of user_id (external_id is not used in RFCs, normal id has to be used!). 2016-11-09 17:58:10 +01: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
2a52b66daa rfc can now be solved.
show.html still needs to be finished
2016-06-24 16:44:34 +02:00