selectInterferingFlightsFromAirline not working as expected
Calling endpoint for interfering flights with timeframe with parameters:
- airlineId: 4eb6b764-d8a9-4e4d-b9e5-1bf187c36f10
- timeStart: 2024-07-27T00:10:27.445Z
- timeEnd: 2024-07-29T00:10:27.445Z
- endpoint: http://localhost:5003/api/v1/flights/airlines/4eb6b764-d8a9-4e4d-b9e5-1bf187c36f10/between?timeStart=2024-07-27T00%3A10%3A27.445Z&timeEnd=2024-07-29T00%3A10%3A27.445Z
Flights:
...
"flights": [
{
"guid": "23217233-f7d5-4c0e-8ee5-49f136ea2724",
"airlineId": "4eb6b764-d8a9-4e4d-b9e5-1bf187c36f10",
"planeId": "3e84baed-6f5d-43f0-b4ac-407ee3b3f9ed",
"originId": "0fc57782-7deb-439e-af0b-9c6b9d9254e1",
"destinationId": "fa549a29-b109-4013-9781-bde38943de06",
"departTime": "2024-05-29T00:11:27.445Z",
"arriveTime": "2024-07-29T00:11:27.445Z",
"stewards": [
"20757688-53cd-4278-b541-dfc55900e6e8",
"ed4026e4-b745-4ea9-aac8-dcb3f41030f5"
]
}
]
...
Expected response:
[
{
"guid": "23217233-f7d5-4c0e-8ee5-49f136ea2724",
"airlineId": "4eb6b764-d8a9-4e4d-b9e5-1bf187c36f10",
"planeId": "3e84baed-6f5d-43f0-b4ac-407ee3b3f9ed",
"originId": "0fc57782-7deb-439e-af0b-9c6b9d9254e1",
"destinationId": "fa549a29-b109-4013-9781-bde38943de06",
"departTime": "2024-05-29T00:11:27.445Z",
"arriveTime": "2024-07-29T00:11:27.445Z",
"stewards": [
"20757688-53cd-4278-b541-dfc55900e6e8",
"ed4026e4-b745-4ea9-aac8-dcb3f41030f5"
]
}
]
Actual response:
[]
Possible issue creating unwanted results Query to get interfering flights from repository does not fetch flights that start and end inside the timeframe, only if they:
- start outside and end inside the timeframe
- start inside and end outside the timeframe
Edited by Tomáš Tomala