-
Notifications
You must be signed in to change notification settings - Fork 102
Add support for exists on aliases. #1813
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
Conversation
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.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
f0f73b5 to
92feb90
Compare
weaviate/aliases/executor.py
Outdated
| try: | ||
| self.get(alias_name=alias_name) | ||
| return True | ||
| except Exception: |
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.
I think we should not catch all exceptions, for example when the client cannot connect or is unauthenticated this can be a footgun (which Daniel found out a couple of weeks ago: #1799)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1813 +/- ##
==========================================
- Coverage 87.27% 86.80% -0.48%
==========================================
Files 269 273 +4
Lines 18778 19059 +281
==========================================
+ Hits 16389 16544 +155
- Misses 2389 2515 +126 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d4fd5f0 to
b3dabec
Compare
It is quite useful to know if an alias is present on the system or not. Also, it is consistent with other classes which always contain an exists method.
b3dabec to
bdc6481
Compare
|
I've tested the changes by using the branch on the sim envs as well as the e2e tests and it's working like a charm. |
It is quite useful to know if an alias is present on the system or not. Also,
it is consistent with other classes which always contain an exists method.