Skip to content

Add notification when project gets removed from a challenge

Unit Acceptance test

When a Challenge admin accept a project request to join his/her challenge

  • User 1 as a challenge's creator (and admin of the challenge) can create a challenge.
  • User 2 as a Project's creator (and admin of the project) can create a project and request to join the user 1's challenge.
  • User 1 accept the project of User 2.
  • User 2 and all project's admins will received a mail and website notification that <'Your request to join the %{object_type} "%{object_title}" was approved!'>

When a challenge admin reject a project request to join his/her challenge or remove from an accepted project from the challenge

  • User 1 reject the join request from User 2 for his/her challenge or remove an accepted project from his/her challenge.
  • User 2 and projects's admins will received a notification email / website notification <'The project "%{object_title}" has been rejected from the %{object_type} "%{object_title}"'>

DONE

  • Add notification method
  • Add after_remove callback
  • Add yml project_remove yml
  • Create project_remove MJML notif
  • Needs to add some tests
  • refacto code
  • Work on the TODO in the backend

Closes issue 340

Edited by Isabelle Lafont

Merge request reports