feat/realtime-protobuf-encode-decode-subissue-14 #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sub-issue 14 — Progress on GTFS-Realtime Serialization/Deserialization
Work continued on the implementation of serialization and deserialization for GTFS-Realtime feeds.
A dedicated test suite was introduced through the
GTFSRealtimeTestsclass, built on Python’sunittestframework. This suite validates the full encode/decode workflow for GTFS-Realtime messages and ensures correct handling of protobuf structures.Robust error handling was added using specific exceptions such as
requests.exceptions.RequestExceptionandDecodeError, strengthening the reliability of external feed ingestion.The
build_alerts()function was fully implemented, providing end-to-end construction of alert messages.This includes:
FeedMessagein both JSON and Protobuf formats.FeedMessage.objects.create().The
get_service_alerts()function was rewritten to properly process real-time alert feeds.The updated workflow includes:
FeedMessage.route_id,trip_id, andstop_id.All of this moves the sub-issue forward by strengthening the encoding/decoding pipeline and preparing the ground for final validation and binary generation in later commits.