Skip to content
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

Fix temporal invalidation unit tests #23

Merged
merged 15 commits into from
Aug 22, 2024
Merged

Conversation

paul-paliychuk
Copy link
Collaborator

@paul-paliychuk paul-paliychuk commented Aug 22, 2024

🚀 This description was created by Ellipsis for commit dd04725

Summary:

Enhanced unit tests to handle EpisodicNode in prepare_invalidation_context, ensuring correct episode processing.

Key points:

  • Enhanced unit tests in tests/utils/maintenance/test_temporal_operations.py.
  • Added EpisodicNode handling in prepare_invalidation_context.
  • Updated test_prepare_invalidation_context to include current_episode and previous_episodes.
  • Added assertions for current_episode and previous_episodes.
  • Ensured correct episode processing in prepare_invalidation_context.
  • Verified episode content and order in tests.

Generated with ❤️ by ellipsis.dev

paul-paliychuk and others added 13 commits August 21, 2024 17:43
…from-context

# Conflicts:
#	core/graphiti.py
#	core/utils/maintenance/node_operations.py
…from-context

# Conflicts:
#	core/graphiti.py
#	core/prompts/dedupe_edges.py
#	core/prompts/invalidate_edges.py
#	core/utils/bulk_utils.py
#	core/utils/maintenance/edge_operations.py
#	core/utils/maintenance/node_operations.py
#	core/utils/maintenance/temporal_operations.py
#	core/utils/search/search_utils.py
#	runner.py
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 82a5731 in 7 seconds

More details
  • Looked at 138 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. tests/utils/maintenance/test_temporal_operations.py:116
  • Draft comment:
    Consider using the create_test_data helper function to set up nodes and edges for consistency and to reduce code duplication.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The test functions are not using the helper function create_test_data consistently. This can lead to code duplication and inconsistency in test data setup.

Workflow ID: wflow_ynBDn6Uf86vzWwcW


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 868215c in 27 seconds

More details
  • Looked at 92 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_T6db4QMkfvrPRo26


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Incremental review on dd04725 in 14 seconds

More details
  • Looked at 15 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_RZfITvHe4oyvZpyO


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@paul-paliychuk paul-paliychuk merged commit 8a55f48 into main Aug 22, 2024
4 of 5 checks passed
@paul-paliychuk paul-paliychuk deleted the extract-dates-from-context branch August 22, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants