Commit b82af21
fix(graph_dbs): add missing status parameter to Neo4jCommunityGraphDB… (#1179)
fix(graph_dbs): add missing status parameter to Neo4jCommunityGraphDB.get_by_metadata
The get_by_metadata method in neo4j_community.py was missing the `status`
parameter that exists in the base class and other implementations (neo4j.py,
postgres.py). This caused "unexpected keyword argument 'status'" errors when
the search API tried to filter by status.
Changes:
- Add `user_name_flag: bool = True` parameter for consistency
- Add `status: str | None = None` parameter
- Add status filter logic in WHERE clause when status is provided
- Update log messages to include status parameter
Fixes search functionality when using Neo4j Community Edition backend.
Co-authored-by: ariesshen <ariesshen@ariesshendeMac.local>
Co-authored-by: CaralHsi <caralhsi@gmail.com>1 parent 6d2d965 commit b82af21
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
724 | 726 | | |
725 | 727 | | |
726 | 728 | | |
| |||
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
748 | | - | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | | - | |
| 753 | + | |
752 | 754 | | |
753 | 755 | | |
754 | 756 | | |
755 | 757 | | |
756 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
757 | 764 | | |
758 | 765 | | |
759 | 766 | | |
| |||
0 commit comments