Rewrite Notification subsystem 67/63967/5
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)
commit81cfb043f06ab71da7c021a063f80f6df58305cc
tree862b6b8a653298d503ecbf082e747211e6d33442
parentd6e337fa62c32155941333fe8fedc28e4f663700
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:
dashboard/booking_communication_agent.py [deleted file]
dashboard/dashboard_api/__init__.py [deleted file]
dashboard/dashboard_api/api.py [deleted file]
dashboard/dashboard_notification/__init__.py [deleted file]
dashboard/dashboard_notification/notification.py [deleted file]
dashboard/src/api/models.py
dashboard/src/api/serializers/old_serializers.py
dashboard/src/api/urls.py
dashboard/src/api/views.py
dashboard/src/dashboard/tasks.py
dashboard/src/notifier/admin.py
dashboard/src/notifier/dispatchers.py [deleted file]
dashboard/src/notifier/manager.py
dashboard/src/notifier/migrations/0002_auto_20181102_1631.py [new file with mode: 0644]
dashboard/src/notifier/models.py
dashboard/src/notifier/views.py
dashboard/src/pharos_dashboard/settings.py
dashboard/src/templates/notifier/email_ended.txt [new file with mode: 0644]
dashboard/src/templates/notifier/email_fulfilled.txt [new file with mode: 0644]
dashboard/src/templates/notifier/end_booking.html [new file with mode: 0644]
dashboard/src/templates/notifier/inbox.html
dashboard/src/templates/notifier/new_booking.html [new file with mode: 0644]
dashboard/src/workflow/models.py