Commit Graph

33 Commits

Author SHA1 Message Date
99bd46af1a Align project files with CodeHarbor
Since both projects are developed together and by the same team, we also want to have the same code structure and utility methods available in both projects. Therefore, this commit changes many files, but without a functional change.
2023-10-11 00:18:33 +02:00
e767cff309 Fix flaky tests dependent on exercise.reload for files 2023-09-16 16:57:59 +02:00
235bf771fe Always use user object instead of ID and Type 2023-08-26 00:39:47 +02:00
28a4b672f9 Remove legacy save search endpoint 2023-07-28 13:18:39 +02:00
574e99eddd Fix rubocop offenses - Requires Ruby 3.1+ 2022-11-25 11:10:06 +01:00
964048927a Updated teacher_in_study_group? method to check for common teacher role 2022-09-22 19:24:26 +02:00
521626275f Use create for all users in specs where necessary 2022-09-22 19:24:26 +02:00
49f4f0e6c5 Refactor exercise_controller and move more checks to policy
* We introduce a custom handler for Pundit::NotAuthorizedError
2022-09-04 00:05:13 +02:00
e5879eb606 Simplify permission specs
* Remove iteration if not required
* Unify usage of parentheses for `permissions` call
2022-08-22 17:51:57 +02:00
e0c2c7b806 Hide score button if exercise has no tests
We check for all teacher-defined assessments (linter and unit tests) to determine whether scoring should be possible
2022-08-22 17:51:57 +02:00
ea85519163 Update bundle (with newest rubocop version) and fix offenses 2022-01-04 09:42:37 +01: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
835b70b000 fix typo 2020-10-29 18:22:33 +01:00
517886ea0b fix codeharbor_export policies, add specs 2020-10-29 18:06:14 +01:00
afafe0c218 Adjust teacher permissions:
* Hide non-public exercises and proxy exercises
* Hide average working time value on statistic page
* Add hint about filter to submission page for teachers
* Hide display name from feedback page
2020-09-07 19:04:34 +02:00
c89ee6c102 model and policy specs 2019-12-07 13:11:48 +01:00
924f94f254 Fix failing tests for new permissions 2019-11-29 15:50:50 +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
0e26ab98c8 rename factory_girl_(rails) to factory_bot_(rails) 2017-11-15 15:18:07 +01:00
032c201b94 repair database query 2016-08-03 14:08:01 +02:00
4183a16178 merge with master 2016-08-03 12:09:58 +02:00
16206cf58f restore one line 2016-07-04 17:56:57 +02:00
2bb1362520 further delete (spec files) 2016-07-04 16:59:30 +02:00
9b07a68e3a repair :show issue for external users 2016-05-31 17:33:38 +02:00
6ee0b6bf81 implemented partial batch update for exercises 2015-03-12 11:05:11 +01:00
d222d94bbe changed database cleaning strategy 2015-02-18 11:03:56 +01:00
8e374c6914 use #described_class, as suggested by RuboCop 2015-02-16 17:04:28 +01:00
b08bc8aef2 sped up some tests 2015-01-30 10:50:44 +01:00
db2a9a4261 sped up some tests 2015-01-29 18:19:45 +01:00
cbde9529aa implemented team-dependent exercise policy 2015-01-29 17:13:22 +01:00
4cbf9970b1 transferred Code Ocean from original repository to GitHub 2015-01-22 10:01:32 +01:00