[STORY] as a ProKo, I want to be able to change the end-date of a schedule, so I can better plan the programme in advance

Parent: [EPIC] Complete Calendar Experience (aura#255 - closed)

When creating a new schedule for a show, the end-date for this schedule can be entered. This means that after that date, no further timeslots will be generated for the program. This end-date is shown as "last emission" / "Letzte Austrahlung" on the ShowInfo page. When a radiomaker decides to end his show in some other moment in the future, a ProKo should be able to change this end-date. Just deleting future timeslots from the calendar does not change the end-date of the schedule.

Proposed solutions

To realize this feature, two things are proposed:

  • Display the schedule start- and end-date in the schedule detail view. Place it as the first block in the schedule detail view. Optionally add other information about the schedule in this block.
  • The option to edit the end-date of a schedule should be integrated schedule detail view
  • Remove the context menu action "End after this broadcast" in all places (also calendar)
  • When the end date is sooner, existing timeslots have to be deleted in Steering.
  • In case the end date is extended, additional timeslots have to be created in Steering. In such cases also the conflict resulution dialog has to be used.

Open questions an considerations

Is there some change request in Steering required? Analysis from @eigenwijsje:

  • Using the PATCH method: it only "shortens" a schedule if lastDate==None or if the new lastDate is before the current one. It updates the schedule object and removes timeslots after the new lastDate.
  • Using the PUT method: it requires the full schedule JSON object,
    • If there are no conflicts: it updates the schedule and adds new timeslots
    • If there are conflicts: it requires the solutions JSON object in the request, but it "extends" the schedule.

So, steering already allows this.

Using two different HTTP methods for this seems fine to me. The conflict resolution code, including the responses is the same.

Feedback

o94: Vermutlich erübrigt sich das mit der Entwicklung von Ausstrahlungen und Schema, aber damit es nicht ganz untergeht: immer wieder ist es praktisch nachzuschauen, seit wann es eine Sendereihe gibt (erste Ausstrahlung). Wiederum das Enddatum hat bei Orange eine ganz konkrete Funktion: über diesen Termin hinaus werden keine Ausstrahlungstermine (z.B. für nächstes Jahr) automatisch generiert. Diese Funktionen (Startdatum / Enddatum) werden hier deshalb erwähnt, weil sie im o94 Backend gemeinsam unter allgemeinen Infos angezeigt werden. Es wäre praktisch, sie auf einen Blick mit den Grunddaten der Sendereihe nachschauen zu können

o94: Maggie hatte weiteren Austausch zum vorhehrigen Punkt mit Fiona: Es braucht die Möglichkeit das End Datum zu bearbeiten.

o94: Fiona und Pawel fragen sich bzw. Stark bezweifeln, ob es überhaupt gut oder notwendig ist, Sendeschema im Kalender auf der ebene eines einzelnen Sendetermins zu bearbeiten/zu beenden. Wir meinen: nicht. Begründung: das passiert eher selten, ist Folgenreich, soll also in einer eigenen Sektion möglich sein. Dadurch könnte man das Kontextmenü im Kalender entlasten.

o94: “Sendeschema nach diesem Termin beenden” – Funktion im Kalender. Gelöscht wird allerdigs die Sendung auch gleich. Also ist aktuell nicht “nach” sondern “zu diesem Termin beenden”...

o94: Sendungsschemata: ich sehe nicht, wo ich z.B. das Enddatum für eine Sendungsschemata ändern könnte. Also insgesamt finde ich die Edit Schedule oder Delete Schedule Bereiche nicht?

Edited by David Trattnig