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

Federal, provincial, territorial boundary set name migration #102

Open
11 of 18 tasks
jpmckinney opened this issue Feb 4, 2017 · 1 comment
Open
11 of 18 tasks

Federal, provincial, territorial boundary set name migration #102

jpmckinney opened this issue Feb 4, 2017 · 1 comment

Comments

@jpmckinney
Copy link
Member

jpmckinney commented Feb 4, 2017

Represent's federal, provincial and territorial boundary sets originally had names like 'Federal electoral districts'. However, these jurisdictions modify their boundaries following formal processes at regular intervals. In order to have permanent and unambiguous names, Represent is transitioning towards adding suffixes like (2013 Representation Order), (Representation Act, 2005), (2015 Redistribution), etc. to the name.

The suffixes are based on each jurisdiction's most common way of referring to the boundary modification.

The boundary sets aren't being renamed immediately to avoid disrupting API users who have hardcoded the current names.

Instead, whenever the boundaries change, we take that opportunity to add suffixes to all boundary
sets for that jurisdiction.


Steps:

  1. Open the old set's definition.py file, like boundaries/ocd-division/country-ca/2013/definition.py
  2. The appropriate suffix to the name is staged as a comment in the file
    • For some, we only found long references to commissions like Electoral Boundaries Commission or Electoral Divisions Boundaries Commission, so we simply used the year like (2010) instead of something like (2008 Redistribution)
  3. Add a singular parameter to the definition, like singular='Federal electoral district',
    • This change is staged
  4. Commit and push your changes
  5. Update the old set, like fab alpheus update_boundaries:args="-d data/shapefiles/public/boundaries/ocd-division/country:ca/2013"
  6. In the Django admin, delete the old set with the old name, like 'Federal electoral districts'

Transitioned:

Note that with municipal boundaries, we only ever use the most recent boundaries, because it's hard to track the formal processes, and it would be a lot of work to maintain even if we could track those processes.

@jpmckinney jpmckinney changed the title Scheduled maintenance Federal, provincial and territorial boundary set slug migration Feb 4, 2017
@jpmckinney jpmckinney changed the title Federal, provincial and territorial boundary set slug migration Federal, provincial, territorial boundary set slug migration Feb 4, 2017
@jpmckinney jpmckinney changed the title Federal, provincial, territorial boundary set slug migration Federal, provincial, territorial boundary set name migration Feb 5, 2017
@jpmckinney jpmckinney mentioned this issue Feb 5, 2017
11 tasks
@jpmckinney
Copy link
Member Author

NB done in 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant