-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
base: master
Are you sure you want to change the base?
Push Connection Factory setting to options #620
Conversation
django_redis/client/default.py
Outdated
# 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" | ||
), | ||
) |
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.
For backwards compatibility
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.
there is not only 'defaultClient'
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.
I didn't follow this comment, could you elaborate ?
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.
Following up on this if you could clarify a bit further
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.
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
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.
Also why moving this logic to DefaultClient
? it makes testing more difficult... please move it back, add tests and changelog file
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.
There is not only DefaultClient
and testing is needed
Proposal for #619