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

Function handle_not_verbose_permissions_command

sdk/python/feast/cli/cli_utils.py:189–204  ·  view source on GitHub ↗
(
    p: Permission, policy: Policy, table: list[Any]
)

Source from the content-addressed store, hash-verified

187
188
189def handle_not_verbose_permissions_command(
190 p: Permission, policy: Policy, table: list[Any]
191):
192 roles: set[str] = set()
193 if isinstance(policy, RoleBasedPolicy):
194 roles = set(policy.get_roles())
195 table.append(
196 [
197 p.name,
198 _to_multi_line([t.__name__ for t in p.types]), # type: ignore[union-attr, attr-defined]
199 _to_multi_line(p.name_patterns),
200 _to_multi_line([a.value.upper() for a in p.actions]),
201 _to_multi_line(sorted(roles)),
202 _dict_to_multi_line(p.required_tags),
203 ],
204 )
205
206
207def fetch_all_feast_objects(store: FeatureStore) -> list[FeastObject]:

Callers

nothing calls this directly

Calls 3

_to_multi_lineFunction · 0.85
_dict_to_multi_lineFunction · 0.85
get_rolesMethod · 0.45

Tested by

no test coverage detected