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

Automate updates to JSON files #50

Open
KyleDolezal opened this issue Apr 12, 2023 · 0 comments · May be fixed by #78
Open

Automate updates to JSON files #50

KyleDolezal opened this issue Apr 12, 2023 · 0 comments · May be fixed by #78

Comments

@KyleDolezal
Copy link
Collaborator

KyleDolezal commented Apr 12, 2023

Overview
The manual task of updating route information could be turned into an automated process.

Problem
Updating route information requires the deployment of the entire frontend codebase. This is a manual task, and the codebase (including presentation layer and business logic) need not be tied to the json data for routes.

Proposed Solution

  • A GitHub Actions workflow can run the main function in compare_scheduled_and_rt.py to generate new data.
  • The action can be based on a cron schedule.
  • The updated data can either live in the chn-ghost-buses repo or in s3.
  • The front end can fetch route data from a remote host instead of the local codebase. A proof of concept is here. By replacing the route json, the information data can be updated without a deployment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant