Feature #20458

Fetch Many Authors Activities

Added by Victor Campos over 7 years ago. Updated 3 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Activity view
Target version:-
Resolution:

Description

Hi, I'm developing a follow feature for a customer and i realize that is not possible to fetch activities from many authors.

So i sugest this change:

        @scope.each do |event_type|
          constantized_providers(event_type).each do |provider|
            e += provider.find_events(event_type, @user, from, to, @options)
          end
        end

to
if @options[:author].is_a? Array
  @options[:author].each do |a|
        @scope.each do |event_type|
          constantized_providers(event_type).each do |provider|
            e += provider.find_events(event_type, @user, from, to, @options.merge(author: a))
          end
        end
  end
end

Sry for don't submit a patch, I'm not on my pc now and I don't have svn instaled.

fetch_many_authors.patch Magnifier (1.41 KB) Victor Campos, 2015-08-02 14:19

fetch_many_authors.patch Magnifier (1.41 KB) Victor Campos, 2015-08-03 03:38

20458.patch Magnifier (7.81 KB) Takenori TAKAKI, 2022-09-15 03:56

History

#1 Updated by Victor Campos over 7 years ago

Hi,
Here the patch, i think nothing that work before was broken and add new possibilities.

#2 Updated by Victor Campos over 7 years ago

fixing patch

#3 Updated by Toshi MARUYAMA over 7 years ago

  • Description updated (diff)

#4 Updated by Takenori TAKAKI 3 months ago

I made a patch to allow multiple users to be specified on the /activity.
This patch works with the latest Redmine (trunk@21812).

Also available in: Atom PDF