-
Notifications
You must be signed in to change notification settings - Fork 6k
FQE-1719- Validate HubSpot Handler #11831
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
base: develop
Are you sure you want to change the base?
Conversation
|
🔒 Entelligence AI Vulnerability Scanner ✅ No security vulnerabilities found! Your code passed our comprehensive security analysis. |
Review Summary🏷️ Draft Comments (2)
🔍 Comments beyond diff scope (1)
|
Review Summary🏷️ Draft Comments (1)
|
Review Summary🏷️ Draft Comments (1)
|
|
🚀 Code Review Initiated The review process for this pull request has started. Our system is analyzing the changes for:
You will receive structured and actionable feedback shortly! ⏳ |
Review Summary🏷️ Draft Comments (3)
🔍 Comments beyond diff scope (1)
|
Review Summary🏷️ Draft Comments (1)
|
Review Summary🏷️ Draft Comments (2)
|
| companies = self.connection.crm.companies.get_all(limit=100) | ||
| return len(list(companies)) if companies else 0 | ||
| elif table_name == "contacts": | ||
| contacts = self.connection.crm.contacts.get_all(limit=100) |
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.
With limit=100 it will return max 100 for this value. May be use another endpoint? Here described Returns the total number of contacts in the account and the date of the last contact add.. The same for other tables.
| "MIN_VALUE": id_stats["min_value"], | ||
| "MAX_VALUE": id_stats["max_value"], |
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.
Could this information be misleading for the LLM? This stats is calculated basing only on piece of data, so min/max values - is not real min/max values
| try: | ||
| self.connect() | ||
|
|
||
| columns_data = self._get_columns_with_statistics(table_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.
| { | ||
| "COLUMN_NAME": "id", | ||
| "DATA_TYPE": "VARCHAR", | ||
| "IS_NULLABLE": False, | ||
| "COLUMN_DEFAULT": None, | ||
| "COLUMN_DESCRIPTION": "Unique identifier for the record (Primary Key)", | ||
| "IS_PRIMARY_KEY": True, | ||
| "IS_FOREIGN_KEY": False, | ||
| "NULL_COUNT": id_stats["null_count"], |
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.
Check methods meta_get_columns and meta_get_column_statistics from here to get required fields list
| logger = log.getLogger(__name__) | ||
|
|
||
|
|
||
| class HubspotHandler(APIHandler): |
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.
To work with data catalog, handler's class should be inherited from MetaApiHandler
Frontend PR --> #3285
Fixes FQE-1719
Type of change
Verification Process
To ensure the changes are working as expected:
Unit tests
Checklist: