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

refactor: extract functions from Stop module #2289

Merged
merged 2 commits into from
Nov 7, 2024
Merged

refactor: extract functions from Stop module #2289

merged 2 commits into from
Nov 7, 2024

Conversation

digitalcora
Copy link
Contributor

Stop has become a bit of a junk drawer, containing several entirely distinct responsibilities: fetching stop data from the V3 API, looking up data from a hard-coded list of subway stations, and building "location context" data (each with its own set of non-overlapping support functions). This splits those responsibilities out into appropriate modules.

Base automatically changed from cfg-headways-by-stop to main November 5, 2024 20:56
@digitalcora digitalcora marked this pull request as ready for review November 5, 2024 20:56
@digitalcora digitalcora requested a review from a team as a code owner November 5, 2024 20:56
Copy link
Contributor

@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.

Yeah this makes a lot more sense. I won't be scared to look in Stop.ex anymore.

@digitalcora digitalcora merged commit 4aabf12 into main Nov 7, 2024
11 checks passed
@digitalcora digitalcora deleted the cfg-hbs-2 branch November 7, 2024 20:54
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