canvas-lms/public
Alex Boyd d3ebff04a9 Link to reset bounce counts for communication channels
Fixes CNVS-20747

Test plan:
 - Create a user
 - Add an email address to the user
   - The address doesn't need to be able to actually receive
     messages, so put anything you want in here
 - Make note of the user's id
 - Assuming the user's id is 42, open a rails console and type:
     c = User.find(42).email_channel
     c.bounce_count = 3
     c.save!
 - Log in as the user (actually log in, don't just masquerade)
 - Visit the user's settings page
 - Verify you see the usual warning triangle next to the user's
   email address
 - Verify you don't see the reset icon (just a refresh-like icon,
   two arrows pointing in a circle)
 - Log in as a siteadmin
 - Masquerade as the user
 - Visit the user's settings page
 - Verify you see both the warning triangle and the reset icon
 - Click the reset icon
 - Verify that the reset icon and the warning triangle go away
 - Refresh the page and verify that they're still gone
 - Assuming the user's id is 42, open a rails console and type:
     c = User.find(42).email_channel
     c.bounce_count = 1
     c.save!
 - Log in as a siteadmin
 - Masquerade as the user
 - Visit the user's settings page
 - Verify you see only the reset icon and not the warning
   triangle
 - Click the reset icon
 - Verify that it goes away
 - Refresh the page and verify that it's still gone

Change-Id: Ibd9d2e04555be2ec3eae811fd93f2cba0645d870
Reviewed-on: https://gerrit.instructure.com/55139
Reviewed-by: Joel Hough <joel@instructure.com>
Tested-by: Jenkins
QA-Review: Adrian Russell <arussell@instructure.com>
Product-Review: Allison Weiss <allison@instructure.com>
2015-11-03 00:43:35 +00:00
..
fonts Make LTI configurations accept canvas icon class 2015-09-21 17:59:40 +00:00
images Improve dashboard loading and view toggle UX 2015-10-05 23:34:02 +00:00
javascripts Link to reset bounce counts for communication channels 2015-11-03 00:43:35 +00:00
media_record switch to the speex codec for the flash recording widget 2015-04-23 16:36:30 +00:00
partials use handlebars for media_comments partial 2015-09-23 19:09:32 +00:00
vendor/tinymce_themes/light Upgrade TinyMCE to 4.1.7! 2015-03-12 17:52:31 +00:00
422.html Initial commit. 2011-01-31 18:57:29 -07:00
500.html replace all .button(s) with .btn 2012-11-14 13:29:30 -07:00
_crossdomain.xml non-flash direct-to-s3 changes 2011-02-11 10:49:53 -07:00
apple-touch-icon.png ThemeEditor: fix 404 to default preview images 2015-08-05 22:52:58 +00:00
dimdim_welcome.html Initial commit. 2011-01-31 18:57:29 -07:00
drawing.html Initial commit. 2011-01-31 18:57:29 -07:00
enable-javascript.html change name of javascript-is-required.html to enable-javascript.html. 2012-02-16 14:28:30 -07:00
equella_cancel.html Initial commit. 2011-01-31 18:57:29 -07:00
equella_success.html Initial commit. 2011-01-31 18:57:29 -07:00
favicon.ico provide high-res, color-coded favicons 2014-06-13 22:03:14 +00:00
ie-8-is-not-supported.html Better wording for ie8-is-not-supported page 2014-04-22 18:20:05 +00:00
loading_submission.html Initial commit. 2011-01-31 18:57:29 -07:00
robots.txt Initial commit. 2011-01-31 18:57:29 -07:00
simple_response.json Initial commit. 2011-01-31 18:57:29 -07:00