-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Integration]: Serpstack api integration #9381
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Hi @ZoranPandovski, there seems to be the following test that is failing but am unsure of what to do on my end to resolve it. If possible, could you give me some guidance on how to go about resolving it? |
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.
Thanks @andersooi , don't worry about that failing action. I've added few minor comments
raise ValueError('Query is missing in the SQL query') | ||
if 'type' not in params and hasattr(self, 'default_type'): | ||
params['type'] = self.default_type | ||
api_response = requests.get(self.handler.base_url, params=params) |
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.
Can we check for exceptions here?
""" | ||
raise NotImplementedError("Subclasses must implement this method.") | ||
|
||
def filter_columns(self, result: pd.DataFrame, query: ast.Select = None): |
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.
Can we add a comments about what this does?
response = StatusResponse(False) | ||
|
||
try: | ||
self.connect() |
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.
Maybe we don't need to call connect again but simply make a health-check request to serpstack?
Description
Created an integration for Serpstack API
Fixes #5641
Type of change
Verification Process
To ensure the changes are working as expected:
Additional Media:
Loom Recording
Checklist: