Project

General

Profile

Actions

Feature #16383

closed

Add "builtin" search filter to roles

Added by Renzo Nuccitelli about 8 years ago. Updated over 6 years ago.

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

Description

I needed test the assignment of built in roles but this field is not included on filters:

[root@****** ~]# hammer -u ****** -p ****** role filters -h
Usage:
    hammer role filters [OPTIONS]

Options:
 --id ID                       User role id
 --name NAME                   User role name
 --order ORDER                 sort results
 --page PAGE                   paginate results
 --per-page PER_PAGE           number of entries per request
 -h, --help                    print help
[root@****** ~]# hammer -u ****** -p ****** role info --id 9
Id:      9
Name:    View hosts
Builtin: No

So I checked if listing includes built info, so I could filter them after listing them all, but this info isn't there:

[root@****** ~]# hammer -u ****** -p ****** role list 
---|---------------------------------------------------------------------------------
ID | NAME                                                                            
---|---------------------------------------------------------------------------------
61 | 38324258316265092573470022                                                      
81 | 4SYd2i                                                                          
6  | Access Insights Admin                                                           
5  | Access Insights Viewer

So only way to accomplish that would be retrieving all roles and querying each one info by id to get this info, what would take longer than it need to.

So would be good having the possibility of filtering roles accordingly to its built in info.


Related issues 2 (0 open2 closed)

Related to Hammer CLI - Feature #16406: Show builtin flag in roles listClosedShlomi Zadok09/01/2016Actions
Is duplicate of Foreman - Feature #16405: Allow scoped search on the builtin flag for rolesClosedMarek Hulán09/01/2016Actions
Actions #1

Updated by Dominic Cleal about 8 years ago

  • Project changed from Hammer CLI to Foreman
  • Subject changed from Role "Buiitin" filter to Add "builtin" search filter to roles
  • Category set to Search
Actions #2

Updated by Tomáš Strachota about 8 years ago

  • Blocked by Feature #16405: Allow scoped search on the builtin flag for roles added
Actions #3

Updated by Tomáš Strachota about 8 years ago

Actions #4

Updated by Tomáš Strachota about 8 years ago

  • Target version set to 115
Actions #5

Updated by Dominic Cleal about 8 years ago

  • Blocked by deleted (Feature #16405: Allow scoped search on the builtin flag for roles)
Actions #6

Updated by Dominic Cleal about 8 years ago

  • Is duplicate of Feature #16405: Allow scoped search on the builtin flag for roles added
Actions #7

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Duplicate

Should have been fixed by #16405, allowing hammer role list --search "builtin = true"

Actions

Also available in: Atom PDF