Add Users::ActivityEvent and pub/sub logic
In order to track the last activity of a group or project member, we are adding an event store event that is published when we record the same against the User record, and also adds the worker that subscribes to the event. Changelog: added
显示
- app/controllers/concerns/record_user_last_activity.rb 13 个添加, 0 个删除app/controllers/concerns/record_user_last_activity.rb
- app/events/users/activity_event.rb 16 个添加, 0 个删除app/events/users/activity_event.rb
- app/services/members/activity_service.rb 47 个添加, 0 个删除app/services/members/activity_service.rb
- app/workers/all_queues.yml 9 个添加, 0 个删除app/workers/all_queues.yml
- app/workers/users/record_last_activity_worker.rb 22 个添加, 0 个删除app/workers/users/record_last_activity_worker.rb
- config/feature_flags/gitlab_com_derisk/track_member_activity.yml 9 个添加, 0 个删除...feature_flags/gitlab_com_derisk/track_member_activity.yml
- config/sidekiq_queues.yml 2 个添加, 0 个删除config/sidekiq_queues.yml
- ee/spec/lib/ee/gitlab/event_store_spec.rb 2 个添加, 1 个删除ee/spec/lib/ee/gitlab/event_store_spec.rb
- lib/gitlab/event_store.rb 6 个添加, 0 个删除lib/gitlab/event_store.rb
- spec/controllers/concerns/record_user_last_activity_spec.rb 119 个添加, 0 个删除spec/controllers/concerns/record_user_last_activity_spec.rb
- spec/services/members/activity_service_spec.rb 128 个添加, 0 个删除spec/services/members/activity_service_spec.rb
- spec/workers/users/record_last_activity_worker_spec.rb 53 个添加, 0 个删除spec/workers/users/record_last_activity_worker_spec.rb
加载中
想要评论请 注册 或 登录