Skip to content
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

Push Connection Factory setting to options #620

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vedantpuri
Copy link

Proposal for #619

Comment on lines 62 to 68
# First check if local override provided, else fall back to settings
connection_factory_path = self._options.get(
"CONNECTION_FACTORY",
settings.get(
"DJANGO_REDIS_CONNECTION_FACTORY", "django_redis.pool.ConnectionFactory"
),
)
Copy link
Author

Choose a reason for hiding this comment

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

For backwards compatibility

Copy link
Member

Choose a reason for hiding this comment

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

there is not only 'defaultClient'

Copy link
Author

@vedantpuri vedantpuri Oct 21, 2022

Choose a reason for hiding this comment

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

I didn't follow this comment, could you elaborate ?

Copy link
Author

Choose a reason for hiding this comment

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

Following up on this if you could clarify a bit further

Copy link
Member

Choose a reason for hiding this comment

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

sorry for the late reply, I mean that there is not only DefaultClient but also others... but now I see that others all use connection factory of the parent class which is DefaultClient

Copy link
Member

@WisdomPill WisdomPill Jan 22, 2023

Choose a reason for hiding this comment

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

Also why moving this logic to DefaultClient? it makes testing more difficult... please move it back, add tests and changelog file

Copy link
Member

@WisdomPill WisdomPill left a comment

Choose a reason for hiding this comment

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

There is not only DefaultClient and testing is needed

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