MobilityData / mobility-feed-api

Apache License 2.0
9 stars 4 forks source link

feat: support snapshot validation reports in PROD #761

Closed cka-y closed 1 month ago

cka-y commented 1 month ago

Summary:

This update introduces new parameters to the update-validation-report function and the gtfs-validator-execution workflow to support the generation of snapshot validation reports in PROD. This enhancement allows us to perform analytics on the GTFS validator's pre-release versions.

Key Changes:

Testing Instructions:

To test the new functionality, you can use the following example call:

curl -m 3610 -X POST https://northamerica-northeast1-mobility-feeds-dev.cloudfunctions.net/update-validation-report \
-H "Authorization: bearer $(gcloud auth print-identity-token)" \
-H "Content-Type: application/json" \
-d '{
  "validator_endpoint": "https://stg-gtfs-validator-web-mbzoxaljzq-ue.a.run.app/",
  "force_update": true
}'

This example demonstrates how to trigger the workflow using a custom validator_endpoint and force an update to bypass existing validation checks. Testers are invited to follow the tips AND to try anything they deem relevant outside the bounds of the testing tips.

Please make sure these boxes are checked before submitting your pull request - thanks!