Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Adding a statutory candidate check box #795

Merged
merged 6 commits into from
Oct 14, 2015
Merged

Conversation

LindsayYoung
Copy link
Contributor

The statutory candidate data is much cleaner, so it makes a good default.

We can just add 'candidate_status=C' to all the links to that page. Is there a better way to handle that default?

I am simplifying this a bit, the full list of codes codes is:

C = Statutory candidate
F = Statutory candidate for future election
N = Not yet a statutory candidate
P = Statutory candidate in prior cycle

@LindsayYoung
Copy link
Contributor Author

Fixes #785

@LindsayYoung
Copy link
Contributor Author

Just C, might be too limiting, we might want to include all non-nulls, what do you think @PaulClark2

@PaulClark2
Copy link

If the default is "statutory candidate" we probably want to use "C," "F" and "P" as all of these codes indicate the candidate has spent or raised $5000. The default value for candidate status (cand_status) is "N." We may need to try including and excluding codes to determine what works best.

@jmcarp
Copy link
Contributor

jmcarp commented Oct 6, 2015

What's the status of this patch @LindsayYoung? Do we want to stick with "C" only or add more options? Regardless of which statuses we choose by default, it seems like we'd want to allow users to filter by any status.

@LindsayYoung
Copy link
Contributor Author

Sorry, did not see this comment before, I will take a look!

@LindsayYoung
Copy link
Contributor Author

We were talking about defaulting to the statutory candidates for the browse views, so I am going to change the link slightly, I think we should change the language on the following to reflect the new, curated view, Instead of "All 2016 presidential candidates", just " 2016 presidential candidates" and so on.

Would that be OK @emileighoutlaw and @noahmanger ?

screen shot 2015-10-08 at 11 10 53 am

@emileighoutlaw
Copy link
Contributor

I think that sounds great to me!

@emileighoutlaw
Copy link
Contributor

Great thought

@LindsayYoung
Copy link
Contributor Author

Going to change links in the fec-style dropdown next

@noahmanger
Copy link
Contributor

Great!

On Thu, Oct 8, 2015 at 9:55 AM, Lindsay Young notifications@github.com
wrote:

Going to change links in the fec-style dropdown next


Reply to this email directly or view it on GitHub
#795 (comment).

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

@LindsayYoung
Copy link
Contributor Author

The API part of this is working locally and on production, but is having issues on dev, I will look into that now.

(After this, merge 18F/fec-cms#89)

@noahmanger
Copy link
Contributor

Where's this at?

@LindsayYoung
Copy link
Contributor Author

I think the only thing left is debugging the tests.

@LindsayYoung
Copy link
Contributor Author

It looks like the tests are comparing results against the API, so we need to filter those results the same, I am not finding where it is making the comparison call in the test to add the same filtering.

@jmcarp jmcarp merged commit 4df4c5a into develop Oct 14, 2015
@jmcarp jmcarp removed the plz-review label Oct 14, 2015
@jmcarp jmcarp deleted the feature/stat-candidate-filter branch October 15, 2015 00:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants