require -> define in public/javascripts

Change-Id: I66f37744c278fac29fcf6f8e85326c84512da468
Conflicts:

	public/javascripts/account_authorization_configs.js
don't include api urls in hrefs for hiding todo items

test plan:
 * Ensure you can still hide todo items from your dashboard. (There is also an
   existing selenium spec).

Change-Id: Idef5ec52c90d52c8a586f610c167a8cddfe54bbf
Reviewed-on: https://gerrit.instructure.com/9178
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>

Conflicts:

	app/views/courses/_assignments_needing_grading.html.erb
hide content until scripts are loaded

Because RequireJS loads scripts asynchronously the
page renders but the JS hasn't been evaluated. In this
commit we hide all <a> and <button> tags until all
resources are loaded.

Previously the script tags blocked the page from
rendering while they loaded and executed.

When we have a single top-level require we can
remove this logic from the layout, and do it there
without all the polling fanfare.

Change-Id: I13771caf588508bacc6a70e4609c4af03bf522cd
Reviewed-on: https://gerrit.instructure.com/9191
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
load account javascript ourselves

Change-Id: Ifeae50a64035edecf81a5f97eee13c2f64cbdb65
fix public course home page fixes #7589

test plan:
 * create a public course, publish it, create an assignment
 * go to the course without logging in
 * it should not give a page error

Change-Id: I075acf19e196ef5de9eebdc1218c6d1b82c9ba5d
Reviewed-on: https://gerrit.instructure.com/9219
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
do not show rubric results on muted assignments

fixes #7633

test plan
 * make an assignment with rubric used for grading
 * make the assignment muted
 * grade the assignment
 * rubric results should not be visible to the student

Change-Id: I08d2ec908dbf4fa41112a7e1770b20328932e1f0
Reviewed-on: https://gerrit.instructure.com/9265
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
hide rubric results from students for muted assignments

refs #7633

test plan
 * make an assignment with rubric used for grading
 * make the assignment muted
 * grade the assignment
 * rubric results should not be visible to the student

Change-Id: I6a41e49fcb8cadc02111e19b0708cdc4ddb0b01d
Reviewed-on: https://gerrit.instructure.com/9271
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
removed tiny from common.js

Change-Id: Ifd2b1b7ac8ed5c81d0deed4f53c29d973b497dde
Reviewed-on: https://gerrit.instructure.com/9298
Tested-by: Hudson <hudson@instructure.com>
Tested-by: Ryan Shaw <ryan@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
log exception on redis failure recovery

test plan: turn redis caching on but don't have redis running, hit a
page, verify the generated error

Change-Id: Iddd525ed468abdcf0cce2dba9becc65e2d5aaa84
Reviewed-on: https://gerrit.instructure.com/9309
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
reconnect redis when in passenger smart spawning mode

Change-Id: I125616609ef15354e324cc8c1bc971c6bc4a2620
Reviewed-on: https://gerrit.instructure.com/9322
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
timeout cutycapt processes that take too long; closes #7568

Also includes some cleanup around cutycapt configuration and specs.

test plan:
 This is a little tricky to test since a real test relies on getting a
 cutycapt process to hang. However, you can fake it by configuring
 cuty so that timeout < delay. Then it will always time out.
 * Make sure you have cuty capt installed and configured (cutycapt.yml)
 * In the yml, set delay = 3000 and timeout = 2000
 * Start delayed jobs
 * Create an assignment that allows a URL submission
 * Submit that assignment as a student with a URL
 * Verify that the job that gets created starts up cutycapt but fails with
   a timeout (see your logs)

Change-Id: I5cae17fd64d1318ea0f4a9c92bb0a281ddd898e5
Reviewed-on: https://gerrit.instructure.com/9248
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
fix migration error
fix data migration error
treesame commit of origin/stable/2012-03-03

Treesame-Commit-Id: 2b63ccf83c8be8ccbe428aaa71e8d47b2eb794f2