-
Notifications
You must be signed in to change notification settings - Fork 4
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 filtering by MP / MLA Constituencies on Story Dashboard #525
Comments
Tracking this as well |
Need to add this to the select2 list (easy), and allow this filtering on the API. Assigning to @harisibrahimkv right now - to add it as a filter option in the API. @harisibrahimkv we can discuss this, should be fairly straightforward. |
@batpad What are MP / MLA Constituencies in the db/models? |
@harisibrahimkv ah sorry for the late response here -- models are here: https://github.com/klpdotorg/dubdubdub/blob/develop/apps/schools/models/elected_reps.py#L35 My guess is the filter is something like school__schoolelectedrep__mla_const and school__schoolelectedrep__mp_const .. do you want to give it a shot? Thanks! |
@batpad Yeah, I am giving it a shot. I am assuming this filter is applicable for all three Volumes, Detail and Summary endpoints. However, will you be passing in the model_id or one of the following in order to filter for the mp or mla constituency?
|
What's to be done on front end? Constituencies show up in search box with the auto completion, no? @batpad |
Looks like the search box expects some kind of json/geojson when this request is made - "/api/v1/search" this is the response right now and doesn't have mp mla boundaries
|
@meghaklp Has this been done? |
Nice to have.
The text was updated successfully, but these errors were encountered: