diff --git a/app/services/dashboard/recent_work_service.rb b/app/services/dashboard/recent_work_service.rb index 4a233b465..350d9f6a4 100644 --- a/app/services/dashboard/recent_work_service.rb +++ b/app/services/dashboard/recent_work_service.rb @@ -18,6 +18,7 @@ module Dashboard .where('((project_id IS NULL AND team_id = ?) OR project_id IN (?))', @team.id, visible_projects.pluck(:id)) + .where.not(type_of: Extends::DASHBOARD_BLACKLIST_ACTIVITY_TYPES) .select('MAX(created_at) AS last_change', :subject_id, :subject_type) diff --git a/config/initializers/extends.rb b/config/initializers/extends.rb index 6824337fc..e2fac7942 100644 --- a/config/initializers/extends.rb +++ b/config/initializers/extends.rb @@ -314,4 +314,6 @@ class Extends shared_read: 'view-only', shared_write: 'edit' }.freeze + + DASHBOARD_BLACKLIST_ACTIVITY_TYPES = %i(export_protocol_in_repository copy_protocol_in_repository).freeze end