-
Notifications
You must be signed in to change notification settings - Fork 79
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
Detect plugins for Index and IndexGRPC classes #402
Conversation
from ..utils import ( | ||
setup_openapi_client, | ||
parse_non_empty_args, | ||
build_plugin_setup_client, | ||
validate_and_convert_errors, | ||
) | ||
from .features.bulk_import import ImportFeatureMixin |
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.
Most of these import changes are just cosmetic
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 and makes sense. I'll take the dev build and get it tested with a plugin before we merge and move on, but thanks for getting this together.
# try block just in case to make sure a bad plugin doesn't | ||
# halt client initialization. | ||
openapi_client_builder = build_plugin_setup_client( | ||
config=self.config, |
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 this needs to be self._config
. Currently seeing this error when it attempts to apply plugins to Index
:
ERROR pinecone.data.index:index.py:129 Error loading plugins in Index: 'Index' object has no attribute 'config'
…e python-plugin-interface expects that field on target
32a999b
to
90df955
Compare
Problem
Plugins not detected for Index/IndexGRPC classes
Solution
Pinecone
andPineconeGRPC
classes.Type of Change
Test Plan
To really validate this will probably require making a dev build release and installing alongside some actual plugins.