make Quiz#context_module_tags an association after all

although nobody creates quizzes through it, they still call
other association methods such as loaded?, so apply all the
association where-clause hacks to this one

fixes CNVS-11759

Change-Id: Ic6326399157284be75e94a1ce3d50709f9fefbbc
Reviewed-on: https://gerrit.instructure.com/31639
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Clare Strong <clare@instructure.com>
upgraded requirejs to 2.1.10

- upgraded raphaël to 2.1.2
- upgraded FileAPI to 2.0.4
- amd-ified files
- removed unnecessary shims
- removed "use!" usage
- removed "order" requirejs plugin
- using new shim configuration format
- replace deprecated require.resourcesDone with !window.requirejs.s.contexts._.defQueue.length
- using UglifyJS separate from r.js
- added keep_trying_until in selenium specs to fix timing issue
- fix race condition in take_quiz.js with .file-upload-question-holder

Change-Id: I8c205ef4c80115fa0cbd662c184490f1b9626336
Reviewed-on: https://gerrit.instructure.com/29683
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
force a separate lockfile for rails 3

also move the RAILS3 sentinel into the config folder, for easier
deploys, and normalize how sub-gems decide on rails 3

Change-Id: I39fda434bb3d94cf72e66774b6b9d11c968a3d5a
Reviewed-on: https://gerrit.instructure.com/31632
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
enable screenreader access to the publish/unpublish buttons in modules

When you go to the modules page and you have a module that has points
and a due date, the publish/unpublish cloud was not accessable to
screenreaders. It would hang up on the course pts and not read anything
else. This fixes that so you get the points read as well as are able to
get to the publish/unpublish cloud.

fixes CNVS-11514

Test Plan:
- Visit a modules page with a screen reader and draft state enabled.
- Add a module with points and a due date.
- Verify that the screen reader can read and monipulate the
  publish/unpublish button.
- Do the same on the assignment, quiz and discussion index pages.
- Make sure the screen reader reads the points possible and due date.

Change-Id: Iadf96a113fa5f708915b0861dadcd0f77cd1d47a
Reviewed-on: https://gerrit.instructure.com/31451
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Updated es translation
Updated fr translation
Updated zh translation
stub out databaseserver for rails 2

Change-Id: Icb8fada01a94e5c3122f74db340c69fa1b2959d2
Reviewed-on: https://gerrit.instructure.com/31701
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
use api find for files show fixes bad users.id query 

refs CNVS-4747

Change-Id: I8aeefb9c14e6450238c34c29e5dc87984aeec6a2
Reviewed-on: https://gerrit.instructure.com/31702
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
fix timezone async specs for requirejs 2

Change-Id: I0d0894535e4ac7cc470d235d3024b7cce5322f3e
Reviewed-on: https://gerrit.instructure.com/31663
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
spec: fix assignment_spec for rails 3

Change-Id: I64284315ef42505595e8100405258ecb08ea7a1b
Reviewed-on: https://gerrit.instructure.com/31693
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
add foreign keys part 15

refs CNVS-6202

Change-Id: I747f1891f6b24b5eb435f169279efae04a402e97
Reviewed-on: https://gerrit.instructure.com/29495
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix bad users.id query on masquerade

closes CNVS-4747

Change-Id: I9aa6b3e566c1f471a8da86aad66c3197c128caa3
Reviewed-on: https://gerrit.instructure.com/31705
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
fix npm installs by pinning karma-coffee-preproccessor

Change-Id: I26809102e68d1be5951a2eb446f2f4a0aeb40e08
Reviewed-on: https://gerrit.instructure.com/31707
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
spec: use truncate_all_tables helper

Change-Id: I52ceb101adb933e42ad98230ac034a0f5e869156
Reviewed-on: https://gerrit.instructure.com/31739
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
rails3: fix account_admin_question_bank_content specs

Change-Id: I96ecf15ffcd726adcee289fd0bb6ece60e88fb40
Reviewed-on: https://gerrit.instructure.com/31668
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
copy rather than rename in Attachment#change_namespace

Change-Id: Iea77b0d93c01dfce92224ba6f500bcfa4c016f13
Reviewed-on: https://gerrit.instructure.com/31150
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
convert seletive content checkbox to radio buttons

fixes CNVS-9885

When you import or copy a course you are given the option to select the
content you want to import. The option to select this was a checkbox
but has now been changed to a radio button. This should help people who
are confused by the process or forget to check the selective content
button. Default should be selecting all content

Test Plan
1. copy a course by going to 'import content into this course' for the
course settings.
2. select the radio button 'select migration content'
3. it should still allow you to select migration content
4. select all content should be the default
5. Next..
6. Go to course settings and click on 'copy this course'
7. There should be two radio buttons now that say 'All content' and
select specific content.
8 The default should be 'All content'

Change-Id: I62c7161c621e6872048b04a5a2c0fe696adf316f
Reviewed-on: https://gerrit.instructure.com/31112
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Jeff Fox
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
fix test mode running under rails3

We don't want to load the test-unit gem, and we also need to tell rails
that we're using rspec not test-unit.

Change-Id: Ia8d9ef1e8adaab5a4c55c1324cca541a664c1b02
Reviewed-on: https://gerrit.instructure.com/31742
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
escape html chars in json in rails3

closes CNVS-11784

Change-Id: I4d86d11244ee32b46768c8d18431dc9e188e132b
Reviewed-on: https://gerrit.instructure.com/31755
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>