-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Added configurable prefixes for Redis Tracker and Lock stores #6500
Added configurable prefixes for Redis Tracker and Lock stores #6500
Conversation
Thanks for submitting a pull request 🚀 @rgstephens will take a look at it as soon as possible ✨ |
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.
Thanks a lot for creating this PR! The change looks good overall. I'm not sure adding lock:
(tracker:
) is necessary if a prefix is provided
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
@bjbredis please let me know once this is ready for another review |
@bjbredis Bump |
Testing fixes Docs and test fix Docs Formatting Changelog added. Cleanup validation logic. Formatting Post-linting changes. Fixed a test. Comments only Update changelog/6498.improvement.md Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com> Update docs/docs/lock-stores.mdx Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com> Update data/test_endpoints/example_endpoints.yml Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Fix typo. Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
Co-authored-by: ricwo <20581300+ricwo@users.noreply.github.com>
@ricwo I tried to up-version my master to the rasa master in order to resubmit. in the process there are conflicts in my feature branch from my master. Can you have a look and let me know if the conflicts make sense and I should attempt to resolve, or alternatively the conflicts don't make sense and something else is needed. Thanks. |
hi @bjbredis, yes, the two conflicts in stored = self.red.get(sender_id) to stored = self.red.get(self.prefix + sender_id) |
…hub.com/bjbredis/rasa into add-prefix-redis-lockstore-trackerstore
Proposed changes:
Adding configurable prefixes to Redis Tracker and Lock stores so that a single Redis instance (and logical DB) can support multiple conversation trackers and lock.
All conversation keys will be prefixed with
tracker:...
and all locks prefixed withlock:...
. Additionally, you can specify alphanumeric-onlyprefix: value
inendpoints.yml
such that keys in redis will take the formvalue:tracker:...
andvalue:lock:...
respectively.#6498
Status (please check what you already did):
black