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: seo service config #2517

Merged
merged 2 commits into from
Nov 11, 2024
Merged

fix: seo service config #2517

merged 2 commits into from
Nov 11, 2024

Conversation

chrismclarke
Copy link
Member

@chrismclarke chrismclarke commented Nov 9, 2024

PR Checklist

  • PR title descriptive (can be used in release notes)

Description

Fix issue where seo service fails to initialise if deployment does not have any app header config set

Dev Notes

The reason for the issue is that the seo-service was importing app config via the deployment config (which only includes config overrides), instead of app config service (which includes full merged config). So when accessing nested properties it would throw an error if no APP_HEADER_DEFAULTS had been overwritten.

Most deployments typically have app header overrides so would mostly go unnoticed, it was only when running the local deployment that the error was noticed. Searching the codebase this is the only service that I could see that tried to access app config in this way.

Git Issues

Closes #

Screenshots/Videos

Source code search for other services accessing app_config - only case is a comment in task-card component and the app-config service itself which handles merging full config values
image

Copy link
Collaborator

@jfmcquade jfmcquade left a comment

Choose a reason for hiding this comment

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

Good catch, looks good to me

@chrismclarke chrismclarke merged commit e08b52c into master Nov 11, 2024
6 checks passed
@chrismclarke chrismclarke deleted the fix/seo-service-config branch November 11, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants