-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: Centralize feature view object lookup #5898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor: Centralize feature view object lookup #5898
Conversation
b1ed05c to
20d5920
Compare
20d5920 to
256012d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the codebase by centralizing the repeated logic for resolving feature view-like names (FeatureView, OnDemandFeatureView, StreamFeatureView) into shared utility functions, reducing code duplication and improving maintainability.
Changes:
- Added two new helper functions in
feature_view_utils.pyfor centralized feature view lookup - Updated
feature_server.pyto use the new centralized lookup function - Updated
feature_logging.pyto use the new centralized lookup function
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| sdk/python/feast/feature_view_utils.py | Added get_feast_object_from_feature_store and get_feast_object_from_registry helper functions |
| sdk/python/feast/feature_server.py | Replaced duplicated try/except lookup logic with call to get_feast_object_from_feature_store |
| sdk/python/feast/feature_logging.py | Replaced duplicated try/except lookup logic with call to get_feast_object_from_registry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
256012d to
5f3a571
Compare
Signed-off-by: antznette1 <Ochiezeanthonette@gmail.com>
5f3a571 to
dd5c9af
Compare
##Summary
This PR centralizes the repeated logic used to resolve a “feature view-like” name into the correct Feast object type:
Previously, this lookup pattern was duplicated across multiple Python SDK/server components.
What changed
Motivation
Notes / Testing
Local sanity check: python -m compileall on the modified files.