Commit Graph

144 Commits

Author SHA1 Message Date
Sebastian Serth
e7e8798f8e Disable sorttable on Ransack-sorted columns 2023-10-03 11:31:31 +02:00
Sebastian Serth
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
Sebastian Serth
32893bed43 Filter test results on RfC page based on new test attribute 2023-08-01 16:24:13 +02:00
Sebastian Serth
944b455194 Introduce Dark Mode
This commit mainly changes the color definitions. Mostly, those changes are semantically equally, but there are a few changes that occurred to align the color scheme within the app.
2023-07-31 11:48:42 +02:00
Sebastian Serth
a99da79550 Disable sorttable on tables without rows
Otherwise, the first element of the table body is being fetched which might result in an error for empty tables.

Fixes CODEOCEAN-JZ
2023-03-14 18:27:38 +01:00
Sebastian Serth
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
Sebastian Serth
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
Sebastian Serth
a9c642a116 CSP: Extract RfC JS from view to assets
Relates to CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
Sebastian Serth
4f0b8c3c42 Reduce usage of @current_user (use helper instead) 2022-11-02 12:27:38 +01:00
Sebastian Serth
a2bb2844b4 Add a Content Security Policy 2022-09-06 11:20:57 +02:00
Sebastian Serth
8a055a0d68 Update Bootstrap from v4 to v5 2022-08-12 11:45:32 +02:00
Sebastian Serth
b98c37ae64 Rename v4 FontAwesome icons to match v5/v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at:
https://fontawesome.com/docs/web/setup/upgrade/upgrade-from-v4#icons-renamed-since-version-4
2022-08-09 14:17:32 +02:00
Sebastian Serth
4ef7da839d Use TestrunMessages instead of Testrun.output when displaying output 2022-04-29 22:44:35 +02:00
Sebastian Serth
9a0f26a84f Allow admins and teachers to remove explicit RfC text 2022-04-28 15:31:58 +02:00
Sebastian Serth
b8bf43eae8 Fix route path for update and delete of comments 2021-11-25 10:07:24 +01:00
Sebastian Serth
18f05db138 Always show CSRF error message for Ajax 2021-11-23 01:37:50 +01:00
Sebastian Serth
eb69697b9a Fix missing routes incompatible with a subpath 2021-11-03 16:02:21 +01:00
Sebastian Serth
237c225732 Add support for running CodeOcean under a subpath
* Also refactor (JavaScript) routes
2021-07-06 19:33:55 +02:00
Sebastian Serth
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
Sebastian Serth
1d5ceebd7b Fix RfC filter for unnamed study groups 2021-04-09 10:25:41 +02:00
Sebastian Serth
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
Maximilian Pass
028fc2989a #18 Add sql index for unpublished exercises
And remove spec for remove feature
2020-12-15 12:17:11 +01:00
Sebastian Serth
3d7bddcad1 Adjust RegEx for RfC show 2020-11-21 00:50:59 +01:00
Sebastian Serth
9fcb178839 Check for null in RfC RegEx 2020-11-17 21:46:42 +01:00
Sebastian Serth
ce3d9b488d Hotfix: Hide linter run for RfCs 2020-11-01 22:39:29 +01:00
Sebastian Serth
75a2929b39 Hotfix: Hide linter run for RfCs 2020-11-01 22:35:10 +01:00
Sebastian Serth
87308f72a4 Allow access to RfCs based on migrated exercises 2020-10-28 13:57:47 +01:00
Sebastian Serth
5d7d8a7f68 Replace window.location with the full URL to prevent passing query parameters
* Example before:
location + '/mark_as_solved'
/request_for_comments/30885?locale=de/mark_as_solved

Now: //localhost:3333/request_for_comments/30885/mark_as_solved

Note: https or http will be added automatically by browsers
2020-10-28 13:41:41 +01:00
Sebastian Serth
4cb34a611d Allow empty string values to be matched 2020-10-28 01:15:33 +01:00
Sebastian Serth
a47ce7d069 Add Raven context to RfC show 2020-10-27 23:47:13 +01:00
Sebastian Serth
9ddeb91c41 Remove leftovers from PR #117; exercise feedback on RfC show 2020-10-20 12:15:45 +02:00
Sebastian Serth
59e13d432d Hide linter runs from RfCs 2020-10-15 18:23:14 +02:00
Sebastian Serth
854d1dd032 Improve form filter style 2020-05-05 16:52:29 +02:00
Sebastian Serth
2de33c2531 Preserve webserver from wasting time in re-constructing output message for RfCs 2020-03-26 16:28:56 +01:00
Sebastian Serth
1ed5746746 Revert unintended changes 2020-03-14 22:55:48 +02:00
Sebastian Serth
fc5b02f2d9 Fix newline bug when editing comments 2020-03-14 21:42:47 +02:00
Sebastian Serth
42d66b6a39 Fix parsing of " in RfC output 2020-01-27 15:44:27 +01:00
rteusner
951171743d Merge pull request #261 from openHPI/feature/la-dashboard
Add LA dashboard architecture
2019-03-12 14:30:25 +01:00
Sebastian Serth
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
Sebastian Serth
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
Sebastian Serth
d4f1c5aee1 Use correct policy to check if RfC could be accessed 2019-02-07 21:13:21 +01:00
Sebastian Serth
2125fb1c1d Ensure views only link to those actions allowed for current user 2018-12-12 14:09:19 +01:00
rteusner
d7dcbdc799 Merge pull request #200 from openHPI/remove-ab-tests
Remove ab tests
2018-11-15 18:02:34 +01:00
Sebastian Serth
41bd5bac10 Convert .html.erb templates to .html.slim 2018-11-06 16:49:42 +01:00
Sebastian Serth
7bdb962616 Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites 2018-11-06 16:49:41 +01:00
Ralf Teusner
d9d3dc42d4 remove all A/B testing code no longer in use. 2018-08-09 15:14:52 +02:00
Maximilian Grundke
0395d5b038 Fix/highlight rfcs (#182)
* Fix highlighting condition

* Use highlighting color that is easier on the eyes
2018-06-25 12:01:31 +02:00
Ralf Teusner
5a899fe74f highlight rfcs-not-to-answer 2018-06-15 14:47:03 +02:00
Maximilian Grundke
6898571dff Explicitly show unit test results 2018-04-10 16:02:53 +02:00
Maximilian Grundke
fc614ce4ac Hide run output by default 2018-04-10 15:31:23 +02:00