Skip to content
Snippets Groups Projects
  1. Nov 26, 2024
  2. Nov 25, 2024
    • Konrad Mohrfeldt's avatar
    • Konrad Mohrfeldt's avatar
      fix: handle episode deletions in timeslot repetition_of_id field · fec41ab1
      Konrad Mohrfeldt authored
      The update logic of the repetition_of field did not consider cases in
      which the episode field of TimeSlot objects is deleted.
      
      This fix populates the TimeSlot’s repetition_of_id field with a subquery
      instead of using a separate database field for it.
      
      The decision to keep repetition_of as a separate database field was made
      on the assumption that this would be a performance problem. However, the
      subquery for the repetition_of field is quite performant, especially
      with a separate database index. In contrast, the update logic for a
      materialized repetition_of field is quite complex and it is easy to miss
      cases that should have updated the field.
      
      As long as we don’t have an actual use case in which retrieving
      timeslots becomes slow because of this subquery, we should refrain from
      materializing the field.
      fec41ab1
    • Konrad Mohrfeldt's avatar
    • Konrad Mohrfeldt's avatar
      feat: re-implement notes as timeslot independent episodes · e4b8bcdb
      Konrad Mohrfeldt authored
      This change makes the notes independent of timeslots and renames them to
      episodes.
      
      Multiple timeslots can now refer to the same episode introducing a new
      and more convenient model for repetitions that does not duplicate
      content.
      
      This change also makes it possible for users to pre-plan their episodes
      without the need for radio planners to create a timeslot for the episode
      first.
      
      refs #249
      refs aura#382
      e4b8bcdb
  3. Nov 22, 2024
  4. Nov 21, 2024
    • Konrad Mohrfeldt's avatar
      feat: add re-usable validator mixin for write permissions · 3ff518fa
      Konrad Mohrfeldt authored
      We have introduced a system for custom field write permissions that
      allows administrators to control which users can write specific fields
      in steering.
      
      This system is based on specific model permissions in the form of:
      	{app_label}.edit__{model_name}__{field_name}
      
      This mixin makes it easy to check said permissions simply by including
      it as part of the serializer.
      3ff518fa
  5. Nov 20, 2024
  6. Nov 19, 2024
  7. Nov 15, 2024
  8. Nov 13, 2024
  9. Nov 12, 2024
  10. Nov 11, 2024
Loading