Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Story
HYRAX_ANALYTICS=true
is still set in the staging and prod environments so that the client doesn't miss any tracking. therefore, all the analytics partials still try to load. although the config got set initially, once we went through the hyku account settings, each config property was set to an empty string. so when the dashboard tried to load the user graph, the config was invalid.we need for the app to still be able to read from the env variables, (old way) while also setting some defaults in the account settings. (new way) (e.g., adding fallbacks in #reload_analytics). the values won't show up in the ui though, so the client can still set them individually. the changes in this pr will be removed in #487 so that we are only using the "per tenant" approach.
as background: this change was also necessary because of the changes made to Hyrax::Analytics::Google#valid?. the method changes are better because we should be checking for the presence of values, not just keys. however, that's what caused us to need a fallback for our new settings fields.
Refs:
Expected Behavior Before Changes
Expected Behavior After Changes