Skip to content

v1.1.0

Compare
Choose a tag to compare
@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD released this 30 Sep 14:01
· 11 commits to main since this release

✨ Features

  • feat(migrations): Add db_comment migration file. (f6acab9)

    • Added a migration file to include database comments for improved documentation of database schema fields.
  • feat(conf): Add exclude_serializer_null_fields config. (cd0e648)

    • Introduced a new configuration option to exclude null fields in serializer responses dynamically.
  • feat(models): Add db_comment for various models. (ce29509, 52e236b, fd96159, 268bcff)

    • Added db_comment to fields in the Notification, NotificationRecipient, NotificationSeen, and DeletedNotification models for better database schema clarity and maintenance.
  • feat(queryset): Add NotificationDataAccessLayer custom manager. (88a6f92)

    • Implemented a custom manager providing data access methods for notifications, including creating, updating, and filtering notifications.
  • feat(admin): Add dynamic admin site support for Admin. (114ff1c)

    • Integrated dynamic support for custom admin sites in the dj-notification-api package through configurable admin site settings.

🛠️ Refactoring

  • refactor(serializers): Update serializers to apply exclude null fields config. (842aed0)

    • Refactored to_representation method of serializers to accommodate the new configuration for excluding null fields.
  • refactor(models): Update model Manager class and apply ModelManager to NotificationViewSet. (84d460d, b790f57, a420ca5)

    • Refined the Notification model’s manager for better data handling and incorporated the new manager into API viewsets.

🐛 Bug Fixes

  • fix(throttlings): Fix missing rate for 'user' scope error. (43f0639)
    • Fixed an issue where the throttle rates for different user roles were missing or incorrectly applied.

📚 Documentation

  • docs(contributing): Update contributing documentation to add migration-linter hints. (4c863e0)
    • Expanded the contributing guide to include information and usage hints for the new migration-linter tool.

🔧 Chores

  • chore(pyproject): Add django-migration-linter config. (2a29525)

    • Added django-migration-linter as a development dependency and pre-commit hook for migration linting.
  • chore(dependency): Update rest_framework minimum version & pytest marker. (69d7906)

    • Updated the minimum required version of django-rest-framework and configured pytest markers for testing compatibility.

✅ Tests

  • tests: Update test configurations for Manager and API tests. (1ffef3a, c1339b2)
    • Applied the new ModelManager to the test cases for better validation and coverage of the new data access layer.