Skip to content

Conversation

@jzimbel-mbta
Copy link
Member

Asana task: 📓 Misc. transit data report notebook updates

A big sticking point in implementing this seemingly benign change was that Ashmont now counts as two different terminals—one for the Red Line and one for the Mattapan Trolley.

I had previously been using parent station IDs (e.g. place-asmnl) to uniquely identify terminals, but this no longer worked for that specific case.

So I had to do a pretty big refactor to separate the concept of a terminal from the concept of a parent station ID.

Needed to stop using parent station IDs as terminals because Ashmont counts as two separate terminals--
Red Line southern terminal, and Mattapan Trolley northern terminal
@jzimbel-mbta jzimbel-mbta requested review from a team and cmaddox5 and removed request for a team January 23, 2025 17:30
Copy link
Member Author

@jzimbel-mbta jzimbel-mbta Jan 23, 2025

Choose a reason for hiding this comment

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

The API for custom live Kinos weirdly does not have direct support for html assets or (h)eex templates.

I do think I could have built the elements a bit more concisely, but this works well enough... 🤷‍♂️

Happy to try a pseudo-template-based approach if this code seems unacceptably verbose to you.

Choose a reason for hiding this comment

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

It's easy to follow so this is fine with me!

Copy link

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

Geez, Ashmont really making you work. This looks good to me!

@jzimbel-mbta jzimbel-mbta merged commit 3dfe833 into main Jan 24, 2025
4 checks passed
@jzimbel-mbta jzimbel-mbta deleted the jz-support-all-subway-terminals branch January 24, 2025 14:39
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.

3 participants