-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
add username in RedisLockStore #12822
add username in RedisLockStore #12822
Conversation
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.
LGTM
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.
Can we please add unit testing and if possible integration testing for the connection with a username?
@@ -200,6 +200,7 @@ def __init__( | |||
host: Text = "localhost", | |||
port: int = 6379, | |||
db: int = 1, | |||
username: Optional[Text] = None, |
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.
How is this property extracted from yaml? Double-checking we don't need to do something else there?
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'm guessing that I'll have to add a line for username
in endpoints.yml and it should work. However I'll do a quick test with docker compose and a testbot.
Once that works out I plan to also add unit tests. I didn't think about integration tests yet but if it doesn't take long -- I'll be sure to add that too.
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'll have to add a line for username in endpoints.yml
Yep, exactly 👍🏻
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.
@ancalita added an integration test. It doesn't look like unit test will be possible with our given testing setup
Closing this PR in favor of #12835 |
🚀 A preview of the docs have been deployed at the following URL: https://12822--rasahq-docs-rasa-v2.netlify.app/docs/rasa |
Proposed changes:
username
to the connection arguments ofRedisLockStore
Status (please check what you already did):
black
(please check Readme for instructions)