File tree Expand file tree Collapse file tree 5 files changed +7
-73
lines changed
scala/hmda/persistence/demo Expand file tree Collapse file tree 5 files changed +7
-73
lines changed Original file line number Diff line number Diff line change 1
- 2017|6999998|in-progress| true|1484842271000|1487520671000
2
- 2017|6999999|not-started| false|1484842271000|1484842271000
3
- 2016|6999999|not-started| false|1484842271000|1484842271000
1
+ 2017|6999998|true|1484842271000|1487520671000
2
+ 2017|6999999|false|1484842271000|1484842271000
3
+ 2016|6999999|false|1484842271000|1484842271000
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,15 +54,12 @@ object DemoData {
54
54
55
55
val demoFilings = DemoFilings .values
56
56
57
- val demoSubmissions = DemoSubmissions .values
58
-
59
57
implicit val timeout = Timeout (5 .seconds)
60
58
61
59
def loadDemoData (system : ActorSystem ): Unit = {
62
60
Thread .sleep(500 )
63
61
loadInstitutions(demoInstitutions, system)
64
62
loadFilings(demoFilings, system)
65
- loadSubmissions(demoSubmissions, system)
66
63
}
67
64
68
65
def loadTestData (system : ActorSystem ): Unit = {
Original file line number Diff line number Diff line change @@ -12,29 +12,19 @@ object DemoFilings extends ResourceUtils {
12
12
val values = line.split('|' ).map(_.trim)
13
13
val period = values(0 )
14
14
val institutionId = values(1 )
15
- val filingStatus = toFilingStatus(values(2 ))
16
- val filingRequired = values(3 ).toBoolean
17
- val start = values(4 ).toLong
18
- val end = values(5 ).toLong
15
+ val filingRequired = values(2 ).toBoolean
16
+ val start = values(3 ).toLong
17
+ val end = values(4 ).toLong
19
18
20
19
Filing (
21
20
period,
22
21
institutionId,
23
- filingStatus ,
22
+ NotStarted ,
24
23
filingRequired,
25
24
start,
26
25
end
27
26
)
28
27
}.toSeq
29
28
}
30
29
31
- def toFilingStatus (text : String ): FilingStatus = {
32
- text match {
33
- case " not-started" => NotStarted
34
- case " in-progress" => InProgress
35
- case " completed" => Completed
36
- case " cancelled" => Cancelled
37
- }
38
- }
39
-
40
30
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments