Rewrite Notification subsystem
authorParker Berberian <pberberian@iol.unh.edu>
Wed, 24 Oct 2018 19:12:32 +0000 (15:12 -0400)
committerParker Berberian <pberberian@iol.unh.edu>
Wed, 7 Nov 2018 15:32:56 +0000 (10:32 -0500)
commit7b15aed77c6675286fd75b8832af58c992717ef9
treef4597f72433ce75ab46a1fd80f3635c987b38205
parentebc42347105caa2be52a8337372ae4793fe9182c
Rewrite Notification subsystem

In this commit:
 - delete a lot of really bad and / or unused code
 - redesign a much simpler Notification model
 - create and send notifications to the user's inbox on booking start & end
 - migrations
 - emails user when booking is ready and when it ends

Not in this commit:
 - Creating notifications from lab messages
 - warning messages when a booking is about to end
 - creating "summary" notifications when e.g. a booking has been fulfilled by a lab

Change-Id: I69b4dc36c3f2bce76d810106baadeef5a562cc7d
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
23 files changed:
booking_communication_agent.py [deleted file]
dashboard_api/__init__.py [deleted file]
dashboard_api/api.py [deleted file]
dashboard_notification/__init__.py [deleted file]
dashboard_notification/notification.py [deleted file]
src/api/models.py
src/api/serializers/old_serializers.py
src/api/urls.py
src/api/views.py
src/dashboard/tasks.py
src/notifier/admin.py
src/notifier/dispatchers.py [deleted file]
src/notifier/manager.py
src/notifier/migrations/0002_auto_20181102_1631.py [new file with mode: 0644]
src/notifier/models.py
src/notifier/views.py
src/pharos_dashboard/settings.py
src/templates/notifier/email_ended.txt [new file with mode: 0644]
src/templates/notifier/email_fulfilled.txt [new file with mode: 0644]
src/templates/notifier/end_booking.html [new file with mode: 0644]
src/templates/notifier/inbox.html
src/templates/notifier/new_booking.html [new file with mode: 0644]
src/workflow/models.py