kiragrammel
79ce069f68
Add CRUD operations for Programming Groups
...
* Correct sorting in table
* Modify page when nested in exercises
* Fix links between pages
* Link from statistics page to programming_groups/index
* Link from submission page to programming_groups/<id>
* Allow filtering for exercise ID on ProgrammingGroup#index
* Add search fields for internal and external user id on pg/index
2023-10-23 18:17:42 +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
Kira Grammel
9f837412c7
Add waiting room to create programming groups ( #1919 )
...
Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de >
2023-09-21 15:07:10 +02:00
Sebastian Serth
b77c98b03f
Add missing has_many associations for Users
2023-09-21 11:27:12 +02:00
Sebastian Serth
33aa0cecba
Provide current-user application-wide
...
* This change allows us to reuse the current user in multiple places.
* Sentry still receives the same information as before.
2023-09-08 11:48:53 +02:00
Sebastian Serth
9d1be1eeff
Migrate AnomalyNotification to contributor
...
* Also, this commit aims to fix the (broken) anomaly notifications.
2023-08-24 19:32:06 +02:00
Sebastian Serth
a1941336d9
Fix Runner access for programming groups
...
* We also rename the corresponding columns in the Runner model, so that for polymorphic association gets clear.
2023-08-24 19:32:06 +02:00
Sebastian Serth
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
kiragrammel
319c3ab3b4
Add ProgrammingGroup & ProgrammingGroupMembership
...
* User can create programming group with other users for exercise
* Submission is shared in a group
* Also adjust specs
2023-08-24 19:32:06 +02:00
kiragrammel
0234414bae
Rename user to contributor in submission
2023-08-24 19:32:06 +02:00
Sebastian Serth
04504973ba
Adjust Sentry's user context
2023-02-03 00:16:52 +01:00
Sebastian Serth
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
Sebastian Serth
574e99eddd
Fix rubocop offenses - Requires Ruby 3.1+
2022-11-25 11:10:06 +01:00
Sebastian Serth
f17718f69f
CSP: Extract JavaScript from layout to assets
...
Fixes CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
Sebastian Serth
0e7c38657f
Allow teachers to access internal users and manage them in their study groups
2022-09-22 19:24:26 +02:00
Janis Vaneylen
998a12e6bc
Adjust filter for platform_admin user search and update views
2022-09-22 19:24:26 +02:00
Sebastian Serth
9c9f45ff77
Redefine user roles with their role in a study group
2022-09-22 19:24:26 +02:00
Sebastian Serth
1581d658ea
Simplify user search for external teachers
2022-09-04 19:03:15 +02:00
Sebastian Serth
166aa3cc6f
Remove Ransack from Exercise edit for tags
...
* Also improve Ransack usage of attributes and associations
2022-08-20 01:33:00 +02:00
Janis4411
d64daadd21
added AuthenticationToken model, updated some restrictions for the authentication token table, added dependent destroy to the user model for authentication tokens
2022-08-05 08:05:07 +02:00
Sebastian Serth
6cbecb5b39
Apply automatic rubocop fixes
2021-05-14 22:03:06 +02:00
Sebastian Serth
3c7e9176a2
Daily Rubocop
2021-04-30 12:06:13 +02:00
Sebastian Serth
4958f5b9a9
Add StudyGroup to RemoteEvaluationMapping
2021-04-30 12:06:12 +02:00
Sebastian Serth
914eeb6035
Add submission deadline to exercises and allow teachers to view their submissions
2020-05-07 21:23:27 +02:00
Sebastian Serth
8e8404dffa
Add search for external users
2020-05-05 16:52:28 +02:00
Karol
da8d31279c
review points
2019-12-16 17:38:32 +01:00
Karol
ec48d1f447
readding codeharbor_link views and actions
2019-08-26 19:06:52 +02:00
Sebastian Serth
b137e64020
Add StudyGroups with ExternalUsers only
2018-12-12 12:09:52 +01:00
Sebastian Serth
141450a840
Migrate User to abstract class
2018-12-12 11:45:11 +01:00