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

Scope attribute for events #84

Open
fgregg opened this issue Mar 16, 2017 · 4 comments
Open

Scope attribute for events #84

fgregg opened this issue Mar 16, 2017 · 4 comments

Comments

@fgregg
Copy link
Contributor

fgregg commented Mar 16, 2017

Right now, the Event model in opencivicdata-django requires a jurisdiction attribute.

This is so that all events related to particular legislature can be easily grouped together.

However, not all the things that we want to model within the wider OCD world have jurisdictions, i.e, Election days.

I would like to propose that OCD Events have an scope attribute that can be a jurisdiction_id, division_id or None.

This would allow for current pupa practice to be largely unchanged, but also allow for events that are not associated with jurisdictions.

I don't love the name scope.

Thoughts? @jamesturk @gordonje @jpmckinney

@jpmckinney
Copy link
Member

Why not have jurisdiction_id and division_id attributes, and the code will determine the 'scope' based on those values?

@jamesturk
Copy link
Member

jamesturk commented Mar 16, 2017 via email

@fgregg
Copy link
Contributor Author

fgregg commented Mar 16, 2017

Okay. Does this require an OCDEP?

@gordonje
Copy link
Contributor

I am down with this. I can make changes to the elections spec and my drafts of those models in python-opencivicdata-django once this is decided.

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

No branches or pull requests

4 participants