ESCL / pjtracker

Project Tracker system
http://pjtracker.com
0 stars 0 forks source link

Improve signal-driven notification system #20

Open kako-nawao opened 8 years ago

kako-nawao commented 8 years ago

We have a few signal-driven (aka event-driven) notifications, which are static (built into the code). We should probably extend this to allow customizing listeners, setting up conditions and whatnot (alert me if activity X reaches 10000 approved hours).

The concept would be:

I implemented something along those lines once, but it was using a custom event subsystem (not django signals) and storing them in MongoDB. This could be done without it turning into a nightmare if conditions are simple, something like {actor_x.attribute_x} {relation} {value | actor_y.attribute_y}. We'd also need to validate listeners somehow, to ensure that they won't create endless loops.

omelendrez commented 8 years ago

I like that. It's very marketable. The project manager can receive an alert if some activity reached a specific percentile of consumed hours. Also, from the equipment point of view, Workshop would like to be informed if an equipment had been used for specific number of hours so it can go for maintenance.