Add enrollment term to course autocomplete

Test Plan:
  * Search under Find a Course on any Managed Accounts page
  * Search for a course in Import Content (Copy a Canvas Course)

The autocomplete drop-down should show course name and its term.
Improve course autocomplete customization

* Update spec to test for enrollment term subtitle in autocomplete
* Detect presense of autocomplete before customizing _renderItem
Improve course autocomplete customization (Part 2)

Update content migrations Selenium spec to test for enrollment term
subtitle in autocomplete.
Initialize course autocomplete within the bundle

Remove the original autocomplete behavior, in favor of this more robust
approach of initializing everything in one place.
Add aria-label to course autocomplete
sets step value of default_grade input to allow decimals.

Fixes CNVS-4804

Test plan:
- In Chrome, select assignment in Gradebook2
- In the column header drop down, select "Set default grade"
- Enter a value such as 1.1
- No validation error should appear.

Change-Id: Ic2e43eb9135f782dc9e2c96f81aafed4efca4611
Reviewed-on: https://gerrit.instructure.com/33641
Reviewed-by: Cameron Matheson <cameron@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Coraline Ehmke <coraline@instructure.com>
disable "must contribute to the page" requirement for assignments

test plan:
 with draft state off and on, confirm that the "must contribute
 to the page" requirement is grayed out for assignments
 in the Edit Module dialog

fixes CNVS-12624

Change-Id: I46d0c8264ef43ac81ed3a59203956f8c04989d2c
Reviewed-on: https://gerrit.instructure.com/33792
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
add models for polling

fixes CNVS-12467
This commit adds the models for the new polling feature: Poll,
PollSubmission, and PollChoice.

Change-Id: If8adb91073d8173b14206f442fadbee4a9e3b4c9
Reviewed-on: https://gerrit.instructure.com/33566
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
add gem names to gem script runners

Change-Id: I0dad5345aae75e552af97f5b54ded10bbfebbe37
Reviewed-on: https://gerrit.instructure.com/33925
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
move user attachments on user merge

test plan:
* create two users
* upload files as both users
* merge one user into the other user
* confirm that the final user has the attachments
 from the merged user (after jobs have run) and that
 files with duplicate filenames are renamed
 (however, note that files that have identical content
 and names will not be duplicated)

fixes #CNVS-12264

Change-Id: Id699c24c804808737b763ec37316e03bd1f3c59f
Reviewed-on: https://gerrit.instructure.com/33769
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
fix permission checks around pseudonym creation

fixes CNVS-12633

test plan:
 * create an admin in account A
 * create a user in account B
 * admin in A should get permission denied trying to create a pseudonym
   in A for user from B
 * user from B should get permission denied trying to create a
   pseudonym for himself in A

Change-Id: Ie548122be01a4eeb4a2ffaaf85e28a775eb7fe66
Reviewed-on: https://gerrit.instructure.com/33804
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
add check for user visibility for adding admins

fixes CNVS-12638

test plan:
 * add a user to account B (admin, student, whatever)
 * try to add that user as an admin to account A via the API
 * it should fail with 404 not found

Change-Id: I219cb9ef7314c773fa206e5d0d2a351a8c3dde30
Reviewed-on: https://gerrit.instructure.com/33808
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
add "Resolve path" to Folders API

fixes CNVS-11494

test plan:
 0. on both rails2 and rails3...
 1. find the "Resolve path" endpoint in the API docs
 2. in Course, Group, and User contexts:
   a. create some folders and subfolders
   b. use the new endpoint and confirm that
      (1) a full path such as "course files/folder/subfolder"
          returns an array containing each Folder in order;
      (2) status 404 is returned if the path doesn't exist
          (even if a partial match exists);
      (3) status 404 is returned if the requested folder or
          a parent folder is locked, the caller is a student,
          in Course context
      (4) users not authorized to access files receive a 401

Change-Id: I6438317fc8c847fa0a5c140bc9e91890d727514c
Reviewed-on: https://gerrit.instructure.com/33447
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Updated ru translation
Updated ja translation
shoehorn old quiz submission HTML into ember quizzes show page

Test plan:
  - As a teacher, the quiz submission results should render
    on the ember quizzes show page

closes CNVS-12453

Change-Id: I61a885509c1506629f5b8e18b3c5475b8052acb3
Reviewed-on: https://gerrit.instructure.com/33529
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
bump moodle2cc gem to 0.2.6

Change-Id: I507c6ac929cb3ffd5d5c9f0f5ec822b3043ef969
Reviewed-on: https://gerrit.instructure.com/33944
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
fix account user api call skip confirmation

skip confirmation on user create
and communication channel create

closes PS-1459

test plan:
  1. create a user with the user create
     api make sure to give that user a
     communication channel and use the
     skip_confirmation flag. This
     should work for a site
     admin token as well as account admin
     token

  2. create a new communication channel
     for a user using the skip_confirmation
     flag. This should work for site admin
     and account admin.

  3. In both cases the communication
     channel should be created and the
     workflow_state should be 'active'

Change-Id: I98fbec3c90082a066ea069004d586bfdcd123cb4
Reviewed-on: https://gerrit.instructure.com/33862
Reviewed-by: Dave Jungst <dave@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
Product-Review: Jake Sorce <jake@instructure.com>
QA-Review: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
submit assignments via embedded LTI apps in tabs

fixes PLAT-477
fixes PLAT-479
fixes PLAT-480

test steps:
- Add one or two external tools which allow homework submission (e.g.
  box) and find the tabs on the submit assignment page
- Submit assignment using tool
- Add three more external tools which allow homework submission
- Ensure that you see the 'More' tab on submit assignment page and
  submit assignment using items under 'More' tab

Change-Id: I118b3fa059e6a4046c87b8cf894ce77ecffd9252
Reviewed-on: https://gerrit.instructure.com/33421
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
QA-Review: Eric Berry <ericb@instructure.com>
profile: display profile pic rounded, as elsewhere

fixes CNVS-12383

test plan:
  * open profile page and settings page
  * verify that profile pic is rounded

Change-Id: Id2e5b1f08190e2ab8a305d89a0fe54ec22e1122d
Reviewed-on: https://gerrit.instructure.com/33261
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>