Project

General

Profile

Actions

Feature #4398

closed

Author Issue-filter only contains members even when non-members have 'create issue' permission

Added by Mischa The Evil almost 15 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2009-12-14
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

From Eric Davis over IRC:

if non-members are allowed to create issues, Issue Filters > Author should list non-members too


Related issues

Is duplicate of Redmine - Feature #1875: Issue filtering on author only uses members of projectNew2008-09-09

Actions
Actions #1

Updated by Jean-Philippe Lang almost 15 years ago

We can not list all users in this field, we need to change this filter to an auto-complete field first.

Actions #2

Updated by Mischa The Evil almost 15 years ago

Jean-Philippe Lang wrote:

We can not list all users in this field (...)

Agreed! :)

Actions #3

Updated by Nick Fitzgerald almost 15 years ago

+1
Just discovered this issue myself.

Actions #4

Updated by Eric Davis about 14 years ago

  • Assignee deleted (Eric Davis)
Actions #5

Updated by Etienne Massip over 13 years ago

  • Target version set to Candidate for next major release
Actions #6

Updated by Gabriel Mazetto over 11 years ago

Any update on this? We should consider it a defect rather then a feature... as the expected behaviour is currently not being matched by the actual code.

Actions #7

Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from New to Closed
  • Target version deleted (Candidate for next major release)
  • Resolution set to Duplicate

I close as duplicate of #4398.

Actions #8

Updated by Toshi MARUYAMA about 9 years ago

Toshi MARUYAMA wrote:

I close as duplicate of #4398.

Sorry, it is #1875.

Actions #9

Updated by Toshi MARUYAMA about 9 years ago

  • Is duplicate of Feature #1875: Issue filtering on author only uses members of project added
Actions #10

Updated by Alexey Poliansky about 9 years ago

173c177,183
<     author_values += users.collect{|s| [s.name, s.id.to_s] }
---
>    if project 
>      project.issues.group(:author_id).each{|i| author_values << [i.author.name, i.author_id.to_s]}
>      else
>      author_values += users.collect{|s| [s.name, s.id.to_s] }
>      end

Add only authors to filter list, if neccessary.
not contain subprojects yet, but it's also possible
Actions #11

Updated by Alexey Poliansky about 9 years ago

I select all authors from issues in last half of year and preload authors objects

173c174,182
<     author_values += users.collect{|s| [s.name, s.id.to_s] }
---
>    if project 
>       time_range = (Time.now - (3600*24*180))..(Time.now)
>       author_values += project.issues.where(issues: { created_on: time_range }).group(:author_id).preload(:author).collect{|s| [s.author.name, s.author_id.to_s]}
>      author_values.sort!
>      else
>      author_values += users.collect{|s| [s.name, s.id.to_s] }
>      end

works fast and useful for control workflow projects

Actions

Also available in: Atom PDF