Apply the repository to register feature views in the registry.
(self)
| 257 | # store.write_to_offline_store(feature_view_name=feature_view_name, df=df) |
| 258 | |
| 259 | def apply_repo(self) -> None: |
| 260 | """ |
| 261 | Apply the repository to register feature views in the registry. |
| 262 | """ |
| 263 | from feast.repo_config import load_repo_config |
| 264 | from feast.repo_operations import apply_total |
| 265 | |
| 266 | original_cwd = None |
| 267 | try: |
| 268 | original_cwd = os.getcwd() |
| 269 | repo_path = Path(self.repo_path).resolve() |
| 270 | config = load_repo_config( |
| 271 | repo_path=repo_path, |
| 272 | fs_yaml_file=Path(self.yaml_path), |
| 273 | ) |
| 274 | apply_total( |
| 275 | repo_config=config, |
| 276 | repo_path=repo_path, |
| 277 | skip_source_validation=True, |
| 278 | ) |
| 279 | finally: |
| 280 | if original_cwd is not None: |
| 281 | os.chdir(original_cwd) |
| 282 | |
| 283 | def embed_documents( |
| 284 | self, |