Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ private class ReportingHttpApi(config: Config)(implicit ec: ExecutionContext) ex
private val institutionRepository2022 = new InstitutionRepository(databaseConfig, "institutions2022")
private val institutionRepository2023 = new InstitutionRepository(databaseConfig, "institutions2023")
private val institutionRepository2024 = new InstitutionRepository(databaseConfig, "institutions2024")
private val institutionRepository2025 = new InstitutionRepository(databaseConfig, "institutions2025")


private val filerListRoute: Route = {
Expand Down Expand Up @@ -141,6 +142,20 @@ private class ReportingHttpApi(config: Config)(implicit ec: ExecutionContext) ex
)
.toSet
)
case 2025 =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we need to clean this up so that we don't need to copy paste this code for every year. But looks good otherwise.

institutionRepository2025
.getFilteredFilers(bankFilterList)
.map(sheets =>
sheets
.map(instituionEntity =>
HmdaFiler(
instituionEntity.lei.toUpperCase,
instituionEntity.respondentName,
instituionEntity.activityYear.toString
)
)
.toSet
)
case _ => Future(Set(HmdaFiler("", "", "")))
}

Expand All @@ -163,9 +178,7 @@ private class ReportingHttpApi(config: Config)(implicit ec: ExecutionContext) ex
case 2022 => institutionRepository2022
case 2023 => institutionRepository2023
case 2024 => institutionRepository2024



case 2025 => institutionRepository2025
}
val resultset = for {
msaMdsResult <- repo.msaMds(lei, year)
Expand Down
11 changes: 11 additions & 0 deletions kubernetes/config-maps/file-proxy-s3-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: file-proxy-s3-configmap
annotations:
reloader.stakater.com/match: "true"
data:
aws-environment: dev
s3-private-bucket: cfpb-hmda-export
s3-public-bucket: cfpb-hmda-public
aws-region: us-east-1
10 changes: 5 additions & 5 deletions kubernetes/file-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ spec:
- name: AWS_ENVIRONMENT
valueFrom:
configMapKeyRef:
name: s3-configmap
name: file-proxy-s3-configmap
key: aws-environment
- name: S3_PRIVATE_BUCKET
valueFrom:
configMapKeyRef:
name: s3-configmap
name: file-proxy-s3-configmap
key: s3-private-bucket
- name: BANK_FILTER_LIST
valueFrom:
Expand All @@ -75,7 +75,7 @@ spec:
- name: AWS_REGION
valueFrom:
configMapKeyRef:
name: s3-configmap
name: file-proxy-s3-configmap
key: aws-region
- name: KEYCLOAK_REALM_URL
valueFrom:
Expand All @@ -95,12 +95,12 @@ spec:
- name: S3_PUBLIC_BUCKET
valueFrom:
configMapKeyRef:
name: s3-configmap
name: file-proxy-s3-configmap
key: s3-public-bucket
- name: S3_PRIVATE_BUCKET
valueFrom:
configMapKeyRef:
name: s3-configmap
name: file-proxy-s3-configmap
key: s3-private-bucket
- name: DYNAMIC_YEARS
value: {{ .Values.hmda.dynamic_years | quote }}
Expand Down
Loading