Sean McGivern
9bc3dfea4f
Stop serialising project when removing todos
...
`Todos::Destroy::EntityLeaveService#project_ids` was returning
ActiveRecord objects with IDs, not simply IDs. That means we were
serialising more than we needed to in Sidekiq.
We can simply rename this method to `#projects` as this class doesn't
use any of the superclass methods that would use `#project_ids`.
2019-04-29 15:31:29 +01:00
Jasper Maes
5d5481519d
Rails5: Passing a class as a value in an Active Record query is deprecated
2018-11-17 16:14:36 +01:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
gfyoung
2ad1688be9
Enable frozen string in vestigial app files
...
Partially addresses #47424 .
2018-08-12 11:07:35 -07:00
Jarka Kadlecová
6dc7490789
Add changes from the EE
2018-08-06 14:18:21 +02:00
Jarka Kadlecová
02b077925d
Fix removing todos for users without access
2018-08-06 10:42:51 +02:00
Jarka Kadlecová
4d4b8f8bbe
Remove group todos when a users looses access
2018-08-02 16:16:58 +02:00
Jarka Kadlecová
bdc8396e25
Remove todos when project feature visibility changes
2018-07-31 12:32:08 +02:00
Jarka Kadlecová
7934b91311
Fix removing todos for confidential issues
...
- dont remove todos for authos & assignees
- remove todos for project guests
2018-07-30 13:29:18 +02:00
Jarka Kadlecová
501fb04ec6
Delete todos when users loses target read permissions
2018-07-30 13:29:18 +02:00