Project

General

Profile

Actions

Feature #20458

open

Fetch Many Authors Activities

Added by Victor Campos over 9 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Activity view
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files

fetch_many_authors.patch (1.41 KB) fetch_many_authors.patch Victor Campos, 2015-08-02 14:19
fetch_many_authors.patch (1.41 KB) fetch_many_authors.patch Victor Campos, 2015-08-03 03:38
20458.patch (7.81 KB) 20458.patch Takenori TAKAKI, 2022-09-15 03:56
Actions #1

Updated by Victor Campos over 9 years ago

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

Actions #3

Updated by Toshi MARUYAMA over 9 years ago

  • Description updated (diff)
Actions #4

Updated by Takenori TAKAKI over 2 years ago

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

Actions

Also available in: Atom PDF