Feature #16383

Add "builtin" search filter to roles

Added by Renzo Nuccitelli 12 months ago. Updated 12 months ago.

Status:Duplicate
Priority:Normal
Assigned To:-
Category:Search
Target version:Team Marek backlog
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

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

Related to Hammer CLI - Feature #16406: Show builtin flag in roles list Closed 09/01/2016
Duplicates Foreman - Feature #16405: Allow scoped search on the builtin flag for roles Closed 09/01/2016

History

#1 Updated by Dominic Cleal 12 months 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

#2 Updated by Tomáš Strachota 12 months ago

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

#3 Updated by Tomáš Strachota 12 months ago

#4 Updated by Tomáš Strachota 12 months ago

  • Target version set to Team Marek backlog

#5 Updated by Dominic Cleal 12 months ago

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

#6 Updated by Dominic Cleal 12 months ago

  • Duplicates Feature #16405: Allow scoped search on the builtin flag for roles added

#7 Updated by Dominic Cleal 12 months ago

  • Status changed from New to Duplicate

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

Also available in: Atom PDF