fix config deprecation warnings in Rails 4

Change-Id: I7f42ef939d2a707c5df657aceef59ee7ace5071b
Reviewed-on: https://gerrit.instructure.com/41576
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix rails 4 Gemfile.lock under bundler 1.7

bundler 1.7 @sources no longer responds to include?. Conveniently,
the method we're overriding no longer calls include?

Change-Id: I5362b28a6819a4de9bc1e5de25b4753a8d77d9e1
Reviewed-on: https://gerrit.instructure.com/41510
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
don't order enrollments associations

it was a useless order anyway, and in rails 4 the order isn't removed
in has_many :through, :uniq, causing sql errors

Change-Id: Ieda66f3ab5a5c75c15fafac2eeb153e305de39e0
Reviewed-on: https://gerrit.instructure.com/41714
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>
drop unused columns from asset user accesses table

refs CNVS-15776

test plan
 - migrations should run

Change-Id: I38f694782ed1733b83271bc1369c318183ed0120
Reviewed-on: https://gerrit.instructure.com/41770
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 api docs to display quiz submission user list

fixes CNVS-12914

test plan:
- to generate the documentation: run $rake doc:api
- visit /doc/api/index.html
- verify there is a link in the left nav for Quiz Submission User List

Change-Id: I908ccf9f7bc8c55a73d99b8af824bd10e3a4bcd1
Reviewed-on: https://gerrit.instructure.com/41741
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
Add course and term names under group listings

Multiple groups with the same name are now better identified with their
context names (and term names if they are courses).

Test Plan:
  * Create two courses, with one of them in the Default Term
  * Create course groups in those courses
  * Add a student to both course groups
  * As the student, go to /courses
  * Make sure the course name appears under the group name
  * Make sure the term name appears (unless it's in the Default Term)
  * Do the same for /groups
Fix group name tooltip in courses#index

Test Plan:
  * Create a course group with multiple words
  * Add a student to that group
  * As the student, go to /courses
  * Hover over the group name
  * Make sure that all the words show up in the tooltip
Use term styling for groups in courses#index

Test Plan:
  * Go to the courses page (/courses)
  * Look under My Groups
  * Course name/term for groups should be displayed like terms
    for courses
  * Course term (if any) should be in parentheses
be more specific about max # of clients redis error

Matching on "ERR" isn't enough, as some normal operations such as
renaming a non-existent key return a CommandError with "ERR" in the
description.

fixes CNVS-15570

test plan:
* Create a new assignment or update the due date of an existing
  assignment as a teacher. Make sure to publish the assignment.
* Go to the course dashboard / home page as both the student and
  teacher. The new assignment should show up in the recent activity.

Change-Id: Ia3c48d2bdb7e0efefb40e97af90db472a7799953
Reviewed-on: https://gerrit.instructure.com/41752
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
[NVDA] Messages - Settings gear is now navigable

You can now navigate the settings cog on individual messages in the
inbox.

Fixes CNVS-14013

Test Plan:

- open nvda
- select a message
- tab to the cog
- press enter
- navigate with up/down
- enter to select
- all items should work correctly

Change-Id: I36c9826f5073769a817dcae719d233c40e7bf652
Reviewed-on: https://gerrit.instructure.com/41586
Product-Review: Aaron Cannon <acannon@instructure.com>
Reviewed-by: Jayce Higgins <jhiggins@instructure.com>
Reviewed-by: Alex Boyd <aboyd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
fix fragile spec

don't expect an order on results instead sort them

test plan
 - specs should pass

Change-Id: I7b4cc457956746d19f3a92f94f4b985ec2b3c501
Reviewed-on: https://gerrit.instructure.com/41797
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
DA - enrollment deletion works

fixes CNVS-15750

test plan:
  - DA on
    - make a module and visit the modules page as a student
    - as the teacher unenroll the student from a section
    - there should be no error when you unenroll the student
  - DA off
    - same thing

Change-Id: I9c2356cdb034b25e63b9693a610849072513e49b
Reviewed-on: https://gerrit.instructure.com/41744
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
fix add assignment/group buttons on assignment index page

fixes CNVS-15794

test plan:
- go to the assignment index page as a teacher
- you should have buttons at the top to add the assignment/group

Change-Id: I27c305065698195f0071fdfdcd4e985551cdb63b
Reviewed-on: https://gerrit.instructure.com/41727
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
don't count ignored redis errors in stats

refs CNVS-15570

test plan: trigger an ignored redis error, such as running
`Canvas.redis.renamenx('no-such-key', 'new-key')` in console, and verify
that rails doesn't log a 'Failure handling redis' message, or send
anything to statsd.

Change-Id: Ie4480fcf053d626ba8dbdf26672b18815267fa86
Reviewed-on: https://gerrit.instructure.com/41805
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>
Updated es translation

Change-Id: I2a90d1ed735ea881c67aa6fc5e69381427439b0c
Updated fr translation

Change-Id: Ifcf883b6284e2b8dadea200d23440429c09c9d99
Updated pt translation

Change-Id: Ifa7c5a93bb8968a787c54e27f8323b75fa18c4cd
Updated nl translation

Change-Id: I85d18f7fc5fd4ab22f685ef8ba4717eb94e0b071
Updated nb translation

Change-Id: Icf89e280c9dde9c8a195be43ca66fa5c5886eca3
fix discussion importing with attachments

also tweak a couple random little things because why not

test plan:
* create a course with a file
* import the package referenced in the ticket
* should not attach the file to every imported
 discussion topic

closes #CNVS-14520

Change-Id: Icf30b0a62d0d8f8ab6ced84990def1525ff061a4
Reviewed-on: https://gerrit.instructure.com/41760
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>