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

WIP: Path to locality- & date-nested contributions data in committee.html #436

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ckingbailey
Copy link
Contributor

HEADS UP: This work depends on yet-to-be-merged backend changes.

This work resolves #435.

Updates committee.html to get the contributions data for the committee at the path _data/committees/<locality>/<election-date>/<committee-id>.json, or in Jekyll-ish terms, site.data.committees[locality.slug][election_day][committee.filer_id].

Adds Jekyll "where" queries to get locality and election date for committee from site.localities and site.elections. Is there a better way to do this, perhaps building that information right into the committee's markdown file?

🤷 NOTE: The query to get election date depends on committee.election, which is not a key that exists on the committee markdown file, and yet it seems to be working by some mystical interdimensional force. Maybe we should understanding how this is working before this gets merged.

Previews

Large screens

Small screens

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.

Handle contributions for committees that span elections
2 participants