mabouchalkha / foodinspectors

Frontend for food inspectors
https://foodinspector.herokuapp.com
1 stars 0 forks source link

Defined email templates for notification #3

Open mabouchalkha opened 9 years ago

mabouchalkha commented 9 years ago

Defined email templates for notification

example in user setting

Notify me by email about: Events Notifications about activity on food inspector such as: inventory alerts, order updates, notes, recipe, etc. @cindoum We will also need an 'event system'.

Like we were talking earlier, it could be nice to have a ruby json service (not the web app) listening. We could send an event to that service from a delayed_job on the web app.

Flow example: A user start a receipe He add 50mg of 'farine' The rails controller add the farine and see that the 'stock limit' has been reached. The action trigger a delayed job that will contact the event service.

What about it?

We need to split this out into several ticket tough. -Email template -Event service -Delayed job -etc

We need to have discussion about this one to see how we gonna handle that...