Skip to content

Commit cda77d5

Browse files
author
Nick Grippin
authored
Merge pull request cfpb#1038 from schbetsy/env-s025
Use separate EDITS_DEMO_MODE env var to control S025
2 parents 3590e9d + 54df027 commit cda77d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

validation/src/main/resources/application.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ hmda {
1010
timeout = 5
1111
}
1212
persistent-actor-timeout = 60
13+
edits.demoMode = false
14+
edits.demoMode = ${?EDITS_DEMO_MODE}
1315
}
1416

1517
hmda.validation.quality {

validation/src/main/scala/hmda/validation/rules/ts/syntactical/S025.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class S025 private (institution: Institution) extends EditCheck[HasControlNumber
2020

2121
def apply(input: HasControlNumber): Result = compare(input.respondentId, input.agencyCode)
2222

23-
val demoMode = ConfigFactory.load().getBoolean("hmda.isDemo")
23+
val demoMode = ConfigFactory.load().getBoolean("hmda.edits.demoMode")
2424

2525
private def compare(filingRespId: String, filingAgencyCode: Int): Result = {
2626
// in demo mode, always return Success. Otherwise, run the usual check.

0 commit comments

Comments
 (0)