-
Notifications
You must be signed in to change notification settings - Fork 50
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
Ag/notion source update #242
Conversation
sources/notion/helpers/client.py
Outdated
@@ -151,3 +151,14 @@ def search( | |||
next_cursor = response.get("next_cursor") | |||
has_more = next_cursor is not None | |||
start_cursor = next_cursor | |||
|
|||
def get_database(self, database_id: str) -> Dict[str, Any]: |
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.
linter failed. change Dict[str, Any] to Any.
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.
the rest looks good, well done))
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.
don't forget to edit docstring
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.
Changes done. Please see.
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.
PR passed the checks @AstrakhantsevaAA 👍 please review. Thanks
Tell us what you do here
verified source
)Relevant issue
issue # 241
More PR info
This PR addresses the issue where the Notion pipeline expects both id and use_name when fetching data from custom databases. Previously, omitting use_name would lead to a KeyError.
Changes made:
If use_name is not provided, the pipeline will now automatically retrieve it from Notion. For example, if the input is:
This not only prevents the aforementioned error but also improves the user experience, making the pipeline a bit more user-friendly and intuitive.
Users can also give input as:
Please review and let me know if there are any additional changes needed.