-
Notifications
You must be signed in to change notification settings - Fork 88
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
default to no pagination #232
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.
👍 Looks good to me! Reviewed everything up to 63e7511 in 34 seconds
More details
- Looked at
153
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. graphiti_core/edges.py:166
- Draft comment:
Using string concatenation to build SQL queries can lead to SQL injection vulnerabilities. Consider using parameterized queries or a query builder to safely construct queries. This issue is also present in other similar methods in this file and ingraphiti_core/nodes.py
. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. graphiti_core/edges.py:142
- Draft comment:
The logic for handling 'limit' and 'created_at' parameters in the 'get_by_group_ids' method is repeated across multiple classes. Consider refactoring this into a shared utility function to adhere to the DRY principle. This is also applicable in other similar methods in this file and innodes.py
. - Reason this comment was not posted:
Confidence changes required:80%
The code has multiple instances of similar logic for handling the 'limit' and 'created_at' parameters in the 'get_by_group_ids' methods across different classes. This violates the DRY principle.
3. graphiti_core/nodes.py:212
- Draft comment:
The logic for handling 'limit' and 'created_at' parameters in the 'get_by_group_ids' method is repeated across multiple classes. Consider refactoring this into a shared utility function to adhere to the DRY principle. This is also applicable in other similar methods in this file and inedges.py
. - Reason this comment was not posted:
Confidence changes required:80%
The code has multiple instances of similar logic for handling the 'limit' and 'created_at' parameters in the 'get_by_group_ids' methods across different classes. This violates the DRY principle.
Workflow ID: wflow_5M9bJdY7ppA4g7aU
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on fd729bc in 15 seconds
More details
- Looked at
27
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. graphiti_core/edges.py:30
- Draft comment:
Unused importDEFAULT_PAGE_LIMIT
removed. Ensure that this change is consistent with the intended behavior of removing default query limits. - Reason this comment was not posted:
Confidence changes required:10%
The PR description indicates that the default pagination limit is set toNone
inget_by_group_ids
methods acrossedges.py
andnodes.py
. The import ofDEFAULT_PAGE_LIMIT
is removed, which is consistent with this change.
2. graphiti_core/nodes.py:31
- Draft comment:
Unused importDEFAULT_PAGE_LIMIT
removed. Ensure that this change is consistent with the intended behavior of removing default query limits. - Reason this comment was not posted:
Confidence changes required:10%
The PR description indicates that the default pagination limit is set toNone
inget_by_group_ids
methods acrossedges.py
andnodes.py
. The import ofDEFAULT_PAGE_LIMIT
is removed, which is consistent with this change.
Workflow ID: wflow_YvfhdareV1QOImLe
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Set default pagination limit to
None
inget_by_group_ids
methods inedges.py
andnodes.py
, removing default query limits.None
inget_by_group_ids
methods inedges.py
andnodes.py
.LIMIT $limit
only iflimit
is specified.get_by_group_ids
inEpisodicEdge
,EntityEdge
,CommunityEdge
inedges.py
.get_by_group_ids
inEpisodicNode
,EntityNode
,CommunityNode
innodes.py
.DEFAULT_PAGE_LIMIT
import fromedges.py
andnodes.py
.This description was created by for fd729bc. It will automatically update as commits are pushed.