Project

General

Profile

Actions

Bug #9855

closed

searching users on organization returns unexpected results

Added by Thomas McKay about 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Expectation that searching "organization = ACME" would return all users that belong to this organization (ie. have ACME in their list of orgs in the UI).

Having two users with default organization of ACME only returns one of those users too, so it's unclear what the intention of this scoped search field is intending.

Actions #1

Updated by Thomas McKay about 9 years ago

  • Bugzilla link set to 1204365
Actions #2

Updated by Dominic Cleal about 9 years ago

  • Category set to Search
  • Status changed from New to Need more information

Appears to work fine here. The 'organization' field is for associations to orgs, not searching default orgs.

10:02 $ hammer organization info --id 9
>Id<:                 9
>Name<:               Lacking foo
>Users<:              
    7220test
    orgadmin
    roletest
[..]

>Created at<:         2013/05/07 17:28:54
>Updated at<:         2014/04/10 07:53:17

✔ ~/code/foreman/hammer-cli-foreman [master|✔] 
10:03 $ hammer user list --search 'organization = "Lacking foo"'
-----|----------|-----------|-------------------
>ID< | >LOGIN<  | >NAME<    | >EMAIL<           
-----|----------|-----------|-------------------
39   | 7220test | 7220 Test | a@localhost       
25   | orgadmin | Org Admin | orgadmin@localhost
6    | roletest | role test | roletest@localhost
-----|----------|-----------|-------------------
Actions #3

Updated by Mike McCune about 9 years ago

The 'default organization' is a login preference for the UI but does not imply membership within an organization. I'd not expect this search to reflect the UI preference at all. IMO, not really a bug.

Actions #4

Updated by Dominic Cleal about 9 years ago

  • Status changed from Need more information to Rejected
Actions

Also available in: Atom PDF