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

add username in RedisLockStore #12822

Closed

Conversation

vcidst
Copy link
Contributor

@vcidst vcidst commented Sep 18, 2023

Proposed changes:

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@vcidst vcidst requested a review from a team as a code owner September 18, 2023 13:04
@vcidst vcidst requested review from a team and Urkem and removed request for a team September 18, 2023 13:05
Copy link
Contributor

@Urkem Urkem left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ancalita ancalita left a 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,
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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 👍🏻

Copy link
Contributor Author

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

@vcidst vcidst requested a review from ancalita September 20, 2023 10:26
@vcidst
Copy link
Contributor Author

vcidst commented Sep 20, 2023

Closing this PR in favor of #12835

@vcidst vcidst closed this Sep 20, 2023
@github-actions
Copy link
Contributor

🚀 A preview of the docs have been deployed at the following URL: https://12822--rasahq-docs-rasa-v2.netlify.app/docs/rasa

@vcidst vcidst deleted the ATO-1520-add-username-as-a-parameter-for-redis-components branch September 21, 2023 14:27
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