Skip to content
Snippets Groups Projects
Commit b01c9bf7 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix(program-generation): fix undefined behaviour around start and end query parameters

The radio program is a continuous stream of program slots. Clients can
expect that the program generated for their queries fit the start and
end parameters given by the client. However, they *cannot* expect the
actual radio program (in the form of Timeslot objects) to fit these
artifical boundaries.

As the program endpoint should always output the actual program
broadcasted by the radio we must include timeslots that
  * have started before the specified start query but end after it
  * or end after the specified end query but start before it.

The changes in this commit ensure that the program matches the given
range exactly and that planned timeslots in that range are always
included.
parent 3c82c6f6
No related branches found
No related tags found
1 merge request!54fix(program-generation): fix undefined behaviour around start and end query parameters
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment