-
Notifications
You must be signed in to change notification settings - Fork 42
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
allow_no_match when resolving members of an Organization #253
Comments
probably most relevant to @jpmckinney @fgregg |
I just wrote one. Unfortunately, I surfaced a bug that might relate to your current problem. #254 In any case, I prefer this option:
I often want to be able to get a listing of all the people associated with an organization, and if we don't create Person objects for them, then the alternative would be for me to check the memberships of every organization and sub organization. |
Here's @patcon's committee scraper for Toronto: https://github.com/opencivicdata/scrapers-ca/blob/master/ca_on_toronto/committees.py As @jamesturk encountered, the people need to have been already scraped. If their names differed, we added I guess a higher level question is: Within a jurisdiction, should all the scrapers collectively create:
If we only run one scraper at a time, then there will always only be one object per thing by the time we import, so we're fine in any case (unless a single scraper incorrectly creates multiple objects for one thing). If we run multiple scrapers and then perform a single import, then we could have multiple objects per thing, which raises a
|
I am persuaded by @jpmckinney. |
If we are going to relax person_id resolution in orgs we'd have to make a change in the models too as right now memberships require a person_id. I assume we'd do something akin to what we do in PersonVote, add a person_name field. I can start to put together a draft PR for this. |
Sounds reasonable to me! |
Took a swing at writing an Organization scraper here:
https://github.com/openstates/openstates/blob/pupa-fl/scrapers/fl/committees.py
The issue is that, just like w/ bill sponsorships, etc. there are going to be members listed that don't perfectly match their person and will require future resolution.
I wanted to see if anyone has written a committee scraper yet, and if so what people thought of various options:
Or maybe I'm missing something else obvious that we can do here.
Thoughts?
The text was updated successfully, but these errors were encountered: