Skip to content

Find your committee view improvements  #2024

@exalate-issue-sync

Description

@exalate-issue-sync

Several improvements to the get-available-committee endpoint logic were identified when conducting analysis for ticket 3060 investigating occasional slowness for this endpoint on the Find your committee screen after sign-on.

These fixes will help improve the requests being made to the openfec api:

  1. We are currently sending duplicate requests for processed and (conditionally) raw data. The duplicate requests are being generated by the raise_if_cannot_create_committee_accountfunction that retrieves the committee email information in order to validate it. We should however be able to use the email information in data that was already retrieved in most cases.
  2. remove the committee_id query param in the get_processed data request since it is already set as a path param.
  3. add the per_page param to the get_raw_data request to limit the record count coming back from openfec (since we only need the first one and it is defaulting to 20).
  4. add a descending sort param on date so that we get the most recent record for raw data (per documentation -receipt_date https://api.open.fec.gov/developers/#/filings/get_v1_filings_ )

QA Notes

null

DEV Notes

null

Design

null

See full ticket and images here: FECFILE-3104

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions