-
Notifications
You must be signed in to change notification settings - Fork 31
Link to disbursements by purpose from committee summary page #508
Comments
Great question. Here's a fourth solution (in two variants :): A: If you're coming from a disbursements page and click on one of the categories, the purpose filter is populated with all of the terms that make up that purpose (maybe separated by commas or not). B: Alternatively, it could be the same thing except the purpose field takes terms separated by commas and spits them out as filter checkboxes above the filter, similar to how the dropdowns work. Either way, we're giving people insight into how the categories are defined and we give them the opportunity to tweak the queries themselves. So if they find one of the purposes too broad or too narrow, they could add or remove terms as they see fit. |
@noahmanger given the way we infer purpose from the raw data, I'm not sure the fourth approach would work. Purpose can be inferred from both disbursement codes and purpose description: for example, if I think this will make more sense if you take a look at the code: https://github.com/18F/openFEC/blob/develop/data/sql_incremental_aggregates/prepare_schedule_b_aggregate_purpose.sql#L5-L19 |
Aaaah that makes sense. So in that case, I think I like your second option most: make a separate filter for "Purpose Category" (possibly with a tooltip with explanation how it's computed?) in addition to the "Purpose Field". We should see if we can think of better language for these, though, to further distinguish them. |
Sounds good, I'll take this on. We'll probably need to work on language around the updated filters once this is working. |
Reported by @jwchumley in Slack:
This one's potentially a little complicated. We have a purpose filter for the browse disbursements page, which is a full-text search against the disbursement text field. But the disbursement purposes we show on the committee detail page are grouped by disbursement purpose categories, which often don't include the same text as the raw purpose (e.g., if the purpose field includes "radio", the disbursement is categorized as "advertising"). I can see a few ways to implement the requested behavior:
What do you think @noahmanger @onezerojeremy?
The text was updated successfully, but these errors were encountered: