Commit Graph

10 Commits

Author SHA1 Message Date
Felipe Artur be33946819 Delete unauthorized Todos when project is private
Delete Todos for guest users when project visibility
level is updated to private.
2019-06-05 10:51:52 -03:00
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
Thong Kuah 85b29c1c2f Add frozen_string_literal to spec/services
Probably useful as we often move these files to "new" files.
2019-04-12 10:14:54 +12:00
Rémy Coutable 3a2abc1d50
Enable the Layout/ExtraSpacing cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-24 13:05:45 +01: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