Skip to content

Commit

Permalink
Merge branch 'master' into cve-nov-2024-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredb96 committed Dec 2, 2024
2 parents a9d07ac + 49544d3 commit 6c1b304
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class ModifiedLarRepository(databaseConfig: DatabaseConfig[JdbcProfile]) {
case 2021 => "modifiedlar2021"
case 2022 => "modifiedlar2022"
case 2023 => "modifiedlar2023"

case _ => "modifiedlar2021"
case 2024 => "modifiedlar2024"
case 2025 => "modifiedlar2025"
case _ => "modifiedlar2024"
}

/**
Expand Down
11 changes: 10 additions & 1 deletion hmda-analytics/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,17 @@ hmda {
larDeletion = ${?HMDA-LAR-DELETE}
historyInsertion = true
historyInsertion = ${?HMDA-HISTORY-INSERT}
yearsAvailable = "2018,2019,2020,2021,2022,2023,2024"
yearsAvailable = "2018,2019,2020,2021,2022,2023,2024,2025"
yearsAvailable = ${?ANALYTICS_YEARS_AVAILABLE}
2025 {
tsTableName = "transmittalsheet2025"
tsTableName = ${?TS_TABLE_NAME_2025}
tsTableNameQ1 = "ts2025_q1"
tsTableNameQ1 = ${?TS_TABLE_NAME_2025_Q1}
larTableName = "loanapplicationregister2025"
larTableName = ${?LAR_TABLE_NAME_2025}
larTableNameQ1 = "lar2025_q1"
}
2024 {
tsTableName = "transmittalsheet2024"
tsTableName = ${?TS_TABLE_NAME_2024}
Expand Down
2 changes: 1 addition & 1 deletion institutions-api/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ filter {
bank-filter-list=${?BANK_FILTER_LIST}
}
counts:{
deafultInstitution:"institutions2023_q_graph_snapshot_12182023"
deafultInstitution:"institutions2024_q_graph_snapshot_07112024"

transmittalSheet:{
2023 = "transmittalsheet2023_snapshot_05012024"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,17 @@ object ModifiedLarApp extends App {
val censusTractMap2023: Map[String, Census] =
CensusRecords.indexedTract2023

val censusTractMap2024: Map[String, Census] =
CensusRecords.indexedTract2024

val censusTractMap2025: Map[String, Census] =
CensusRecords.indexedTract2025

// database configuration is located in `common` project
val databaseConfig = DatabaseConfig.forConfig[JdbcProfile]("db")
val repo = new ModifiedLarRepository(databaseConfig)
val modifiedLarPublisher =
classicSystem.spawn(ModifiedLarPublisher.behavior(censusTractMap2018, censusTractMap2019, censusTractMap2020,censusTractMap2021,censusTractMap2022,censusTractMap2023, repo), ModifiedLarPublisher.name)
classicSystem.spawn(ModifiedLarPublisher.behavior(censusTractMap2018, censusTractMap2019, censusTractMap2020,censusTractMap2021,censusTractMap2022,censusTractMap2023,censusTractMap2024,censusTractMap2025, repo), ModifiedLarPublisher.name)
val processKafkaRecord: String => Future[Done] =
submitForPersistence(modifiedLarPublisher)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ object ModifiedLarPublisher {
indexTractMap2021: Map[String, Census],
indexTractMap2022: Map[String, Census],
indexTractMap2023: Map[String, Census],
indexTractMap2024: Map[String, Census],
indexTractMap2025: Map[String, Census],
modifiedLarRepo: ModifiedLarRepository,
readRawData: ActorSystem[_] => SubmissionId => Source[LineAdded, NotUsed] = as => id => HmdaQuery.readRawData(id)(as)
): Behavior[ModifiedLarCommand] =
Expand Down

0 comments on commit 6c1b304

Please sign in to comment.