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

🎁 Upgrade Redis initializer to Hyrax 5's gen version #2093

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Dec 20, 2023

Prior to this commit, when looking at the
Hyrax::RedisEventStore.instance we saw it's connection information as:

#<Redis client v4.8.1 for redis://localhost:6379/0>

We were expecting the connection to be the following:

#<Redis client v4.8.1 for redis://redis:6379/0>

What we were seeing in tests is when we hit the redis connection we were
getting an error about not being able to connect to 127.0.0.1:6379 (e.g.
localhost).

With this commit, we have a clear connection to Redis.

See Redis Config initializer:

Co-authored-by: Kirk Wang [email protected]

Prior to this commit, when looking at the
`Hyrax::RedisEventStore.instance` we saw it's connection information as:

`#<Redis client v4.8.1 for redis://localhost:6379/0>`

We were expecting the connection to be the following:

`#<Redis client v4.8.1 for redis://redis:6379/0>`

What we were seeing in tests is when we hit the redis connection we were
getting an error about not being able to connect to 127.0.0.1:6379 (e.g.
localhost).

With this commit, we have a clear connection to Redis.

See Redis Config initializer:

- https://github.com/samvera/hyrax/blob/966951ffaa72524e4a775f8a198bd51a47ece7d9/lib/generators/hyrax/templates/config/initializers/redis_config.rb#L1-L10

Co-authored-by: Kirk Wang <[email protected]>
@kirkkwang kirkkwang added the patch-ver for release notes label Dec 20, 2023
@jeremyf jeremyf merged commit 7cd50e0 into hyrax-5-upgrade Dec 20, 2023
2 of 4 checks passed
@jeremyf jeremyf deleted the hyrax-5-redis-connection branch December 20, 2023 21:32
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants