-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use set when parsing repos to prevent duplicates #1913
Conversation
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
sdk/python/feast/entity.py
Outdated
@@ -78,7 +74,8 @@ def __init__( | |||
self._created_timestamp: Optional[datetime] = None | |||
self._last_updated_timestamp: Optional[datetime] = None | |||
|
|||
self.defined_in = get_calling_file_name(inspect.stack()) | |||
def __hash__(self) -> int: | |||
return hash(self.name) |
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.
How would we detect and raise an exception when users provide two objects with the same name that are different?
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.
My earlier comments completely misunderstood your point -fixing using id()
.
…the same name Signed-off-by: Achal Shah <achals@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1913 +/- ##
==========================================
+ Coverage 82.85% 82.95% +0.10%
==========================================
Files 96 96
Lines 7360 7359 -1
==========================================
+ Hits 6098 6105 +7
+ Misses 1262 1254 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Achal Shah <achals@gmail.com>
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, MattDelac 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 |
sdk/python/tests/integration/registration/test_cli_apply_duplicated_featureview_names.py
Show resolved
Hide resolved
Signed-off-by: Achal Shah <achals@gmail.com>
sdk/python/tests/integration/registration/test_cli_apply_duplicated_featureview_names.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah achals@gmail.com
What this PR does / why we need it:
#1905 didn't solve the problem - so this is a simpler approach that is probably more robust.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: