-
Notifications
You must be signed in to change notification settings - Fork 996
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
Make sure FeatureViews with same name can not be applied at the same … #1651
Make sure FeatureViews with same name can not be applied at the same … #1651
Conversation
Hi @tedhtchang. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
sdk/python/feast/feature_store.py
Outdated
@@ -220,7 +220,17 @@ def apply( | |||
objects = [objects] | |||
assert isinstance(objects, list) | |||
|
|||
views_to_update = [ob for ob in objects if isinstance(ob, FeatureView)] | |||
views_to_update = [] | |||
view_name_list = [] |
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.
Perhaps simpler to use a dict?
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.
Or a set
Codecov Report
@@ Coverage Diff @@
## master #1651 +/- ##
==========================================
+ Coverage 79.08% 79.21% +0.12%
==========================================
Files 80 81 +1
Lines 6855 6994 +139
==========================================
+ Hits 5421 5540 +119
- Misses 1434 1454 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ecb2657
to
2cdf83c
Compare
@tedhtchang from a readability standpoint, would you be able to pull out this validation into standalone function? Perhaps something like
|
2cdf83c
to
c3c700b
Compare
@tedhtchang can we add a test? Other than that and DCO, the change looks good to me. |
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.
waiting on tests
c3c700b
to
f231d8a
Compare
5f89216
to
e338738
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.
/lgtm
e338738
to
5a1f0e4
Compare
5a1f0e4
to
d6a1fd5
Compare
2bbbc44
to
083447a
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, tedhtchang, woop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
…time Signed-off-by: ted chang <htchang@us.ibm.com>
Signed-off-by: ted chang <htchang@us.ibm.com>
Signed-off-by: ted chang <htchang@us.ibm.com>
Co-authored-by: Willem Pienaar <6728866+woop@users.noreply.github.com> Signed-off-by: ted chang <htchang@us.ibm.com>
Signed-off-by: ted chang <htchang@us.ibm.com>
837a23a
to
1baa0ee
Compare
/lgtm |
What this PR does / why we need it:
Make sure FeatureViews with same name can not be applied at the same time.
Which issue(s) this PR fixes:
Fix #1625
Does this PR introduce a user-facing change?: