(self, project: str)
| 1007 | ) |
| 1008 | |
| 1009 | def _list_project_metadata(self, project: str) -> List[ProjectMetadata]: |
| 1010 | with self.read_engine.begin() as conn: |
| 1011 | stmt = select(feast_metadata).where( |
| 1012 | feast_metadata.c.project_id == project, |
| 1013 | ) |
| 1014 | rows = conn.execute(stmt).all() |
| 1015 | if rows: |
| 1016 | project_metadata = ProjectMetadata(project_name=project) |
| 1017 | for row in rows: |
| 1018 | if ( |
| 1019 | row._mapping["metadata_key"] |
| 1020 | == FeastMetadataKeys.PROJECT_UUID.value |
| 1021 | ): |
| 1022 | project_metadata.project_uuid = row._mapping["metadata_value"] |
| 1023 | break |
| 1024 | # TODO(adchia): Add other project metadata in a structured way |
| 1025 | return [project_metadata] |
| 1026 | return [] |
| 1027 | |
| 1028 | def apply_saved_dataset( |
| 1029 | self, |
nothing calls this directly
no test coverage detected