-
Notifications
You must be signed in to change notification settings - Fork 12
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
Committee members data is wrong / not updated #133
Comments
@RavivBarzilay is working on getting this data form the new APIs |
@OriHoch @shevyk There is a bigger modeling problem here, I keep nudging about , just scraping won't solve this.. the problem is that committee members can change during a knesset period, Also there are a couple of statuses besides membership (replacements for example) while our modeling does not allow for membership periods in committees , so currently we always display wrong data. either we display mks that were and currently are not or the other way around.. Solving this should handle the modeling |
@alonisser Anything we should change in the above plan ^ ? |
Actually I'm still don't understand separating models from Oknesset.. I thought the datapackage thing was about separating data and passing scraped data in predefined package. Separating models and models logic from the app does not look very good for me, and the whole inlined imports on every instance method in Oknesset does not look very pythonic to me. I view the missing tests (I guess since there is no point of testing them outside of oknesset app) as a hint that this separation isn't correct, since tests are supposed to be package contained. But since this is the current implementation and ori wants to be practical: We need a new model of committee membership (start, end, mk, committee, type) , and changing the views to get and display according to committee membership . From the top of my head I don't think we need to change Committe model fields but change adapt some instance methods do need to change, including admin and admin edit screens for adding/removing a member from committee. I can write the the needed changes in Oknesset, once I know the data structure retrieved |
would be best to discuss in person what's the goal with Knesset-data separation. the darapackage is only one goal, there are others regarding the inline imports - you are absolutely correct, it's bad and supposed to be temporary. the end goal is to have knesset-data-django as a complete django package which contains the knesset data DB, different frontend implementations could use this, preferably via api (Open Knesset website being one such frontend) |
e.g: the Legislative Committee
![image](https://cloud.githubusercontent.com/assets/12704845/24590124/4afef0c0-17f0-11e7-91b4-f640d964155e.png)
knesset. gov: http://main.knesset.gov.il/Activity/committees/huka/Pages/default.aspx
oknesset: https://oknesset.org/committee/5/
![image](https://cloud.githubusercontent.com/assets/12704845/24590125/5637f90a-17f0-11e7-87e5-37500cf3fca1.png)
MKs Tali Polsakov and Michael Malkieli are members but are not on Oknesset
MKs Yoav ben Zur and Rachel Azaria appear as a members on oknesset but are not.
The text was updated successfully, but these errors were encountered: