Skip to content

Commit a0e51ee

Browse files
committed
set serviec date range
1 parent 19a0e97 commit a0e51ee

9 files changed

Lines changed: 3 additions & 1 deletion

File tree

functions-python/validation_report_processor/.coveragerc renamed to functions-python/process_validation_report/.coveragerc

File renamed without changes.

functions-python/validation_report_processor/.env.rename_me renamed to functions-python/process_validation_report/.env.rename_me

File renamed without changes.
File renamed without changes.

functions-python/validation_report_processor/function_config.json renamed to functions-python/process_validation_report/function_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"key": "FEEDS_DATABASE_URL"
1313
}
1414
],
15-
"ingress_settings": "ALLOW_INTERNAL_AND_GCLB",
15+
"ingress_settings": "ALL",
1616
"max_instance_request_concurrency": 8,
1717
"max_instance_count": 1,
1818
"min_instance_count": 0,

functions-python/validation_report_processor/requirements.txt renamed to functions-python/process_validation_report/requirements.txt

File renamed without changes.

functions-python/validation_report_processor/requirements_dev.txt renamed to functions-python/process_validation_report/requirements_dev.txt

File renamed without changes.

functions-python/validation_report_processor/src/__init__.py renamed to functions-python/process_validation_report/src/__init__.py

File renamed without changes.

functions-python/validation_report_processor/src/main.py renamed to functions-python/process_validation_report/src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def generate_report_entities(
148148

149149
dataset = get_dataset(dataset_stable_id, session)
150150
dataset.validation_reports.append(validation_report_entity)
151+
dataset.service_date_range_start = json_report["summary"]["feedInfo"]["feedServiceWindowStart"]
152+
dataset.service_date_range_end = json_report["summary"]["feedInfo"]["feedServiceWindowEnd"]
151153
for feature_name in json_report["summary"]["gtfsFeatures"]:
152154
feature = get_feature(feature_name, session)
153155
feature.validations.append(validation_report_entity)

functions-python/validation_report_processor/tests/test_validation_report.py renamed to functions-python/process_validation_report/tests/test_validation_report.py

File renamed without changes.

0 commit comments

Comments
 (0)