Skip to content
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

Feature/cycle filter #719

Merged
merged 6 commits into from
May 11, 2015
Merged

Feature/cycle filter #719

merged 6 commits into from
May 11, 2015

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented May 11, 2015

Make all resources filterable by election cycle, and year where appropriate.

  • Make reports filterable by cycle and year
  • Make totals filterable by cycle
  • Add cycle filters to candidate and committee resources
  • Remove year filter on candidates until load and expire dates are valid
  • Move default cycle filtering to web app
  • Use repeated query parameters for list-like arguments
  • Update unit tests

[Resolves #701]
[Resolves #706]

jmcarp added 4 commits May 11, 2015 09:27
* Make reports filterable by cycle and year
* Make totals filterable by cycle
* Update unit tests
* Add cycle filters to candidate and committee resources
* Remove year filter on candidates until load and expire dates are valid
* Move default cycle filtering to web app
* Update unit tests
@jmcarp
Copy link
Contributor Author

jmcarp commented May 11, 2015

Note: Parallel changes to webapp in fecgov/openFEC-web-app#156.

parser.add_argument('state', type=str, help='Two digit U.S. State committee is registered in')
parser.add_argument('committee_id', type=str, action='append', help="Committee's FEC ID")
parser.add_argument('candidate_id', type=str, action='append', help="Candidate's FEC ID")
parser.add_argument('state', type=str, action='append', help='Two digit U.S. State committee is registered in')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, not related to this task: the help text should say "two character", not "two digit".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Once the API docs are ready, I think we should have a thorough review of the help text.

arowla added a commit that referenced this pull request May 11, 2015
@arowla arowla merged commit 9d3ad81 into fecgov:develop May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use repeated query parameters for list arguments Make sure all endpoints are filterable by 2-year-period
2 participants