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-clause-to-account-settings-for-google_analytics_id #1845

Merged

Conversation

aprilrieger
Copy link
Collaborator

@aprilrieger aprilrieger commented Sep 25, 2022

Adds a check for the presence of the google_analytics_id. In a staging environment, if the google_analytics_id was not available we would receive a routing error for the partials in the admin dashboard locally. I also saw errors in my local logs when account_settings.rb would use the method, reload_library_config, on the step of config.google_analytics_id = google_analytics_id it didn't matter if google_analytics_id.present? or not, the application would need to look in the analytics.yml file which is commented out, and throws an error. In a staging or production environment it gets caught in the hyrax step of the web deployment process.

Error:

Block in reload_library_config at /app/samvera/hyrax-webapp/app/models/concerns/account_settings.rb:160
Unable to fetch any keys from /app/samvera/hyrax-webapp/config/analytics.yml

Logs are attached from hyku-demo's staging instance with an error preventing the hyrax stage of the web container during the deployment process. This error is preventing the deployment from completing.
hyku-demo-hyrax-577d7b66b9-f265x_hyrax.log

I also am not quick enough to get the file updated live on the server during the deployment process, I only have 30~ish seconds until the pod disconnects. But did test it locally to ensure the errors didn't show in the logs.

April Rieger and others added 3 commits September 25, 2022 10:43
…g environment, if the google_analytics_id was not available we would receive a routing error for the partials in the admin dashboard. I also saw errors in my local logs but I didn't discover them till I was looking closely. When account_settings.rb would use the method, reload_library_config, it didn't matter if google_analytics_id.present? or not, the application would need to look in the analytics.rb file which is commented out, which throws an error and doesnt allow us the ability to deploy in a staging environment without Google analytics being setup
@orangewolf orangewolf merged commit b7d9d0f into main Nov 18, 2022
@orangewolf orangewolf deleted the add-clause-to-account-settings-for-google_analytics_id branch November 18, 2022 20:16
@bkiahstroud bkiahstroud added the patch-ver for release notes label Feb 1, 2023
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.

3 participants