Skip to content

Commit

Permalink
fix: trying to fix configbuilder CF error
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanBergenov committed Nov 2, 2023
1 parent feaea4d commit 25a64bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
pip install -r cf/requirements.txt
pip install -r cfintraday/requirements.txt
pip install -r cfconfigbuilder/requirements.txt
pip install -r cfconfigbuilderps/requirements.txt
pip install -r cfintradaysqlview/requirements.txt
pip install -r tests/requirements-test.txt
- name: Lint with flake8
Expand Down
6 changes: 5 additions & 1 deletion cfconfigbuilder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import os
import logging

from flask import make_response, jsonify

class FlattenerDatasetConfigStorage(object):
def __init__(self):
Expand Down Expand Up @@ -217,3 +217,7 @@ def build_ga_flattener_config(request):
json_config = config.add_intraday_params_into_config(json_config)
store.upload_config(config=json_config) # upload config file to GCS bucket
logging.info(f"build_ga_flattener_config: {json.dumps(json_config)}")

# Return a JSON response with a success message
response_data = {"message": "Configuration has been built and uploaded successfully."}
return make_response(jsonify(response_data), 200)
3 changes: 2 additions & 1 deletion cfconfigbuilder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
google-api-python-client~=2.106.0
google-cloud-storage~=2.13.0
google-cloud-bigquery~=3.13.0
google-cloud-bigquery~=3.13.0
flask~=3.0.0

0 comments on commit 25a64bb

Please sign in to comment.