Notify assignee when todo deadline is expired feature #82

Closed
mikemix opened this Issue Jul 12, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@mikemix
Contributor

mikemix commented Jul 12, 2016

@prolic / @codeliner What's the requirement for this feature?

Am I supposed to subscribe to the event when the todo is marked as expired and notify the assignee about the fact?

@mikemix mikemix changed the title from Notify assignee when todo deadline is expired to Notify assignee when todo deadline is expired feature Jul 12, 2016

@prolic

This comment has been minimized.

Show comment
Hide comment
@prolic

prolic Jul 12, 2016

Member

@mikemix Exactly. Additionally you need to trigger this event, measure timeout with amqp or a cronjob

Member

prolic commented Jul 12, 2016

@mikemix Exactly. Additionally you need to trigger this event, measure timeout with amqp or a cronjob

@mikemix

This comment has been minimized.

Show comment
Hide comment
@mikemix

mikemix Jul 12, 2016

Contributor

What event am I supposed to trigger? Though just adding a subscriber when the MarkTodoAsExpired command is dispatched would be enough.

Contributor

mikemix commented Jul 12, 2016

What event am I supposed to trigger? Though just adding a subscriber when the MarkTodoAsExpired command is dispatched would be enough.

@prolic

This comment has been minimized.

Show comment
Hide comment
@prolic

prolic Jul 12, 2016

Member

The MarkTodoAsExpired command is not dispatched! Therefore we need a cronjob or amqp to check expired todos and send the command.

Member

prolic commented Jul 12, 2016

The MarkTodoAsExpired command is not dispatched! Therefore we need a cronjob or amqp to check expired todos and send the command.

@prolic

This comment has been minimized.

Show comment
Hide comment
@prolic

prolic Jul 12, 2016

Member

Ah sorry, the script for detecting expired todos is already there (https://github.com/prooph/proophessor-do/blob/master/scripts/mark_expired_todos.php). Sorry!

So you only need to attach a listener to TodoWasMarkedAsExpired and send an email to the user.

Member

prolic commented Jul 12, 2016

Ah sorry, the script for detecting expired todos is already there (https://github.com/prooph/proophessor-do/blob/master/scripts/mark_expired_todos.php). Sorry!

So you only need to attach a listener to TodoWasMarkedAsExpired and send an email to the user.

@codeliner

This comment has been minimized.

Show comment
Hide comment
@codeliner

codeliner Jul 30, 2016

Member

Added with #84

We should keep the issue open until it is merged to master.

Member

codeliner commented Jul 30, 2016

Added with #84

We should keep the issue open until it is merged to master.

@prolic prolic closed this Dec 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment