diff --git a/bin/xml-datasets/xml-dataset-download.sh b/bin/xml-datasets/xml-dataset-download.sh index 1e024b02..edddcb85 100644 --- a/bin/xml-datasets/xml-dataset-download.sh +++ b/bin/xml-datasets/xml-dataset-download.sh @@ -51,6 +51,9 @@ case $YEAR in 2024) declare -a agencies=(oncd abmc doj achp acus afrh asc ceq cfa cfpb cftc cia cigie cncs co cppbsd cpsc csb csosa dc dfc dhs dnfsb doc dod doe doi dol dos dot eac ed eeoc epa fca fcc fcsic fdic fec ferc ffiec fhfa flra fmc fmcs fmshrc fomc frb frtib ftc gcerc gsa ha hhs hstsf hud iaf imls ipec fpisc jmmff lsc mcc mkuf mmc mspb nara nasa ncd ncpc ncua nea neh nigc nlrb nmb nrc nrpc nsf ntsb nw nwtrb odni oge omb ondcp onhir opm oppr osc oshrc ostp pbgc pc pclob prc pt usrrb sba sec sigar ssa ssab sss stb treasury tva usab usadf usagm usaid usccr usda usibwc usich usip usitc usps ustda ustr va) ;; + 2025) + declare -a agencies=(oncd abmc doj achp acus afrh asc ceq cfa cfpb cftc cia cigie cncs co cppbsd cpsc crccrrb csb csosa dc dfc dhs dnfsb doc dod doe doi dol dos dot eac ed eeoc epa exim fca fcc fcsic fdic fec ferc ffiec fhfa flra fmc fmcs fmshrc fomc frb frtib ftc gcerc gsa ha hhs hstsf hud iaf imls ipec fpisc jmmff lsc mcc mkuf mmc mspb nara nasa ncd ncpc ncua nea neh nigc nlrb nmb nrc nrpc nsf ntsb nw nwtrb odni oge omb ondcp opm osc oshrc ostp pbgc pc pclob prc pt usrrb sba sec sigar ssa sss stb treasury tva usab usagm usaid usccr usda usibwc usich usitc usps ustda ustr va) + ;; *) echo -n "Year unavailable: ${YEAR}" exit; diff --git a/features/AgencySearch.feature b/features/AgencySearch.feature index 2fbdf8ba..a0ddf5da 100644 --- a/features/AgencySearch.feature +++ b/features/AgencySearch.feature @@ -9,6 +9,9 @@ Feature: Agency Search Given I am on "/agency-search.html" And I wait 60 seconds + Scenario: The sorting works to show the most popular components first + Then I should see "Department of Homeland Security" + Scenario: The agency type-ahead works Then I should see "Search an agency name or keyword" And I enter "ENV" into the agency search box diff --git a/js/actions/index.js b/js/actions/index.js index 7b1e2214..2ca70637 100644 --- a/js/actions/index.js +++ b/js/actions/index.js @@ -136,7 +136,7 @@ export const requestActions = { }); const referenceFields = includeReferenceFields || { - agency_component: ['title', 'abbreviation', 'agency', 'description', 'status'], + agency_component: ['title', 'abbreviation', 'agency', 'description', 'status', 'num_requests'], agency: ['name', 'abbreviation', 'description', 'category'], 'agency.category': ['name'], }; diff --git a/js/models/agency.js b/js/models/agency.js index 57a36e71..da7bdbea 100644 --- a/js/models/agency.js +++ b/js/models/agency.js @@ -5,6 +5,8 @@ const defaults = { // component_count is not from the API, we track the number of components to // determine is_centralized component_count: 0, + // Same with num_requests. + num_requests: 0, description: {}, id: null, links: {}, diff --git a/js/models/agency_component.js b/js/models/agency_component.js index d5735810..57de11e0 100644 --- a/js/models/agency_component.js +++ b/js/models/agency_component.js @@ -21,6 +21,7 @@ const defaults = { formFields: new List(), id: null, links: new Map(), + num_requests: 0, paper_receiver: null, // foia_personnel portal_submission_format: 'email', public_liaisons: [], // foia_personnel diff --git a/js/pages/foia_dataset_download.jsx b/js/pages/foia_dataset_download.jsx index 40a179f6..62f440e7 100644 --- a/js/pages/foia_dataset_download.jsx +++ b/js/pages/foia_dataset_download.jsx @@ -7,8 +7,9 @@ function FoiaDatasetDownload() {

FOIA Data Set Downloads

-

The following compressed files are complete archives of the agency FOIA data sets for the years 2008 through 2023 in .xml format.

+

The following compressed files are complete archives of the agency FOIA data sets for the years 2008 through 2025 in .xml format.

-

The following compressed files are complete archives of governmentwide FOIA data sets for the years 2008 through 2023 in .csv format.

+

The following compressed files are complete archives of governmentwide FOIA data sets for the years 2008 through 2025 in .csv format.