Hey fellas,
I'm currently in discussion with my team about how best to go at this business logic.
This is a television media environment, where there are three schedules per channel. In order of priority; schedule A, B, and C.
Let's say the user is interested in looking at a weeks worth of scheduling for a particular channel, they only want to see one schedule made up from A, B, and C, depending on whether they have any data.
So, if A has data on Monday and Tuesday, B on Tuesday through Thursday, and C for the whole week, the dataset should go:
Monday (from A)
Tuesday (from A)
Wednesday (from B)
Thursday (from B)
Friday (from C)
The week is just an example. The real period is specified at runtime through a date range, which could be over a month long.
How would you approach this?
I'm currently in discussion with my team about how best to go at this business logic.
This is a television media environment, where there are three schedules per channel. In order of priority; schedule A, B, and C.
Let's say the user is interested in looking at a weeks worth of scheduling for a particular channel, they only want to see one schedule made up from A, B, and C, depending on whether they have any data.
So, if A has data on Monday and Tuesday, B on Tuesday through Thursday, and C for the whole week, the dataset should go:
Monday (from A)
Tuesday (from A)
Wednesday (from B)
Thursday (from B)
Friday (from C)
The week is just an example. The real period is specified at runtime through a date range, which could be over a month long.
How would you approach this?