(self, request: RegistryServer_pb2.ListProjectsRequest, context)
| 1108 | ).to_proto() |
| 1109 | |
| 1110 | def ListProjects(self, request: RegistryServer_pb2.ListProjectsRequest, context): |
| 1111 | paginated_projects, pagination_metadata = apply_pagination_and_sorting( |
| 1112 | permitted_resources( |
| 1113 | resources=cast( |
| 1114 | list[FeastObject], |
| 1115 | self.proxied_registry.list_projects( |
| 1116 | allow_cache=request.allow_cache, |
| 1117 | tags=dict(request.tags), |
| 1118 | ), |
| 1119 | ), |
| 1120 | actions=AuthzedAction.DESCRIBE, |
| 1121 | ), |
| 1122 | pagination=request.pagination, |
| 1123 | sorting=request.sorting, |
| 1124 | ) |
| 1125 | |
| 1126 | return RegistryServer_pb2.ListProjectsResponse( |
| 1127 | projects=[project.to_proto() for project in paginated_projects], |
| 1128 | pagination=pagination_metadata, |
| 1129 | ) |
| 1130 | |
| 1131 | def DeleteProject(self, request: RegistryServer_pb2.DeleteProjectRequest, context): |
| 1132 | project = self.proxied_registry.get_project( |
nothing calls this directly
no test coverage detected