diff --git a/cypress/e2e/data-publication/CombinedMLAR.spec.js b/cypress/e2e/data-publication/CombinedMLAR.spec.js index fd0bd42ac..d9dd68c5b 100644 --- a/cypress/e2e/data-publication/CombinedMLAR.spec.js +++ b/cypress/e2e/data-publication/CombinedMLAR.spec.js @@ -19,13 +19,13 @@ onlyOn(!isBeta(HOST), () => { cy.visit(`${HOST}/data-publication/modified-lar/${year}`) cy.request({ method: 'HEAD', - url: `${fileServerDomain}/modified-lar/combined-mlar/${year}/${year}_combined_mlar_header.zip`, + url: `${fileServerDomain}/prod/dynamic-data/combined-mlar/${year}/header/${year}_combined_mlar_header.zip`, }) .its('status') .should('equal', 200) cy.request({ method: 'HEAD', - url: `${fileServerDomain}/modified-lar/combined-mlar/${year}/${year}_combined_mlar.zip`, + url: `${fileServerDomain}/prod/dynamic-data/combined-mlar/${year}/${year}_combined_mlar.zip`, }) .its('status') .should('equal', 200) diff --git a/src/common/S3Integrations.jsx b/src/common/S3Integrations.jsx index 16219ab22..c72d49001 100644 --- a/src/common/S3Integrations.jsx +++ b/src/common/S3Integrations.jsx @@ -1,5 +1,5 @@ -import { useEffect, useState } from 'react' -import { Provider, useDispatch, useSelector } from 'react-redux' +import React, { useEffect, useState } from 'react' +import { useDispatch, useSelector, Provider } from 'react-redux' import ExternalLink from './ExternalLink' import LoadingIcon from './LoadingIcon' import { humanFileSize, isBigFile } from './numberServices' @@ -27,39 +27,21 @@ export const useS3FileHeaders = (url, shouldFetch) => { setCurrHeaders(null) if (!shouldFetch) return - fetch(url, { method: 'HEAD' }) - .then((response) => { - // catch errors errors served up from Akamai on 404s, return empty headers to hide file which - // mimics current prod behavior - // TODO: potentially remove after [GHE]/HMDA-Operations/hmda-devops/issues/5275 is resolved - if (!response.ok) { - dispatch(saveHeaders({ url, headers: {} })) - setCurrHeaders({}) - return - } - const hdrs = ['last-modified', 'Content-Length'] - const [lastMod, size] = hdrs.map((h) => response.headers.get(h)) - let changeDate + fetch(url, { method: 'HEAD' }).then((response) => { + const hdrs = ['last-modified', 'Content-Length'] + const [lastMod, size] = hdrs.map((h) => response.headers.get(h)) + let changeDate - if (lastMod) { - const newDate = new Date(lastMod) - newDate.setHours(newDate.getHours() - 5) // Convert GMT to ET - changeDate = newDate.toDateString() - } + if (lastMod) { + const newDate = new Date(lastMod) + newDate.setHours(newDate.getHours() - 5) // Convert GMT to ET + changeDate = newDate.toDateString() + } - const headers = { changeDate, size } - dispatch(saveHeaders({ url, headers })) - setCurrHeaders(headers) - }) - // catch CORS errors served up from Akamai on 404s, return empty headers to hide file which - // mimics current prod behavior - // TODO: potentially remove after [GHE]/HMDA-Operations/hmda-devops/issues/5275 is resolved - .catch((error) => { - if (error.name === 'TypeError' && error.message.includes('Failed to fetch')) { - dispatch(saveHeaders({ url, headers: {} })) - setCurrHeaders({}) - } - }) + const headers = { changeDate, size } + dispatch(saveHeaders({ url, headers })) + setCurrHeaders(headers) + }) }, [url]) if (!shouldFetch) return null @@ -160,10 +142,9 @@ function LastUpdated({ url, isDocs }) { return (
- {/* {TODO: Reenable size after [GHE]/HMDA-Operations/hmda-devops/issues/5275} */} - {/*
+
Size: {readableSize} -
*/} +
Updated: {headers.changeDate}
diff --git a/src/common/constants/dev-beta-config.json b/src/common/constants/dev-beta-config.json index 1921300b3..155044c53 100644 --- a/src/common/constants/dev-beta-config.json +++ b/src/common/constants/dev-beta-config.json @@ -20,7 +20,7 @@ } } ], - "fileServerDomain": "https://files.ffiec.cfpb.gov", + "fileServerDomain": "https://s3.amazonaws.com/cfpb-hmda-public", "publicationReleaseYear": "2023", "mlarReleaseYear": "2023", "maintenanceMode": false, diff --git a/src/common/constants/dev-config.json b/src/common/constants/dev-config.json index f54a1f73c..f376281b2 100644 --- a/src/common/constants/dev-config.json +++ b/src/common/constants/dev-config.json @@ -20,7 +20,7 @@ } } ], - "fileServerDomain": "https://files.ffiec.cfpb.gov", + "fileServerDomain": "https://s3.amazonaws.com/cfpb-hmda-public", "publicationReleaseYear": "2024", "mlarReleaseYear": "2024", "maintenanceMode": false, diff --git a/src/common/constants/prod-beta-config.json b/src/common/constants/prod-beta-config.json index a14bfd980..def3075c4 100644 --- a/src/common/constants/prod-beta-config.json +++ b/src/common/constants/prod-beta-config.json @@ -1,7 +1,7 @@ { "name": "prod-beta", "announcement": [], - "fileServerDomain": "https://files.ffiec.cfpb.gov", + "fileServerDomain": "https://s3.amazonaws.com/cfpb-hmda-public", "publicationReleaseYear": "2020", "maintenanceMode": false, "filingAnnouncement": null, diff --git a/src/common/constants/prod-config.json b/src/common/constants/prod-config.json index b4675a8d6..648842e17 100644 --- a/src/common/constants/prod-config.json +++ b/src/common/constants/prod-config.json @@ -20,7 +20,7 @@ } } ], - "fileServerDomain": "https://files.ffiec.cfpb.gov", + "fileServerDomain": "https://s3.amazonaws.com/cfpb-hmda-public", "publicationReleaseYear": "2024", "mlarReleaseYear": "2024", "maintenanceMode": false, diff --git a/src/data-browser/maps/filterUtils.jsx b/src/data-browser/maps/filterUtils.jsx index fe5267d0e..a97548f66 100644 --- a/src/data-browser/maps/filterUtils.jsx +++ b/src/data-browser/maps/filterUtils.jsx @@ -4,7 +4,7 @@ function getFile(y, g, v, val) { const { fileServerDomain } = getDefaultConfig(window.location.hostname) const dec = decodeURIComponent(val) - return `${fileServerDomain}/data-browser/maps/${y}/${g}-${v}-${dec + return `${fileServerDomain}/prod/data-browser/filter-data/${y}/${g}-${v}-${dec .replace(/[^a-z0-9]/gi, '-') .toLowerCase()}.json` } diff --git a/src/data-publication/constants/dynamic-dataset.js b/src/data-publication/constants/dynamic-dataset.js index d32aa1739..0ddd064c1 100644 --- a/src/data-publication/constants/dynamic-dataset.js +++ b/src/data-publication/constants/dynamic-dataset.js @@ -4,36 +4,36 @@ const { fileServerDomain } = getDefaultConfig(window.location.hostname) export const DYNAMIC_DATASET = { 2024: { - lar: `${fileServerDomain}/dynamic-data/2024/2024_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2024/2024_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2024/2024_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2024/2024_ts.zip`, }, 2023: { - lar: `${fileServerDomain}/dynamic-data/2023/2023_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2023/2023_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2023/2023_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2023/2023_ts.zip`, }, 2022: { - lar: `${fileServerDomain}/dynamic-data/2022/2022_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2022/2022_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2022/2022_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2022/2022_ts.zip`, }, 2021: { - lar: `${fileServerDomain}/dynamic-data/2021/2021_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2021/2021_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2021/2021_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2021/2021_ts.zip`, }, 2020: { - lar: `${fileServerDomain}/dynamic-data/2020/2020_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2020/2020_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2020/2020_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2020/2020_ts.zip`, }, 2019: { - lar: `${fileServerDomain}/dynamic-data/2019/2019_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2019/2019_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2019/2019_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2019/2019_ts.zip`, }, 2018: { - lar: `${fileServerDomain}/dynamic-data/2018/2018_lar.zip`, - ts: `${fileServerDomain}/dynamic-data/2018/2018_ts.zip`, + lar: `${fileServerDomain}/prod/dynamic-data/2018/2018_lar.zip`, + ts: `${fileServerDomain}/prod/dynamic-data/2018/2018_ts.zip`, }, 2017: { - lar: `${fileServerDomain}/dynamic-data/2017/dynamic_lar_ultimate_2017.txt`, - ts: `${fileServerDomain}/dynamic-data/2017/dynamic_ts_ultimate_2017.txt`, + lar: `${fileServerDomain}/prod/dynamic-data/dynamic_lar_ultimate_2017.txt`, + ts: `${fileServerDomain}/prod/dynamic-data/dynamic_ts_ultimate_2017.txt`, lar_spec: 'https://github.com/cfpb/hmda-platform/blob/v1.x/Documents/2017_Dynamic_LAR_Spec.csv', ts_spec: diff --git a/src/data-publication/constants/one-year-datasets.jsx b/src/data-publication/constants/one-year-datasets.jsx index 95d1d83c9..170e0dca1 100644 --- a/src/data-publication/constants/one-year-datasets.jsx +++ b/src/data-publication/constants/one-year-datasets.jsx @@ -14,14 +14,14 @@ export const ONE_YEAR_DATASET = { { dataKey: 'lar', label: 'Loan/Application Records (LAR)', - csv: `${fileServerDomain}/static-data/one-year/2023/2023_public_lar_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2023/2023_public_lar_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2023/2023_public_lar_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2023/2023_public_lar_one_year_pipe.zip`, }, { dataKey: 'ts', label: 'Transmittal Sheet Records (TS)', - csv: `${fileServerDomain}/static-data/one-year/2023/2023_public_ts_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2023/2023_public_ts_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2023/2023_public_ts_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2023/2023_public_ts_one_year_pipe.zip`, }, { dataKey: 'panel', @@ -31,8 +31,8 @@ export const ONE_YEAR_DATASET = { { dataKey: 'msamd', label: 'MSA/MD Description', - csv: `${fileServerDomain}/static-data/one-year/2023/2023_public_msamd_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2023/2023_public_msamd_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2023/2023_public_msamd_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2023/2023_public_msamd_one_year_pipe.zip`, }, ], }, @@ -42,26 +42,26 @@ export const ONE_YEAR_DATASET = { { dataKey: 'lar', label: 'Loan/Application Records (LAR)', - csv: `${fileServerDomain}/static-data/one-year/2022/2022_public_lar_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2022/2022_public_lar_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2022/2022_public_lar_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2022/2022_public_lar_one_year_pipe.zip`, }, { dataKey: 'ts', label: 'Transmittal Sheet Records (TS)', - csv: `${fileServerDomain}/static-data/one-year/2022/2022_public_ts_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2022/2022_public_ts_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2022/2022_public_ts_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2022/2022_public_ts_one_year_pipe.zip`, }, { dataKey: 'panel', label: 'Reporter Panel', - csv: `${fileServerDomain}/static-data/one-year/2022/2022_public_panel_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2022/2022_public_panel_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2022/2022_public_panel_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2022/2022_public_panel_one_year_pipe.zip`, }, { dataKey: 'msamd', label: 'MSA/MD Description', - csv: `${fileServerDomain}/static-data/one-year/2022/2022_public_msamd_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2022/2022_public_msamd_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2022/2022_public_msamd_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2022/2022_public_msamd_one_year_pipe.zip`, }, ], }, @@ -71,26 +71,26 @@ export const ONE_YEAR_DATASET = { { dataKey: 'lar', label: 'Loan/Application Records (LAR)', - csv: `${fileServerDomain}/static-data/one-year/2021/2021_public_lar_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2021/2021_public_lar_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2021/2021_public_lar_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2021/2021_public_lar_one_year_pipe.zip`, }, { dataKey: 'ts', label: 'Transmittal Sheet Records (TS)', - csv: `${fileServerDomain}/static-data/one-year/2021/2021_public_ts_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2021/2021_public_ts_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2021/2021_public_ts_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2021/2021_public_ts_one_year_pipe.zip`, }, { dataKey: 'panel', label: 'Reporter Panel', - csv: `${fileServerDomain}/static-data/one-year/2021/2021_public_panel_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2021/2021_public_panel_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2021/2021_public_panel_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2021/2021_public_panel_one_year_pipe.zip`, }, { dataKey: 'msamd', label: 'MSA/MD Description', - csv: `${fileServerDomain}/static-data/one-year/2021/2021_public_msamd_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2021/2021_public_msamd_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2021/2021_public_msamd_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2021/2021_public_msamd_one_year_pipe.zip`, }, ], }, @@ -100,26 +100,26 @@ export const ONE_YEAR_DATASET = { { dataKey: 'lar', label: 'Loan/Application Records (LAR)', - csv: `${fileServerDomain}/static-data/one-year/2020/2020_public_lar_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2020/2020_public_lar_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2020/2020_public_lar_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2020/2020_public_lar_one_year_pipe.zip`, }, { dataKey: 'ts', label: 'Transmittal Sheet Records (TS)', - csv: `${fileServerDomain}/static-data/one-year/2020/2020_public_ts_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2020/2020_public_ts_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2020/2020_public_ts_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2020/2020_public_ts_one_year_pipe.zip`, }, { dataKey: 'panel', label: 'Reporter Panel', - csv: `${fileServerDomain}/static-data/one-year/2020/2020_public_panel_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2020/2020_public_panel_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2020/2020_public_panel_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2020/2020_public_panel_one_year_pipe.zip`, }, { dataKey: 'msamd', label: 'MSA/MD Description', - csv: `${fileServerDomain}/static-data/one-year/2020/2020_public_msamd_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2020/2020_public_msamd_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2020/2020_public_msamd_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2020/2020_public_msamd_one_year_pipe.zip`, }, ], }, @@ -136,26 +136,26 @@ export const ONE_YEAR_DATASET = { { dataKey: 'lar', label: 'Loan/Application Records (LAR)', - csv: `${fileServerDomain}/static-data/one-year/2019/2019_public_lar_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2019/2019_public_lar_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2019/2019_public_lar_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2019/2019_public_lar_one_year_pipe.zip`, }, { dataKey: 'ts', label: 'Transmittal Sheet Records (TS)', - csv: `${fileServerDomain}/static-data/one-year/2019/2019_public_ts_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2019/2019_public_ts_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2019/2019_public_ts_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2019/2019_public_ts_one_year_pipe.zip`, }, { dataKey: 'panel', label: 'Reporter Panel', - csv: `${fileServerDomain}/static-data/one-year/2019/2019_public_panel_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2019/2019_public_panel_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2019/2019_public_panel_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2019/2019_public_panel_one_year_pipe.zip`, }, { dataKey: 'msamd', label: 'MSA/MD Description', - csv: `${fileServerDomain}/static-data/one-year/2019/2019_public_msamd_one_year_csv.zip`, - txt: `${fileServerDomain}/static-data/one-year/2019/2019_public_msamd_one_year_pipe.zip`, + csv: `${fileServerDomain}/prod/one-year-data/2019/2019_public_msamd_one_year_csv.zip`, + txt: `${fileServerDomain}/prod/one-year-data/2019/2019_public_msamd_one_year_pipe.zip`, }, ], }, diff --git a/src/data-publication/constants/snapshot-dataset.jsx b/src/data-publication/constants/snapshot-dataset.jsx index 7e591531e..d6c5b0dd8 100644 --- a/src/data-publication/constants/snapshot-dataset.jsx +++ b/src/data-publication/constants/snapshot-dataset.jsx @@ -5,8 +5,8 @@ const { fileServerDomain } = getDefaultConfig(window.location.hostname) // Cross Reference for ARID2017 to LEI. Same source for all years const ARID2017_XREF = { - csv: `${fileServerDomain}/static-data/snapshot/2017/arid2017tolei/arid2017_to_lei_xref_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2017/arid2017tolei/arid2017_to_lei_xref_psv.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/arid2017tolei/arid2017_to_lei_xref_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/arid2017tolei/arid2017_to_lei_xref_psv.zip`, label: 'ARID2017 to LEI Reference Table', dataKey: 'arid', } @@ -20,14 +20,14 @@ export const SNAPSHOT_DATASET = { ), datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2024/2024_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2024/2024_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2024/2024_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2024/2024_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, @@ -37,8 +37,8 @@ export const SNAPSHOT_DATASET = { override: getOverrides.getReporterPanelUnavailable(), }, { - csv: `${fileServerDomain}/static-data/snapshot/2024/2024_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2024/2024_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2024/2024_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -49,26 +49,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'May 1, 2024', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2023/2023_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2023/2023_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2023/2023_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2023/2023_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2023/2023_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2023/2023_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2023/2023_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2023/2023_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2023/2023_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -79,26 +79,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'May 1, 2023', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2022/2022_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2022/2022_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2022/2022_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2022/2022_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2022/2022_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2022/2022_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2022/2022_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2022/2022_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2022/2022_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -109,26 +109,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'April 30, 2022', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2021/2021_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2021/2021_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2021/2021_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2021/2021_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2021/2021_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2021/2021_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2021/2021_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2021/2021_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2021/2021_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -139,26 +139,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'May 3, 2021', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2020/2020_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2020/2020_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2020/2020_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2020/2020_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2020/2020_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2020/2020_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2020/2020_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2020/2020_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2020/2020_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -169,26 +169,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'April 27, 2020', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2019/2019_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2019/2019_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2019/2019_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2019/2019_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2019/2019_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2019/2019_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2019/2019_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2019/2019_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2019/2019_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -199,26 +199,26 @@ export const SNAPSHOT_DATASET = { freezeDate: 'August 7th, 2019', datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2018/2018_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2018/2018_public_lar_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_lar_pipe.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2018/2018_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2018/2018_public_ts_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_ts_pipe.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2018/2018_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2018/2018_public_panel_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_panel_pipe.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2018/2018_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2018/2018_public_msamd_pipe.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2018/2018_public_msamd_pipe.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, @@ -227,30 +227,30 @@ export const SNAPSHOT_DATASET = { }, 2017: { freezeDate: 'April 18th, 2018', - dataformat: `${fileServerDomain}/static-data/snapshot/2017/2017_publicstatic_dataformat.pdf`, - codesheet: `${fileServerDomain}/static-data/snapshot/2017/2017_publicstatic_codesheet.pdf`, + dataformat: `${fileServerDomain}/prod/snapshot-data/2017_publicstatic_dataformat.pdf`, + codesheet: `${fileServerDomain}/prod/snapshot-data/2017_publicstatic_codesheet.pdf`, datasets: [ { - csv: `${fileServerDomain}/static-data/snapshot/2017/2017_public_lar_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2017/2017_public_lar_txt.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2017_public_lar_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2017_public_lar_txt.zip`, label: 'Loan/Application Records (LAR)', dataKey: 'lar', }, { - csv: `${fileServerDomain}/static-data/snapshot/2017/2017_public_ts_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2017/2017_public_ts_txt.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2017_public_ts_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2017_public_ts_txt.zip`, label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', }, { - csv: `${fileServerDomain}/static-data/snapshot/2017/2017_public_panel_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2017/2017_public_panel_txt.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2017_public_panel_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2017_public_panel_txt.zip`, label: 'Reporter Panel', dataKey: 'panel', }, { - csv: `${fileServerDomain}/static-data/snapshot/2017/2017_public_msamd_csv.zip`, - txt: `${fileServerDomain}/static-data/snapshot/2017/2017_public_msamd_txt.zip`, + csv: `${fileServerDomain}/prod/snapshot-data/2017_public_msamd_csv.zip`, + txt: `${fileServerDomain}/prod/snapshot-data/2017_public_msamd_txt.zip`, label: 'MSA/MD Description', dataKey: 'msamd', }, diff --git a/src/data-publication/constants/three-year-datasets.jsx b/src/data-publication/constants/three-year-datasets.jsx index f0b247e78..04d9afe63 100644 --- a/src/data-publication/constants/three-year-datasets.jsx +++ b/src/data-publication/constants/three-year-datasets.jsx @@ -6,31 +6,31 @@ const { fileServerDomain } = getDefaultConfig(window.location.hostname) export const THREE_YEAR_DATASET = { 2017: { freezeDate: 'December 31, 2020', - dataformat: `${fileServerDomain}/static-data/snapshot/2017/2017_publicstatic_dataformat.pdf`, + dataformat: `${fileServerDomain}/prod/snapshot-data/2017_publicstatic_dataformat.pdf`, datasets: [ { label: 'Loan/Application Records (LAR)', dataKey: 'lar', - csv: `${fileServerDomain}/static-data/three-year/2017/2017_public_lar_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2017/2017_public_lar_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2017/2017_public_lar_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2017/2017_public_lar_three_year_pipe.zip`, }, { label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', - csv: `${fileServerDomain}/static-data/three-year/2017/2017_public_ts_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2017/2017_public_ts_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2017/2017_public_ts_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2017/2017_public_ts_three_year_pipe.zip`, }, { label: 'Reporter Panel', dataKey: 'panel', - csv: `${fileServerDomain}/static-data/three-year/2017/2017_public_panel_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2017/2017_public_panel_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2017/2017_public_panel_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2017/2017_public_panel_three_year_pipe.zip`, }, { label: 'MSA/MD Description', dataKey: 'msamd', - csv: `${fileServerDomain}/static-data/three-year/2017/2017_public_msamd_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2017/2017_public_msamd_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2017/2017_public_msamd_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2017/2017_public_msamd_three_year_pipe.zip`, }, ], }, @@ -40,26 +40,26 @@ export const THREE_YEAR_DATASET = { { label: 'Loan/Application Records (LAR)', dataKey: 'lar', - csv: `${fileServerDomain}/static-data/three-year/2018/2018_public_lar_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2018/2018_public_lar_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2018/2018_public_lar_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2018/2018_public_lar_three_year_pipe.zip`, }, { label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', - csv: `${fileServerDomain}/static-data/three-year/2018/2018_public_ts_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2018/2018_public_ts_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2018/2018_public_ts_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2018/2018_public_ts_three_year_pipe.zip`, }, { label: 'Reporter Panel', dataKey: 'panel', - csv: `${fileServerDomain}/static-data/three-year/2018/2018_public_panel_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2018/2018_public_panel_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2018/2018_public_panel_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2018/2018_public_panel_three_year_pipe.zip`, }, { label: 'MSA/MD Description', dataKey: 'msamd', - csv: `${fileServerDomain}/static-data/three-year/2018/2018_public_msamd_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2018/2018_public_msamd_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2018/2018_public_msamd_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2018/2018_public_msamd_three_year_pipe.zip`, }, ], }, @@ -69,26 +69,26 @@ export const THREE_YEAR_DATASET = { { label: 'Loan/Application Records (LAR)', dataKey: 'lar', - csv: `${fileServerDomain}/static-data/three-year/2019/2019_public_lar_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2019/2019_public_lar_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2019/2019_public_lar_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2019/2019_public_lar_three_year_pipe.zip`, }, { label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', - csv: `${fileServerDomain}/static-data/three-year/2019/2019_public_ts_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2019/2019_public_ts_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2019/2019_public_ts_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2019/2019_public_ts_three_year_pipe.zip`, }, { label: 'Reporter Panel', dataKey: 'panel', - csv: `${fileServerDomain}/static-data/three-year/2019/2019_public_panel_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2019/2019_public_panel_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2019/2019_public_panel_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2019/2019_public_panel_three_year_pipe.zip`, }, { label: 'MSA/MD Description', dataKey: 'msamd', - csv: `${fileServerDomain}/static-data/three-year/2019/2019_public_msamd_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2019/2019_public_msamd_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2019/2019_public_msamd_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2019/2019_public_msamd_three_year_pipe.zip`, }, ], }, @@ -98,26 +98,26 @@ export const THREE_YEAR_DATASET = { { label: 'Loan/Application Records (LAR)', dataKey: 'lar', - csv: `${fileServerDomain}/static-data/three-year/2020/2020_public_lar_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2020/2020_public_lar_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2020/2020_public_lar_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2020/2020_public_lar_three_year_pipe.zip`, }, { label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', - csv: `${fileServerDomain}/static-data/three-year/2020/2020_public_ts_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2020/2020_public_ts_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2020/2020_public_ts_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2020/2020_public_ts_three_year_pipe.zip`, }, { label: 'Reporter Panel', dataKey: 'panel', - csv: `${fileServerDomain}/static-data/three-year/2020/2020_public_panel_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2020/2020_public_panel_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2020/2020_public_panel_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2020/2020_public_panel_three_year_pipe.zip`, }, { label: 'MSA/MD Description', dataKey: 'msamd', - csv: `${fileServerDomain}/static-data/three-year/2020/2020_public_msamd_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2020/2020_public_msamd_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2020/2020_public_msamd_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2020/2020_public_msamd_three_year_pipe.zip`, }, ], }, @@ -131,14 +131,14 @@ export const THREE_YEAR_DATASET = { { label: 'Loan/Application Records (LAR)', dataKey: 'lar', - csv: `${fileServerDomain}/static-data/three-year/2021/2021_public_lar_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2021/2021_public_lar_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2021/2021_public_lar_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2021/2021_public_lar_three_year_pipe.zip`, }, { label: 'Transmittal Sheet Records (TS)', dataKey: 'ts', - csv: `${fileServerDomain}/static-data/three-year/2021/2021_public_ts_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2021/2021_public_ts_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2021/2021_public_ts_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2021/2021_public_ts_three_year_pipe.zip`, }, { label: 'Reporter Panel', @@ -148,8 +148,8 @@ export const THREE_YEAR_DATASET = { { label: 'MSA/MD Description', dataKey: 'msamd', - csv: `${fileServerDomain}/static-data/three-year/2021/2021_public_msamd_three_year_csv.zip`, - txt: `${fileServerDomain}/static-data/three-year/2021/2021_public_msamd_three_year_pipe.zip`, + csv: `${fileServerDomain}/prod/three-year-data/2021/2021_public_msamd_three_year_csv.zip`, + txt: `${fileServerDomain}/prod/three-year-data/2021/2021_public_msamd_three_year_pipe.zip`, }, ], }, diff --git a/src/data-publication/reports/CombinedMLAR.jsx b/src/data-publication/reports/CombinedMLAR.jsx index 0454263ec..da8268e2a 100644 --- a/src/data-publication/reports/CombinedMLAR.jsx +++ b/src/data-publication/reports/CombinedMLAR.jsx @@ -1,6 +1,7 @@ import { useEffect, useState } from 'react' import { getDefaultConfig } from '../../common/configUtils' import LoadingIcon from '../../common/LoadingIcon.jsx' +import { humanFileSize } from '../../common/numberServices.js' import { useS3FileHeaders } from '../../common/S3Integrations.jsx' export function CombinedMLAR({ year, setHasCombined, hasCombined }) { @@ -58,9 +59,7 @@ export function CombinedMLAR({ year, setHasCombined, hasCombined }) {

- Warning: Large file - {/* {TODO: Reenable size after [GHE]/HMDA-Operations/hmda-devops/issues/5275} */} - {/* Warning: Large file - {humanFileSize(headers.size)} */} + Warning: Large file - {humanFileSize(headers.size)}

Special software is required to open this file
@@ -84,10 +83,11 @@ export function CombinedMLAR({ year, setHasCombined, hasCombined }) { const formatURL = (year, withHeader, fileServerDomain) => { let baseFilename = `${year}_combined_mlar` - let href = `${fileServerDomain}/modified-lar/combined-mlar/` + let href = `${fileServerDomain}/prod/dynamic-data/combined-mlar/` href += `${year}/` // Year sub-folder if (withHeader) { + href += 'header/' // Headered file Sub-folder baseFilename += '_header' // Headered Filename adjustment } diff --git a/src/data-publication/reports/Report.jsx b/src/data-publication/reports/Report.jsx index 99d5718ff..0d16a2fa6 100644 --- a/src/data-publication/reports/Report.jsx +++ b/src/data-publication/reports/Report.jsx @@ -140,7 +140,7 @@ class Report extends React.Component { const devProd = isProd(window.location.host) ? 'prod' : 'dev' if (reportId === 'IRS') ext = '.csv' - let url = `${fileServerDomain}/reports/` + let url = `${fileServerDomain}/prod/reports/` if (params.stateId) { url += `aggregate/${year}/${msaMdId}/${reportId}${ext}` } else if (params.institutionId) { diff --git a/src/data-publication/reports/SearchList.jsx b/src/data-publication/reports/SearchList.jsx index edc479be2..4cd7eb5c3 100644 --- a/src/data-publication/reports/SearchList.jsx +++ b/src/data-publication/reports/SearchList.jsx @@ -23,7 +23,7 @@ function SearchList(props) { setIsLoading(true) const fetchURL = year === '2017' - ? `${fileServerDomain}/static-data/snapshot/2017/2017_filers.json` + ? `${fileServerDomain}/prod/snapshot-data/2017/2017_filers.json` : `/v2/reporting/filers/${year}` fetch(fetchURL) .then((response) => { diff --git a/src/data-publication/reports/fetchMsas.js b/src/data-publication/reports/fetchMsas.js index c9c927c60..6eb8b425d 100644 --- a/src/data-publication/reports/fetchMsas.js +++ b/src/data-publication/reports/fetchMsas.js @@ -5,7 +5,7 @@ function getMsaUrl(institutionId, year) { if (!year) return if (year === '2017') - return `${fileServerDomain}/static-data/snapshot/2017/msaMds/${institutionId}.json` + return `${fileServerDomain}/prod/snapshot-data/2017/msaMds/${institutionId}.json` return `/v2/reporting/filers/${year}/${institutionId}/msaMds` } diff --git a/src/filing/submission/parseErrors/index.jsx b/src/filing/submission/parseErrors/index.jsx index de4bc1f57..79e606674 100644 --- a/src/filing/submission/parseErrors/index.jsx +++ b/src/filing/submission/parseErrors/index.jsx @@ -107,8 +107,8 @@ class ParseErrors extends Component { target='_blank' href={ filingPeriod === '2018' - ? `${fileServerDomain}/documentation/2018-hmda-fig-2018-hmda-rule.pdf` - : `${fileServerDomain}/documentation/${filingPeriod}-hmda-fig.pdf` + ? `${fileServerDomain}/prod/help/2018-hmda-fig-2018-hmda-rule.pdf` + : `${fileServerDomain}/prod/help/${filingPeriod}-hmda-fig.pdf` } > Filing Instructions Guide diff --git a/src/hmda-help/publications/PublicationRows.jsx b/src/hmda-help/publications/PublicationRows.jsx index fc34207b7..197bf03eb 100644 --- a/src/hmda-help/publications/PublicationRows.jsx +++ b/src/hmda-help/publications/PublicationRows.jsx @@ -20,8 +20,8 @@ function PublicationRows({ institution }) { if (!loading) return const env = window.location.host.match(/^ffiec/) ? 'prod' : 'dev' - const irsUrl = `${fileServerDomain}/reports/disclosure/${activityYear}/${lei}/nationwide/IRS.csv` - const mlarUrl = `${fileServerDomain}/modified-lar/${activityYear}/${lei}.txt` + const irsUrl = `${fileServerDomain}/${env}/reports/disclosure/${activityYear}/${lei}/nationwide/IRS.csv` + const mlarUrl = `${fileServerDomain}/${env}/modified-lar/${activityYear}/${lei}.txt` const targets = [ { url: irsUrl, setter: setIrs }, diff --git a/src/homepage/ForFilers/FilingGuides.jsx b/src/homepage/ForFilers/FilingGuides.jsx index ed00f091f..f0ce648a4 100644 --- a/src/homepage/ForFilers/FilingGuides.jsx +++ b/src/homepage/ForFilers/FilingGuides.jsx @@ -56,7 +56,7 @@ function FilingGuides() {
  • HMDA Loan Scenarios diff --git a/src/homepage/ForFilers/HelpForFilers.jsx b/src/homepage/ForFilers/HelpForFilers.jsx index ac1f77923..58237a4e1 100644 --- a/src/homepage/ForFilers/HelpForFilers.jsx +++ b/src/homepage/ForFilers/HelpForFilers.jsx @@ -37,7 +37,7 @@ export function HelpForFilers() {
    • For data collected in {CURRENT_YEAR} @@ -46,7 +46,7 @@ export function HelpForFilers() {
    • Supplemental Guide for Quarterly Filers for {CURRENT_YEAR} @@ -67,7 +67,7 @@ export function HelpForFilers() {
    • HMDA Loan Scenarios Guide diff --git a/src/tools/lar-formatting/AppIntro.jsx b/src/tools/lar-formatting/AppIntro.jsx index 7cc48844e..459a52069 100644 --- a/src/tools/lar-formatting/AppIntro.jsx +++ b/src/tools/lar-formatting/AppIntro.jsx @@ -37,7 +37,7 @@ const AppIntro = () => {
        diff --git a/src/tools/rate-spread/AppIntro.jsx b/src/tools/rate-spread/AppIntro.jsx index f0be83669..7336d4c56 100644 --- a/src/tools/rate-spread/AppIntro.jsx +++ b/src/tools/rate-spread/AppIntro.jsx @@ -29,12 +29,12 @@ function AppIntro({ toolAnnouncement }) { Percentage Rate (APR) and a survey-based estimate of APRs currently offered on prime mortgage loans of a comparable type utilizing the “Average Prime Offer Rates”{' '} - + fixed table {' '} or{' '} adjustable table @@ -44,7 +44,7 @@ function AppIntro({ toolAnnouncement }) { mortgage.

        - + Mortgage rate survey data {' '} used to calculate rate spreads for loans reportable under HMDA is @@ -65,7 +65,7 @@ function AppIntro({ toolAnnouncement }) { alternate methodology {' '} and{' '} - + alternate rate survey data {' '} which are also provided. diff --git a/src/tools/rate-spread/Methodology_Alt.jsx b/src/tools/rate-spread/Methodology_Alt.jsx index e32d419fc..b6aa3db73 100644 --- a/src/tools/rate-spread/Methodology_Alt.jsx +++ b/src/tools/rate-spread/Methodology_Alt.jsx @@ -26,7 +26,7 @@ function Methodology_alt() { Treasury rate plus a margin and adjust annually after the initial, fixed-rate period. The Consumer Financial Protection Bureau (Bureau) makes available the{' '} - + survey data {' '} used to calculate APORs. This Methodology first describes all the @@ -168,7 +168,7 @@ function Methodology_alt() { above, and the APRs determined by the foregoing assignment rules are the average prime offer rates for their respective comparable transactions. The{' '} - + survey data {' '} needed for the above calculations generally are made available on diff --git a/src/tools/rate-spread/index.jsx b/src/tools/rate-spread/index.jsx index 4f883a231..bb0d0b671 100644 --- a/src/tools/rate-spread/index.jsx +++ b/src/tools/rate-spread/index.jsx @@ -35,7 +35,7 @@ function App(props) { incorporated into the Bureau’s rate spread calculator from 7/15/2022 until 7/21/2022, when the first set of APORs was reincorporated. Both sets of APORs are{' '} - + available here . @@ -77,7 +77,7 @@ function App(props) { Bureau between December 28, 2017 and December 31, 2017 are available in{' '} this table diff --git a/src/updates-notes/change-log-data.json b/src/updates-notes/change-log-data.json index ad743009e..02d5c7155 100644 --- a/src/updates-notes/change-log-data.json +++ b/src/updates-notes/change-log-data.json @@ -42,18 +42,9 @@ "product": "datasets", "description": "The 2024 national loan-level datasets, disclosure reports, and MSA/MD aggregate reports were released and can be accessed via the Data Publication page. Users can now explore 2024 HMDA data using the Data Browser's dataset filtering tool and maps. The 2023 One Year Dataset and the 2021 Three Year Dataset were also released.", "links": [ - { - "text": "Data Publication", - "url": "https://ffiec.cfpb.gov/data-publication/" - }, - { - "text": "Data Browser", - "url": "https://ffiec.cfpb.gov/data-browser/data/" - }, - { - "text": "Maps", - "url": "https://ffiec.cfpb.gov/data-browser/maps/" - } + {"text": "Data Publication", "url": "https://ffiec.cfpb.gov/data-publication/"}, + {"text": "Data Browser", "url": "https://ffiec.cfpb.gov/data-browser/data/"}, + {"text": "Maps", "url": "https://ffiec.cfpb.gov/data-browser/maps/"} ] }, { @@ -150,18 +141,9 @@ "product": "datasets", "description": "The 2023 national loan-level datasets, disclosure reports, and MSA/MD aggregate reports were released and can be accessed via the Data Publication page. Users can now explore 2023 HMDA data using the Data Browser's dataset filtering tool and maps. The 2022 One Year Dataset and the 2020 Three Year Dataset were also released.", "links": [ - { - "text": "Data Publication", - "url": "https://ffiec.cfpb.gov/data-publication/" - }, - { - "text": "Data Browser", - "url": "https://ffiec.cfpb.gov/data-browser/data/" - }, - { - "text": "Maps", - "url": "https://ffiec.cfpb.gov/data-browser/maps/" - } + {"text": "Data Publication", "url": "https://ffiec.cfpb.gov/data-publication/"}, + {"text": "Data Browser", "url": "https://ffiec.cfpb.gov/data-browser/data/"}, + {"text": "Maps", "url": "https://ffiec.cfpb.gov/data-browser/maps/"} ] }, { @@ -220,7 +202,7 @@ "links": [ { "text": "2024 Filing Instructions Guide (FIG)", - "url": "https://files.ffiec.cfpb.gov/documentation/2024-hmda-fig.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/2024-hmda-fig.pdf" } ] }, @@ -244,11 +226,11 @@ "links": [ { "text": "2024 Filing Instructions Guide (FIG)", - "url": "https://files.ffiec.cfpb.gov/documentation/2024-hmda-fig.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/2024-hmda-fig.pdf" }, { "text": "2024 Supplemental Guide for Quarterly Filers", - "url": "https://files.ffiec.cfpb.gov/documentation/supplemental-guide-for-quarterly-filers-for-2024.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/supplemental-guide-for-quarterly-filers-for-2024.pdf" } ] }, @@ -278,10 +260,7 @@ "text": "Data Browser", "url": "https://ffiec.cfpb.gov/data-browser/data/" }, - { - "text": "Maps", - "url": "https://ffiec.cfpb.gov/data-browser/maps/" - } + { "text": "Maps", "url": "https://ffiec.cfpb.gov/data-browser/maps/" } ] }, { @@ -394,11 +373,11 @@ "links": [ { "text": "2023 Filing Instructions Guide (FIG)", - "url": "https://files.ffiec.cfpb.gov/documentation/2023-hmda-fig.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/2023-hmda-fig.pdf" }, { "text": "2023 Supplemental Guide for Quarterly Filers", - "url": "https://files.ffiec.cfpb.gov/documentation/supplemental-guide-for-quarterly-filers-for-2023.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/supplemental-guide-for-quarterly-filers-for-2023.pdf" } ] }, @@ -434,7 +413,7 @@ "links": [ { "text": "APOR Table - 7.11.22", - "url": "https://files.ffiec.cfpb.gov/apor/7_11_2022_APOR_tables.csv" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/7_11_2022_APOR_tables.csv" } ], "url": "" @@ -493,7 +472,7 @@ "links": [ { "text": "2022 Filing Instructions Guide (FIG)", - "url": "https://files.ffiec.cfpb.gov/documentation/2022-hmda-fig.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/2022-hmda-fig.pdf" } ] }, @@ -517,11 +496,11 @@ "links": [ { "text": "2022 Filing Instructions Guide (FIG)", - "url": "https://files.ffiec.cfpb.gov/documentation/2022-hmda-fig.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/2022-hmda-fig.pdf" }, { "text": "2022 Supplemental Guide for Quarterly Filers", - "url": "https://files.ffiec.cfpb.gov/documentation/supplemental-guide-for-quarterly-filers-for-2022.pdf" + "url": "https://s3.amazonaws.com/cfpb-hmda-public/prod/help/supplemental-guide-for-quarterly-filers-for-2022.pdf" } ] }, @@ -729,9 +708,7 @@ "type": "update", "product": "documentation", "description": "The Disclosure Reports page was updated with improved guidance for finding your Insitutions Register Summary (IRS).", - "url": [ - "https://github.com/cfpb/hmda-frontend/issues/438" - ] + "url": ["https://github.com/cfpb/hmda-frontend/issues/438"] }, { "date": "04/22/20", @@ -797,4 +774,4 @@ "url": "https://github.com/cfpb/hmda-platform-ui/issues/1317" } ] -} \ No newline at end of file +}