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

Regenerate the legislators menu on each deployment #296

Open
3 tasks
waldoj opened this issue Feb 11, 2019 · 1 comment
Open
3 tasks

Regenerate the legislators menu on each deployment #296

waldoj opened this issue Feb 11, 2019 · 1 comment

Comments

@waldoj
Copy link
Member

waldoj commented Feb 11, 2019

To ensure that the legislators menu is kept up to date, regenerate it on each deployment.

Steps

  • write a script that will generate the HTML, basing it on the existing, manual script
  • put a placeholder in the template file for the legislators menu (e.g., {{legislators}})
  • write a script that replaces the placeholder with the generated HTML, run on the server upon deployment (i.e., appspec.yml)

I'm nervous that, when this inevitably fails, there will be no legislators menu. That's something to think about.

waldoj added a commit that referenced this issue Jul 22, 2019
Toward #296, this is really basic functionality that will create the legislators menu. It's not grouping alphabetically (that's going to require some thinking), but it's a start.
@waldoj
Copy link
Member Author

waldoj commented Sep 2, 2019

One solution to deal with failure is to output a static file each time, and then inject that into the template. That way, when this fails, it can fall back to using the prior run's static file.

waldoj added a commit that referenced this issue Sep 2, 2019
This generates a submenu per letter of the alphabet. Obviously, this ain't good enough, but I'm sick and my brain is busted. Toward #296.
waldoj added a commit that referenced this issue Jan 10, 2020
waldoj added a commit that referenced this issue Jan 10, 2020
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

No branches or pull requests

1 participant