From f40c09661a4b2e8a8693a2bd36004d9c3a78dab0 Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Thu, 28 Apr 2022 12:29:46 -0400 Subject: [PATCH] 1.0.0 release --- CHANGES.rst | 72 ++++++++++++++++++++++++++++++ openwisp_notifications/__init__.py | 2 +- requirements-test.txt | 2 +- requirements.txt | 9 ++-- setup.py | 2 +- 5 files changed, 78 insertions(+), 9 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index cca63b62..a259511f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,78 @@ Changelog ========= +Version 1.0.0 [2022-04-28] +-------------------------- + +Features +~~~~~~~~ + +- Introduced mechanism to `clear cache on specific signals + `_ + +Changes +~~~~~~~ + +Backward incompatible changes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +- Removed notification widget and toast template tags: + the template tags "notification_widget" and "notification_toast" have been + removed and their HTML is added directly to the admin/base_site.html template +- Changed the API URL prefix to make it consistent with other OpenWISP modules + +Dependencies +^^^^^^^^^^^^ + +- Dropped support for Python 3.6 +- Added support for Python 3.8 and 3.9 +- Dropped support for Django 2.2 +- Added support for Django 3.2 and 4.0 +- Updated django channels to 3.0.x +- Upgraded celery to 5.2.x +- Upgraded openwisp-utils to 1.0.x + +Other changes +^^^^^^^^^^^^^ + +- Restyled widget to new OpenWISP theme plus various UI fixes and improvements +- Restyled notification email template +- When clicking on the mark as read button, the notification widget now + instantaneously marks notification as read instead of waiting for the + API response +- Added ``models`` parameter to ``register_notification_type`` +- Switch to openwisp-utils email template +- Optimized query for flagging all notification as read via API +- Added celery time limits to tasks except ``delete_old_notifications`` + (which may take a long time to finish in big installations) +- Changed wording of "unsubscribe" button, which has been renamed to + "Silence notifications" +- Added dedicated channel layer group for each user to avoid + generating warnings like + ``63 of 67 channels over capacity in group ow_notification`` + +Bugfixes +~~~~~~~~ + +- Fixed a bug which caused to lose notification preferences of users +- Fixed extensibility of openwisp-users: + removed openwisp-users as a direct dependency from migrations file + because it was creating issues when extending openwisp-users +- Fixed multiple jquery inclusions in ``base_site.html`` +- Fixed WSS connection error when running on http +- Fixed creation of notification settings for superuser +- Fixed unregistered notification type breaking API +- Fixed closing notification toast on slow connections +- Fixed notification storms: when many notifications are created + due to severe network outages, the UI is not flooded anymore +- Fixed browsable API view for NotificationReadAllView +- Added error handling for sending emails when notification settings + for a specific user are not present +- Fixed unsubscribe / silence notifications button alignment +- Fixed Swagger API doc issues +- Fixed ``create_notification`` command to honor organization notification + preferences + Version 0.3.0 [2020-11-20] -------------------------- diff --git a/openwisp_notifications/__init__.py b/openwisp_notifications/__init__.py index 8c169c81..4939cfd9 100644 --- a/openwisp_notifications/__init__.py +++ b/openwisp_notifications/__init__.py @@ -1,4 +1,4 @@ -VERSION = (0, 3, 0, 'final') +VERSION = (1, 0, 0, 'final') __version__ = VERSION # alias diff --git a/requirements-test.txt b/requirements-test.txt index 321a6a29..8e318ca5 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ coveralls~=2.1.0 django-redis~=4.12.1 django-cors-headers~=3.5.0 -openwisp-utils[qa] @ https://github.com/openwisp/openwisp-utils/tarball/master +openwisp-utils[qa]~=1.0.1 redis~=3.5.3 channels_redis~=3.2.0 pytest-asyncio~=0.14.0 diff --git a/requirements.txt b/requirements.txt index fadc4053..4036e285 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ -django-notifications-hq @ https://github.com/django-notifications/django-notifications/tarball/master +django-notifications-hq~=1.7.0 channels~=3.0.2 -# TODO set the next point release of openwisp-users when ready -openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/master -# TODO set the next point release of openwisp-utils when ready -openwisp-utils[rest,celery] @ https://github.com/openwisp/openwisp-utils/tarball/master -swapper~=1.3.0 +openwisp-users~=1.0.0 +openwisp-utils[rest,celery]~=1.0.1 markdown~=3.2.0 diff --git a/setup.py b/setup.py index a5d62cbd..95ac959c 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def get_install_requires(): version=get_version(), license='GPL3', author='Gagan Deep', - author_email='pandafy.dev@gmail.com', + author_email='support@openwisp.io', description='Notifications module of OpenWISP', long_description=open('README.rst').read(), url='http://openwisp.org',