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

Use geojson file to also display VACANT committee seats #241

Open
pwolanin opened this issue Aug 17, 2022 · 1 comment
Open

Use geojson file to also display VACANT committee seats #241

pwolanin opened this issue Aug 17, 2022 · 1 comment

Comments

@pwolanin
Copy link
Collaborator

Use the geojson file or any other current source to generate a file to upload to contentful for the committee person seats where all are named VACANT

@pwolanin pwolanin added this to the 2022 Data Update milestone Aug 17, 2022
@pwolanin pwolanin changed the title Create a JSON file with all divisions to create VACANT committee seats Use geojson file to also display VACANT committee seats Jul 12, 2023
@pwolanin
Copy link
Collaborator Author

Instead of generating them and filling them in contentful, maybe easier to simply fill in the missing ones dynamically?

The committee person list is displayed on https://github.com/CodeForPhilly/philly-ward-leaders/blob/master/src/views/ward-leader.vue

We load the map of each ward with the divisions from the pre-split files like:
https://raw.githubusercontent.com/CodeForPhilly/philly-ward-leaders/master/public/data/ward-boundaries/18.geojson

From that data we can find a count/identity of the divisions. Use that count instead of the count coming from the ward leader record. Fill in a default blank record for each committee person and then replace it if data comes from the API.

We need to figure out a better system for managing the sub-ward data - basically we just need a data file for DEM/REP where wards with sub-wards are populated with the division lists. With this we should filter the division list form the geojson

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