Project

General

Profile

Actions

Defect #9540

closed

Issue filter by assigned_to_role is not project specific

Added by Tobias as almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
2011-11-08
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When I Filter by Role, the filter selects assign_to - User with the system wide Role, rather than selecting those users who have the role in this project, as i would assume.

Actions #1

Updated by Etienne Massip almost 13 years ago

There is no system wide role for a user, AFAIK?

Actions #2

Updated by Mischa The Evil almost 13 years ago

Etienne Massip wrote:

There is no system wide role for a user, AFAIK?

AFAIK only the two system roles have system wide effects. Though, this does seems not related to this issue as far as I understand the question...

Tobias, please provide some more info and/or a use-case description about this "defect". See submissions for some guidelines.

Actions #3

Updated by Tobias as almost 13 years ago

the issues lies in
app/models/query.rb
method
sql_for_assigned_to_role_field
line 630
user_ids << role.members.collect(&:user_id)

somehow we have to collect those user_ids, that have this specific role/roles in the specific project, we are filtering in,
not those users that have the role in any project.

I hope you understand what I mean.

Actions #4

Updated by Etienne Massip almost 13 years ago

  • Target version set to Candidate for next minor release

Ok, now I understand.

Actions #5

Updated by Jean-Philippe Lang almost 13 years ago

  • Subject changed from Issue-Filter by assigned_to_role is not Project specific to Issue filter by assigned_to_role is not project specific
  • Status changed from New to Confirmed
Actions #6

Updated by Jean-Philippe Lang almost 13 years ago

  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next minor release to 1.3.0
Actions #7

Updated by Jean-Philippe Lang almost 13 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Fixed in r7847.

Actions

Also available in: Atom PDF