Skip to content

January 2026 Monthly NTD Ridership Report Publish#1971

Merged
csuyat-dot merged 2 commits intomainfrom
jan_ntd
Mar 20, 2026
Merged

January 2026 Monthly NTD Ridership Report Publish#1971
csuyat-dot merged 2 commits intomainfrom
jan_ntd

Conversation

@csuyat-dot
Copy link
Copy Markdown
Contributor

epic:

issue:

A couple of things happened this run

  • Had to adjust the scripts to read in data for 2026. Specifically to the _01_ntd_ridership_utils.produce_ntd_monthly_ridership_by_rtpa function.
  • The initial site yml made from monthly_ridership_report/deploy_portfolio_yaml.py doesnt work with JB v2. (detailed in this issue here: Bug: Nested portfolio sites not deploying correctly with JB v2 #1956).
  • I pulled in an updated site yml from Erika's commit, and was able to deploy the site to the staging environment that uses jb v2
  • had to perform a couple of portfolio.py clean... portfolio.py build to get the new data to stick. also made the charts a little wider
  • Was able to finally publish to prod with new data and nested chapters.

Steps i took to deploy the site:

1. In data-analyses/ntd/monthly_ridership_report, Run python monthly_ridership_by_rtpa.py 
	i. -> to make report data
	
2. Run python deploy_portfolio_yaml.py 
	i. -> to build/update report yaml to match the agencies in the report data. **MAY NEED TO CHANGE IN THE FUTURE IF JB V2 CANT TAKE THE INITIAL YML FORMATS**
	
3. Cd to data-analyses, then `pip install -r portfolio/requirements.txt`
	i. To install portfolio requirements (includes all the new staging requirements?)
	
4. Python portfolio/portfolio.py clean ntd_monthly_ridership 
	i. -> deletes the content in and deletes existing report folder
	
5. Python portfolio/portfolio.py build ntd_monthly_ridership 
	i. -> rebuilds/parameterized the notebooks for the report
	
6. gcloud auth login --login-config=iac/login.json
	i. Need this to deploy to staging/prod
	
7. python portfolio/portfolio.py deploy-site ntd_monthly_ridership --target staging 
	i. -> deploys the staging report
	
8. Check staging site: https://analysis-staging.dds.dot.ca.gov/
	i. Make sure the report site looks good
	
9. python portfolio/portfolio.py deploy-site ntd_monthly_ridership --target production
	a. -> This command will deploy to new jb v2
	
10. python portfolio/portfolio.py deploy-index --target staging 
	a. -> deploys the staging landing page

@csuyat-dot csuyat-dot self-assigned this Mar 20, 2026
@github-actions
Copy link
Copy Markdown

nbviewer URLs for impacted notebooks:

@csuyat-dot csuyat-dot merged commit 2ea0217 into main Mar 20, 2026
3 checks passed
@csuyat-dot csuyat-dot deleted the jan_ntd branch March 20, 2026 16:52
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.

1 participant