-
Notifications
You must be signed in to change notification settings - Fork 64
fix: Improve filtering for find_entity_by_name tool #217
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
Conversation
fb07eb7 to
bd567fb
Compare
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.
Pull Request Overview
This PR fixes a bug in the find_entity_by_name tool where the filtering logic was accidentally removing valid entities instead of invalid ones when using the classic entities API fallback.
Key Changes:
- Corrected the entity property names in the filter condition from
entity.type/entity.nametoentity['entity.type']/entity['entity.name'] - Added console logging to track the filtering process
- Updated CHANGELOG.md to document the bug fix
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/index.ts | Fixed filter condition to use correct property names (entity['entity.type'] and entity['entity.name']) and added debug logging |
| CHANGELOG.md | Documented the bug fix in the unreleased changes section |
MrManny
left a comment
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.
Probably needs a little fix-up, unless I misunderstood the code
f3afcd1 to
ad19ea3
Compare
ad19ea3 to
4f30b81
Compare
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
MrManny
left a comment
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.
Copilot's complaints aside, I think this is gucci. Probably don't need the String(entity.id) later, but it never hurts.
we accidentally filtered out the "good" ones for the fallback.

Fixed:
