(
p: Permission, policy: Policy, table: list[Any]
)
| 187 | |
| 188 | |
| 189 | def 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 | |
| 207 | def fetch_all_feast_objects(store: FeatureStore) -> list[FeastObject]: |
nothing calls this directly
no test coverage detected