MCPcopy Index your code
hub / github.com/feast-dev/feast / fetch_all_permission_roles

Function fetch_all_permission_roles

sdk/python/feast/cli/cli_utils.py:253–259  ·  view source on GitHub ↗
(permissions: list[Permission])

Source from the content-addressed store, hash-verified

251
252
253def fetch_all_permission_roles(permissions: list[Permission]) -> list[str]:
254 all_roles = set()
255 for p in permissions:
256 if isinstance(p.policy, RoleBasedPolicy) and len(p.policy.get_roles()) > 0:
257 all_roles.update(p.policy.get_roles())
258
259 return sorted(all_roles)
260
261
262def handler_list_all_permissions_roles(permissions: list[Permission], table: list[Any]):

Calls 2

get_rolesMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected