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

fix: make redis_prefix static config #947

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

Alex-Izquierdo
Copy link
Collaborator

Follow up #897
and #926

As per internal discussions, we agreed to make the redis_prefix a static configuration. Using the service_id as the redis_prefix is problematic because the value is obtained from the database after migrations, but we need it during the early initialization of the application. This reverses the expected order of startup dependencies and causes problems with commands that should not require a DB connection, such as "collectstatic". Additionally, a meaningless prefix makes debugging much more difficult.

EDA is the only component following this pattern, with this PR it is in line with other components where the prefix is a static setting.

Internal ref: https://redhat-internal.slack.com/archives/C06S8Q06AB0/p1718889268198969?thread_ts=1717425927.035389&cid=C06S8Q06AB0

Signed-off-by: Alex <aizquier@redhat.com>
@Alex-Izquierdo Alex-Izquierdo requested a review from a team as a code owner June 20, 2024 14:22
@Alex-Izquierdo Alex-Izquierdo requested review from bzwei and hsong-rh June 20, 2024 14:22
Signed-off-by: Alex <aizquier@redhat.com>
bzwei
bzwei previously approved these changes Jun 20, 2024
Signed-off-by: Alex <aizquier@redhat.com>
@Alex-Izquierdo Alex-Izquierdo merged commit 3b12a93 into ansible:main Jun 20, 2024
4 checks passed
@Alex-Izquierdo Alex-Izquierdo deleted the static-redis-prefix branch June 20, 2024 15:12
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