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.
Description
From Eric Davis over IRC:
if non-members are allowed to create issues, Issue Filters > Author should list non-members too
We can not list all users in this field, we need to change this filter to an auto-complete field first.
Jean-Philippe Lang wrote:
We can not list all users in this field (...)
Agreed! :)
+1
Just discovered this issue myself.
- Assignee deleted (
Eric Davis)
- Target version set to Candidate for next major release
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.
- Status changed from New to Closed
- Target version deleted (
Candidate for next major release)
- Resolution set to Duplicate
I close as duplicate of #4398.
Toshi MARUYAMA wrote:
I close as duplicate of #4398.
Sorry, it is #1875.
- Is duplicate of Feature #1875: Issue filtering on author only uses members of project added
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
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
Also available in: Atom
PDF