Title: fix: Surface FeatureViewPinConflict and version changes during feast plan by Abhishek8108 · Pull Request #6391 · feast-dev/feast · GitHub
Open Graph Title: fix: Surface FeatureViewPinConflict and version changes during feast plan by Abhishek8108 · Pull Request #6391 · feast-dev/feast
X Title: fix: Surface FeatureViewPinConflict and version changes during feast plan by Abhishek8108 · Pull Request #6391 · feast-dev/feast
Description: Summary Closes #6104 Three gaps existed in the plan-mode versioning flow introduced by #6101: 1. FeatureViewPinConflict never raised during feast plan The conflict check (simultaneous version pin + schema change) only ran inside apply_feature_view(). Users had no way to discover pin conflicts without running feast apply — defeating the purpose of plan mode. 2. Version changes not visible in plan output diff_registry_objects iterated over spec fields and compared version as a raw proto string ("latest" -> "v2"). The resolved numeric pin target from meta.current_version_number was never surfaced, so users could not see which numeric version they were pinning to or from. 3. No tests for plan-mode versioning No unit tests covered either of the above. Changes BaseRegistry.check_version_pin_conflict() (new method) Read-only plan-time guard that mirrors the conflict detection inside apply_feature_view. Implemented on BaseRegistry using get_feature_view_by_version and get_any_feature_view — both already declared on BaseRegistry — so it works for both file and SQL registries without duplicating per-registry logic. Conflict condition: user is simultaneously pinning to an existing version AND the feature view definition differs from the active version (schema or UDF change). store.plan() — calls the conflict check Iterates all feature views (FeatureView, StreamFeatureView, OnDemandFeatureView) in desired_repo_contents and calls registry.check_version_pin_conflict() for each, surfacing FeatureViewPinConflict before feast apply runs. diff_registry_objects() — human-readable version display Added "version" to FIELDS_TO_IGNORE (excluded from generic spec field loop) Added a dedicated version display block that reads meta.current_version_number for the current state and spec.version for the desired state, producing output like: Updated feature_view driver_stats version: latest -> v2 (pin) Updated feature_view orders version: v1 (pin) -> latest Test plan TestCheckVersionPinConflict::test_latest_version_no_conflict — no-op for latest TestCheckVersionPinConflict::test_forward_declaration_no_conflict — pinning to a non-existent version (forward declaration) does not raise TestCheckVersionPinConflict::test_pin_no_schema_change_no_conflict — pinning to an existing version without schema change does not raise TestCheckVersionPinConflict::test_pin_with_schema_change_raises — pinning to an existing version while also changing schema raises FeatureViewPinConflict TestVersionDiffDisplay::test_no_version_change_no_version_diff — identical FVs produce no version property diff TestVersionDiffDisplay::test_pin_shows_in_diff — pinning shows "v1 (pin)" in declared value TestVersionDiffDisplay::test_unpin_shows_in_diff — unpinning shows "v1 (pin)" in existing value and "latest" in declared TestVersionDiffDisplay::test_plan_calls_pin_conflict_check — plan loop calls check_version_pin_conflict for each FV ruff format --check and ruff check — clean on all 4 modified files
Open Graph Description: Summary Closes #6104 Three gaps existed in the plan-mode versioning flow introduced by #6101: 1. FeatureViewPinConflict never raised during feast plan The conflict check (simultaneous version pin +...
X Description: Summary Closes #6104 Three gaps existed in the plan-mode versioning flow introduced by #6101: 1. FeatureViewPinConflict never raised during feast plan The conflict check (simultaneous version pin +...
Opengraph URL: https://github.com/feast-dev/feast/pull/6391
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3bce6f8e-622f-297d-429e-007cde49cb5a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9376:220E77:101321C:15D476B:6A5227E6 |
| html-safe-nonce | 1173a8905476d4370fedf00e7fee713e29e2b7fdfb1c0583d873f3c9be758924 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mzc2OjIyMEU3NzoxMDEzMjFDOjE1RDQ3NkI6NkE1MjI3RTYiLCJ2aXNpdG9yX2lkIjoiMjM2MjY2MjEzNDA4MzYyNjk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e3a228432e8adde0e62979bfeedb80ee05370a01b5fe1a4357ccdc3bf377ba2 |
| hovercard-subject-tag | pull_request:3654475343 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/feast-dev/feast/pull/6391/files |
| twitter:image | https://avatars.githubusercontent.com/u/87538407?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/87538407?s=400&v=4 |
| og:image:alt | Summary Closes #6104 Three gaps existed in the plan-mode versioning flow introduced by #6101: 1. FeatureViewPinConflict never raised during feast plan The conflict check (simultaneous version pin +... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width