Skip to content

Commit bc800a2

Browse files
authored
feat: Workspace 300 (#170)
1 parent 4f127e5 commit bc800a2

File tree

8 files changed

+1287
-8
lines changed

8 files changed

+1287
-8
lines changed

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ cfl-common = "==8.9.6" # TODO: remove
3434
codeforlife-portal = "==8.9.6" # TODO: remove
3535
rapid-router = "==7.6.5" # TODO: remove
3636
phonenumbers = "==8.12.12" # TODO: remove
37+
google-auth = "==2.40.3"
38+
google-cloud-storage = "==3.4.0"
3739

3840
[dev-packages]
3941
celery-types = "==0.23.0"

Pipfile.lock

Lines changed: 147 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codeforlife/settings/custom.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,18 @@ def get_redis_url():
134134
"354656325390-o5n12nbaivhi4do8lalkh29q403uu9u4.apps.googleusercontent.com",
135135
)
136136
GOOGLE_CLIENT_SECRET = os.getenv("GOOGLE_CLIENT_SECRET", "REPLACE_ME")
137+
138+
# The ID of our GCP project.
139+
GOOGLE_CLOUD_PROJECT_ID = os.getenv(
140+
"GOOGLE_CLOUD_PROJECT_ID", "decent-digit-629"
141+
)
142+
143+
# The bucket on Google Cloud Storage used to export data to BigQuery and the
144+
# service account to impersonate which has access to the bucket.
145+
GOOGLE_CLOUD_STORAGE_BUCKET_NAME = os.getenv(
146+
"GOOGLE_CLOUD_STORAGE_BUCKET_NAME", "REPLACE_ME"
147+
)
148+
GOOGLE_CLOUD_STORAGE_SERVICE_ACCOUNT_NAME = (
149+
os.getenv("GOOGLE_CLOUD_STORAGE_SERVICE_ACCOUNT_NAME", "REPLACE_ME")
150+
+ f"@{GOOGLE_CLOUD_PROJECT_ID}.iam.gserviceaccount.com"
151+
)

codeforlife/tasks/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""
2+
© Ocado Group
3+
Created on 06/10/2025 at 17:14:31(+01:00).
4+
"""
5+
6+
from .data_warehouse import DataWarehouseTask
7+
from .utils import get_local_sqs_url, get_task_name, shared_task

0 commit comments

Comments
 (0)