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

community[patch]: improve test setup to accurately test filtering of labels in neo4j #22531

Conversation

leila-messallem
Copy link
Contributor

Description: This PR addresses an issue with an existing test that was not effectively testing the intended functionality. The previous test setup did not adequately validate the filtering of the labels in neo4j, because the nodes and relationship in the test data did not have any properties set. Without properties these labels would not have been returned, regardless of the filtering.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
This commit updates the test data so that the test correctly exercises the functionality and provides meaningful validation.
Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2024 8:21am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🔌: neo4j Primarily related to Neo4j integrations 🤖:improvement Medium size change to existing code to handle new use-cases labels Jun 5, 2024
Add a space between the label/type and the property map

Co-authored-by: Oskar Hane <oh@oskarhane.com>
Copy link
Contributor

@oskarhane oskarhane left a comment

Choose a reason for hiding this comment

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

LGTM

@eyurtsev eyurtsev changed the title community: improve test setup to accurately test filtering of labels in neo4j community[patch]: improve test setup to accurately test filtering of labels in neo4j Jun 5, 2024
@eyurtsev eyurtsev enabled auto-merge (squash) June 5, 2024 15:51
@eyurtsev eyurtsev self-assigned this Jun 5, 2024
@eyurtsev eyurtsev merged commit 3280a5b into langchain-ai:master Jun 5, 2024
42 checks passed
hinthornw pushed a commit that referenced this pull request Jun 20, 2024
…labels in neo4j (#22531)

**Description:** This PR addresses an issue with an existing test that
was not effectively testing the intended functionality. The previous
test setup did not adequately validate the filtering of the labels in
neo4j, because the nodes and relationship in the test data did not have
any properties set. Without properties these labels would not have been
returned, regardless of the filtering.

---------

Co-authored-by: Oskar Hane <oh@oskarhane.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases 🔌: neo4j Primarily related to Neo4j integrations size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants