Closed swilly22 closed 2 months ago
The modifications to the from_url
method in the FalkorDB
class involve a significant update in how the instance is created. The method now extracts connection parameters from the Redis connection pool for initializing the FalkorDB
instance, enhancing configurability. Additionally, the logic for handling sentinel connections has been streamlined to focus on these updated parameters.
Files | Change Summary |
---|---|
falkordb/falkordb.py |
Updated from_url method to initialize FalkorDB with connection parameters from Redis, removing the previous instance creation logic and streamlining sentinel connection handling. |
tests/test_async_indices.py , tests/test_indices.py |
Adjusted the assignment of entity_type from raw_response[5] to raw_response[6] in class constructors to reflect changes in data structure. |
tests/test_db.py |
Added a new test case to verify connection to FalkorDB using a simplified URL format. |
Objective | Addressed | Explanation |
---|---|---|
from_url wrongly initialize the underline connection (#53) | ✅ |
In the burrow, I hop with glee,
New connections flow so free!
Parameters dance, all set right,
FalkorDB shines, a joyful sight!
With every change, we leap and bound,
In the code, sweet harmony found! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.37%. Comparing base (
4c58167
) to head (95b75df
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Resolves #53
Summary by CodeRabbit
New Features
Bug Fixes
entity_type
attribute to reflect changes in the expected structure of theraw_response
data.