codalab/codalab — pull request #484 by ckcollab (2014-06-24 17:08:09+00:00)
Title: WIP - Notifications

**WIP**

### Tests

**Email notifications**

- [ ] Participant notified on accepted into competition
- [ ] Participant who opts out of “participation accepted” notifications doesn’t receive those emails
- [ ] Participant who opt out of “receiving mail from competition organizers” don’t receive those emails
- [ ] Participant notified on permission revoked
- [ ] Organizer notified on participant joining competition
- [ ] Organizer sends message to all ACCEPTED participants in competition
- [ ] Organizer email contents match data given in form
- [ ] Organizer who opts out of receiving “participant signed up” notifications doesn’t receive those emails

**Account email notifications updating**

- [ ] View returns 200 and no data for for valid POST data
- [ ] View returns 200 for GET request
- [ ] View returns 400 with descriptive errors when bad
- [ ] View returns 400 when no data is given
- [ ] View returns 403 for non logged in user

### Templates

**Emails**
- [ ] participation_accepted.html
- [ ] participation_revoked.html
- [ ] participation_requested.html
- [ ] participation_organizer_direct_email.html
- [ ] organizer_participation_requested.html
- [ ] organizer_participation_revoked.html

**Account management**
- [ ] update_account.html

### Final touches

- [ ] Privacy policy linked
- [ ] Adheres to [CAN-SPAM](http://www.business.ftc.gov/documents/bus61-can-spam-act-compliance-guide-business)
- [ ] **MERGED MASTER AND FIX MIGRATIONS!**