Skip to content

Fix --include filter in list-entities command#41

Merged
boringdata merged 1 commit intomainfrom
fix-include-filter-list-entities
Nov 22, 2025
Merged

Fix --include filter in list-entities command#41
boringdata merged 1 commit intomainfrom
fix-include-filter-list-entities

Conversation

@dkrevitt
Copy link
Collaborator

Fixed bug where --include pattern filter wasn't working for kurt content list-entities command.

The issue was a type mismatch: document IDs were being stored as UUID objects in entity_docs but converted to strings when filtering, causing the set intersection to always be empty.

Changed line 329 from str(d.id) to d.id to keep UUIDs as UUID objects for proper set intersection.

Now --include filtering works correctly:

  • kurt content list-entities topic --include "/article/"
  • kurt content list-entities all --include "/article/how-do-you-train"

🤖 Generated with Claude Code

Fixed bug where --include pattern filter wasn't working for kurt content list-entities command.

The issue was a type mismatch: document IDs were being stored as UUID objects in entity_docs but converted to strings when filtering, causing the set intersection to always be empty.

Changed line 329 from `str(d.id)` to `d.id` to keep UUIDs as UUID objects for proper set intersection.

Now --include filtering works correctly:
- kurt content list-entities topic --include "*/article/*"
- kurt content list-entities all --include "*/article/how-do-you-train*"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dkrevitt dkrevitt requested a review from boringdata November 22, 2025 13:47
@boringdata boringdata merged commit f678a93 into main Nov 22, 2025
2 checks passed
boringdata pushed a commit that referenced this pull request Nov 25, 2025
Resolved conflict: src/kurt/db/knowledge_graph.py was split into modules
in this branch (graph_entities.py, graph_queries.py, graph_resolution.py,
graph_similarity.py). The fix from main (PR #41) was already applied in
commit ee3bb00 before the refactoring, so keeping our refactored version.
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