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

Promote from BLAIS5-4260 to main #194

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ def delete_old_call_history(_event, _context):
call_history_client.delete_historical_call_history()


def upload_call_history(_event, _context):
def upload_call_history(request):
print("Running Cloud Function - upload_call_history")
config = Config.from_env()
config.log()
datastore_client = datastore.Client()
call_history_client = CallHistoryClient(datastore_client, config)
call_history_client.call_history_extraction_process()
return "Done"


def deliver_mi_hub_reports_trigger(_event, _context):
Expand Down
4 changes: 3 additions & 1 deletion tests/data_sources/test_datastore_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def test_get_cati_call_history(mock_get_cati_call_history_from_database):
def test_filter_out_existing_call_history_records(
mock_call_history_keys,
):
mock_call_history_keys.return_value = {"1-1-0-OPN2101A-1001011-2021/05/19 14:59:01": None}
mock_call_history_keys.return_value = {
"1-1-0-OPN2101A-1001011-2021/05/19 14:59:01": None
}

call_history_data = [
CallHistory(
Expand Down
Loading