Skip to content

Commit

Permalink
Merge pull request #4937 from PatrickGoRaft/filing-season-prep-resolu…
Browse files Browse the repository at this point in the history
…tions

updates to support 2025 for mlar submisisons for future proofing
  • Loading branch information
PatrickGoRaft authored Dec 2, 2024
2 parents 0dc1c8d + d1c151d commit 49544d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 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
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 49544d3

Please sign in to comment.