Skip to content

fix url pass #289

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

Merged
merged 2 commits into from
Feb 21, 2025
Merged

fix url pass #289

merged 2 commits into from
Feb 21, 2025

Conversation

rbs333
Copy link
Collaborator

@rbs333 rbs333 commented Feb 21, 2025

There was a bug in from_existing where it was not passing the redis_url correctly because the var is named url
image

@@ -84,6 +84,17 @@ def test_search_index_from_existing(client, index):
assert index2.schema == index.schema


def test_search_index_from_existing_url(redis_url, index):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Most excellent

@@ -358,7 +358,7 @@ def _redis_client(self) -> Optional[redis.Redis]:
with self._lock:
if self.__redis_client is None:
self.__redis_client = RedisConnectionFactory.get_redis_connection(
url=self._redis_url,
redis_url=self._redis_url,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

personally I think we should always use redis_url vs url because it's more specific and that's what we tend to say when we do it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed

Copy link
Collaborator

Choose a reason for hiding this comment

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

yup

@rbs333 rbs333 merged commit 8c97668 into main Feb 21, 2025
36 checks passed
@rbs333 rbs333 deleted the bug/RAAE-679/passing_url branch February 21, 2025 22:10
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.

3 participants