Skip to content

Commit

Permalink
DRTII-1675 Remove duplicate terminal column from regional export
Browse files Browse the repository at this point in the history
  • Loading branch information
richbirch committed Nov 20, 2024
1 parent 24aeac3 commit cfe17cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion server/src/main/scala/services/exports/FlightExports.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object FlightExports {
val maybePaxSummary = maybeManifest.flatMap(PassengerInfo.manifestToFlightManifestSummary)
val natsSummary = s""""${nationalitiesFromSummary(maybePaxSummary)}""""
val agesSummary = s""""${ageRangesFromSummary(maybePaxSummary)}""""
s"$regionName,$portName,$terminalName,$flightPart,$invalidApi,$splitsPart,$apiPart,$natsSummary,$agesSummary\n"
s"$regionName,$portName,$flightPart,$invalidApi,$splitsPart,$apiPart,$natsSummary,$agesSummary\n"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions server/src/test/scala/services/exports/FlightExportsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class FlightExportsSpec extends CrunchTestLike {

val result = Await.result(csvStream.runWith(Sink.seq), 1.second)
val expected = List(
"""North,MAN,T1,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,T1,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,T1,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
"""North,MAN,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|""".stripMargin
)

Expand All @@ -68,9 +68,9 @@ class FlightExportsSpec extends CrunchTestLike {

val result = Await.result(csvStream.runWith(Sink.seq), 1.second)
val expected = List(
"""North,MAN,T1,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,T1,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,T1,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
"""North,MAN,BA0002,T1,JFK,/,Scheduled,2020-06-02 01:05,,,,,,,2020-06-02 01:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,BA0001,T1,JFK,/,Scheduled,2020-06-01 21:00,,,,,,,2020-06-02 02:30,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|North,MAN,BA0003,T1,JFK,/,Scheduled,2020-06-03 01:05,,,,,,,2020-06-02 23:55,100,95,95,,,,,,,,,,,,,,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",""
|""".stripMargin
)

Expand Down

0 comments on commit cfe17cd

Please sign in to comment.