Katello/katello — pull request #3102 by thomasmckay (2013-10-07 15:54:59+00:00)
Title: admin-role - static type for Role self_role and locked

After upgrading from SAM-1.2 to SAM-1.3, the Administrator role was not being listed in the UI. Querying elasticsearch directly showed the role, but not for the query katello is sending:

curl -X GET 'http://localhost:9200/katello_role/role/_search?from=0&size=20&pretty' -d '{"query":{"match_all":{}},"filter":{"terms":{"self_role":[false]}},"size":20,"from":0}'

@jlsherrill found that statically typing the self_role to boolean allowed the query to work.