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

Make Google Private Key accessible from the ENV. #6063

Merged
merged 8 commits into from
May 24, 2023

Conversation

orangewolf
Copy link
Member

This makes K8S deploys and dynamic configuration for Hyku easier.

@samvera/hyrax-code-reviewers

…ys and dynamic configuration for Hyku easier.
@orangewolf orangewolf force-pushed the allow_setting_analytics_key_by_value branch from 79e1782 to b080954 Compare May 16, 2023 23:28
@orangewolf orangewolf marked this pull request as ready for review May 16, 2023 23:28
app/services/hyrax/analytics/google.rb Outdated Show resolved Hide resolved
@orangewolf orangewolf force-pushed the allow_setting_analytics_key_by_value branch from d745ffc to d22e784 Compare May 17, 2023 05:52
app/services/hyrax/analytics/google.rb Outdated Show resolved Hide resolved
@alishaevn alishaevn force-pushed the allow_setting_analytics_key_by_value branch from 4b8ea4c to 1666cbd Compare May 18, 2023 19:17
@alishaevn alishaevn force-pushed the allow_setting_analytics_key_by_value branch from 3a2b15e to b82e3e7 Compare May 23, 2023 15:07
ENV['GOOGLE_OAUTH_APP_NAME'] = 'My App Name'
ENV['GOOGLE_OAUTH_APP_VERSION'] = '0.0.1'
ENV['GOOGLE_OAUTH_PRIVATE_KEY_PATH'] = '/tmp/privkey.p12'
ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] = ''
Copy link
Contributor

Choose a reason for hiding this comment

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

added this line. the rest of the env changes are unifying them with single quotes.

@alishaevn
Copy link
Contributor

each pipeline is failing for the same 2 specs in "spec/lib/hyrax/analytics_spec.rb". those specs are passing locally for me however. may need to check in on the state of circle ci tomorrow per @dlpierce's comment.

image

@aprilrieger aprilrieger merged commit b260196 into main May 24, 2023
@aprilrieger aprilrieger deleted the allow_setting_analytics_key_by_value branch May 24, 2023 23:04
@dlpierce dlpierce added the notes-minor Release Notes: Non-breaking features label May 30, 2023
alishaevn added a commit to samvera/hyku that referenced this pull request Jun 15, 2023
we are using a hyrax version that does not include the code from samvera/hyrax#6063. we can remove this file once that code has been included in another hyrax release and we are using that release version, or higher.
dlpierce added a commit that referenced this pull request Jun 15, 2023
dlpierce added a commit that referenced this pull request Jun 23, 2023
Backport #6063 (Google privkey in ENV) to 3.x
dlpierce pushed a commit that referenced this pull request Jul 25, 2023
add priv key from env for GA 4. Copies #6063 to the new GA4 code
orangewolf added a commit that referenced this pull request Jul 26, 2023
* add priv key from env for GA 4. Copies #6063 to the new GA4 code
@jeremyf jeremyf mentioned this pull request Aug 28, 2023
orangewolf added a commit that referenced this pull request May 17, 2024
* add priv key from env for GA 4. Copies #6063 to the new GA4 code
orangewolf added a commit that referenced this pull request May 17, 2024
differentiate between collecting and reporting google analytics.
dlpierce added a commit that referenced this pull request May 24, 2024
* Google Analytics 4 reporting support

* add priv key from env for GA 4 (#6107)

* add priv key from env for GA 4. Copies #6063 to the new GA4 code

* add priv key from env for GA 4. Copies #6063 to the new GA4 code
differentiate between collecting and reporting google analytics.

* clean up merge

* remove ga4 bleed over from this pr

---------

Co-authored-by: Daniel Pierce <dlpierce@indiana.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-minor Release Notes: Non-breaking features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants