Skip to content
Snippets Groups Projects
  1. Sep 07, 2023
  2. Sep 06, 2023
  3. Jun 08, 2023
  4. Apr 07, 2023
  5. Feb 15, 2023
  6. Dec 05, 2022
  7. Oct 15, 2022
  8. Sep 05, 2022
  9. Aug 07, 2022
  10. Aug 03, 2022
  11. Aug 01, 2022
  12. Apr 07, 2022
  13. Mar 28, 2022
  14. Mar 23, 2022
  15. Mar 22, 2022
  16. Mar 17, 2022
    • Konrad Mohrfeldt's avatar
      refactor: use django_filters FilterSet for APINoteViewSet · 7eaa0a49
      Konrad Mohrfeldt authored
      This change re-implements all existing collection filters for the
      APINoteViewSet with a FilterSet. No breaking changes are expected.
      7eaa0a49
    • Konrad Mohrfeldt's avatar
      refactor: implement active filter for various viewsets · 2d9fd804
      Konrad Mohrfeldt authored
      APICategoryViewSet, APITypeViewSet, APITopicViewSet,
      APIMusicFocusViewSet, APIFundingCategoryViewSet, APILanguageViewSet, and
      APIHostViewSet all used the same base class implementing get_queryset
      for filtering by their active state. This is now handled by a generic
      FilterSet.
      2d9fd804
    • Konrad Mohrfeldt's avatar
      refactor: use django_filters FilterSet for APITimeSlotViewSet · 6c8236d2
      Konrad Mohrfeldt authored
      This change re-implements all existing collection filters for the
      APITimeSlotViewSet with a FilterSet. No breaking changes are expected,
      though there are some changes in semantics:
      
      * The start and end query parameters no longer need to be specified
        together. If users only want to modify the start or end date they
        can now do that.
        If start is specified and end is not, end will be start + 60 days.
      * If end was not set it would default to start + 60 days at 00:00.
        This is now fixed and end will be start + 60 days at 23:59:59.
      * end now uses time.max, which selects the latest possible time on
        the specified date.
      * The surrounding-filter now accepts a datetime value and will be set
        to the current time if only the query parameter but no value
        has been set.
      * All filters are now applied in series. This wasn’t the case for
        every filter, e.g. the surrounding-filter would return early.
      6c8236d2
    • Konrad Mohrfeldt's avatar
      refactor: use django_filters FilterSet for APIShowViewSet · 0fed711d
      Konrad Mohrfeldt authored
      This change re-implements all existing collection filters for the
      APIShowViewSet with a FilterSet. No breaking changes are expected,
      though there are some changes in semantics:
      
      * The owner, host, musicfocus, language, category, and topic
        filters now accept multiple values (i.e. ?category=2,3)
      * The owner, host, musicfocus, language, category, topic, and type
        filter values are now validated and may be rejected as invalid if
        the referenced object does not exist.
      0fed711d
Loading