Project

General

Profile

Actions

Feature #4398

closed

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

Feature #4398: Author Issue-filter only contains members even when non-members have 'create issue' permission

Added by Mischa The Evil almost 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
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 1 (1 open — 0 closed)

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

Updated by Jean-Philippe Lang almost 17 years ago Actions #1

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

Updated by Mischa The Evil almost 17 years ago Actions #2

Jean-Philippe Lang wrote:

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

Agreed! :)

Updated by Nick Fitzgerald almost 17 years ago Actions #3

+1
Just discovered this issue myself.

Updated by Eric Davis about 16 years ago Actions #4

  • Assignee deleted (Eric Davis)

Updated by Etienne Massip over 15 years ago Actions #5

  • Target version set to Candidate for next major release

Updated by Gabriel Mazetto over 13 years ago Actions #6

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.

Updated by Toshi MARUYAMA about 11 years ago Actions #7

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

I close as duplicate of #4398.

Updated by Toshi MARUYAMA about 11 years ago Actions #8

Toshi MARUYAMA wrote:

I close as duplicate of #4398.

Sorry, it is #1875.

Updated by Toshi MARUYAMA about 11 years ago Actions #9

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

Updated by Alexey Poliansky about 11 years ago Actions #10

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

Updated by Alexey Poliansky about 11 years ago Actions #11

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: PDF Atom