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

feat(commuter_rail_occupancies): read commuter rail occupancies from S3 instead of firebase #858

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

rudiejd
Copy link
Contributor

@rudiejd rudiejd commented Jan 30, 2025

…s from S3

Summary of changes

Asana Ticket: 🍎 API reads Commuter Rail Occupancy from S3 instead of Firebase

Problem:
Keolis needs to decommission their Firebase feed

Solution:
We're having them move the contents of that Firebase feed to S3.

Tactically, I added StateMediator for S3 that fetches files via ExAws. I made a temporary change to handle a new format (for some reason cTrainNo is relabeled as Trip Name, but I'm going to hold off on making that more permanent until I hear back from Keolis about whether this change was intentional.

@rudiejd rudiejd force-pushed the feat/api-reads-cr-occupancy-from-s3 branch from ea06e8b to 5b95042 Compare February 3, 2025 15:09
@rudiejd rudiejd requested review from a team and lemald and removed request for a team February 3, 2025 18:27
%{
"MedianDensity" => density,
"MedianDensityFlag" => flag,
"Trip Name" => train
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants