tl-its-umich-edu / my-learning-analytics

My Learning Analytics (MyLA)
Apache License 2.0
36 stars 39 forks source link

Support also configuring BigQuery in JSON #1575

Open jonespm opened 2 months ago

jonespm commented 2 months ago

Thank you for contributing to this project!

Describe your problem or feature you'd like added

For the BigQuery config in the cron we rely on the bigquery defined in a JSON file referenced in the environment.

GOOGLE_APPLICATION_CREDENTIALS=/secrets/bq_cred.json

However in the latest versions of the library, we can also pull the settings from the main config instead:

self.bigquery_client = bigquery.Client.from_service_account_json(settings.BIGQUERY_SERVICE_ACCOUNT_JSON)

This might simply the setup a little bit. The old method should still work.