record grader when grading via API

test plan:
 * go to gradebook2 and change a grade
 * go to /gradebook/history for the course, and view the grade change
   you just made. it should say it was you that did it

Change-Id: Ie3f91b7ceadbe99b3cccff33a957595e5d8c2cf6
Reviewed-on: https://gerrit.instructure.com/13653
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
make discussions truncate text correctly on all browser dimensions

fixes: #10343

test plan:

load courses/x/discussion_topics with a discussion
with a really long name.
resize your browser window really big and really
small and make sure it works all the way between
the sizes.

Change-Id: I0a120d292a82296b59dcf856a79d4b8e7600d42d
Reviewed-on: https://gerrit.instructure.com/13662
Reviewed-by: Mark Ericksen <marke@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
extended Backbone.Collection

added:

- Collection default options
- Collection request parameters

moved:

- default url

Change-Id: I68146cdc43df788bf14ae3d1e5b0c6e5215b0f44
Reviewed-on: https://gerrit.instructure.com/13589
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
don't use postgres specific quoting style when no quotes are needed

fixes gh#211

test plan:
 * use the /api/v1/courses/{courseId}/recent_students endpoint with
   a mysql backend

Change-Id: Id19944044cf6cce1e11a847b60c7d7294dd33c89
Reviewed-on: https://gerrit.instructure.com/13628
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
spec: fix occasional spec failure

Change-Id: Ic3a9ba5e0599fb551a98ddadb24ad311ab9786d5
Reviewed-on: https://gerrit.instructure.com/13691
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
fix concluded course status for provisioning report

test plan
 * create a course
 * conclude the course
 * the course should be in the provisioning report with
   status 'concluded'

Change-Id: I111fd9f05fd8c7f460e2241ec3338bec5cbe3ea9
Reviewed-on: https://gerrit.instructure.com/13664
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
add labels to discussion, announcement inputs. fixes #10374

new inputs on discussion and announcement pages were using
placeholder attributes in place of labels, which was making them
unreadable by some screen readers.

this commit adds labels to each of these inputs. it also focuses the
new/edit form when creating a new discussion or announcement.

test plan:
  * using voiceover or another screen reader, navigate to the
    course discussion page;
  * verify that the search input's label is spoken when navigated
    to;
  * click the "start a discussion" button and verify that the title
    input is spoken and focused on page load.

Change-Id: I7bb9fd950d8d6c234b6b82eba98b059e8355e69d
Reviewed-on: https://gerrit.instructure.com/13453
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
spec: add spec to make sure drag-drop of cal2 events works
refs: #10278

Change-Id: I2fdbbcb360d4f99371aad00f66baddcca7d8cc9c
Reviewed-on: https://gerrit.instructure.com/13649
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
spec: fix announcements intermittent failure

Change-Id: Icf2c1d65bdf0e14882522734ab097afaaac7859a
Reviewed-on: https://gerrit.instructure.com/13710
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Tested-by: Shawn Meredith <shawn@instructure.com>
spec: fix intermittent announcements failure

Change-Id: Ia8e91087672173e3a723bead163a4f31f4ef35a4
Reviewed-on: https://gerrit.instructure.com/13712
Reviewed-by: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
spec: manage_groups_students thread crash fix

Change-Id: I45759317eee9009c09f11bb124c7f3e9baa85aee
Reviewed-on: https://gerrit.instructure.com/13711
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
api: keep /courses/<id>/students endpoint unpaginated

fixes #10573

this api endpoint accidentally got switched to be paginated, but we need to
continue supporting it unpaginated for now, even though it is deprecated.

test plan:
- in a course with > 10 students
- query /api/v1/courses/<id>/students
- you should get all the students back

Change-Id: I62928c5f4a2b6f0c7854be8afc5e9341e6481b37
Reviewed-on: https://gerrit.instructure.com/13684
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
don't use postgres specific quoting style when no quotes are needed

fixes gh#211

test plan:
 * use the /api/v1/courses/{courseId}/recent_students endpoint with
   a mysql backend

Change-Id: Id19944044cf6cce1e11a847b60c7d7294dd33c89
Reviewed-on: https://gerrit.instructure.com/13628
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
record grader when grading via API

test plan:
 * go to gradebook2 and change a grade
 * go to /gradebook/history for the course, and view the grade change
   you just made. it should say it was you that did it

Change-Id: Ie3f91b7ceadbe99b3cccff33a957595e5d8c2cf6
Reviewed-on: https://gerrit.instructure.com/13653
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
api: keep /courses/<id>/students endpoint unpaginated

fixes #10573

this api endpoint accidentally got switched to be paginated, but we need to
continue supporting it unpaginated for now, even though it is deprecated.

test plan:
- in a course with > 10 students
- query /api/v1/courses/<id>/students
- you should get all the students back

Change-Id: I62928c5f4a2b6f0c7854be8afc5e9341e6481b37
Reviewed-on: https://gerrit.instructure.com/13684
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
don't allow too-long rubric titles, fixes #8776

test plan:
  - try to create a new rubric with a title longer than 255 characters

Change-Id: I83f17aafbd6e322132a9af67a10971aff5382d0a
Reviewed-on: https://gerrit.instructure.com/13707
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
add focus styles to canvas logo link. fixes #10455

test plan:
  * on any canvas page, tab to the logo link and verify that
    its outline styles are displayed.

Change-Id: Ifdbd35902bef9e8201d10d6b52921551d391f19d
Reviewed-on: https://gerrit.instructure.com/13579
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
sort users on course people page by sortable_name.

fixes #10347, #10440

this commit also replaces the display of login_id with the
user's email address.

test plan:
  * create a course with users;
  * navigate to courses/:id/users and verify that students and
    teachers/tas are being sorted by sortable_name;
  * make some test calls to /api/v1/courses/:id/users and verify
    that it continues to work as expected.
  * confirm that user's email address is displayed instead of their
    login_id.

Change-Id: Id67557d98e8e2c0c42402ee64528e1f27c91b78c
Reviewed-on: https://gerrit.instructure.com/13592
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
fix edit rubric button. fixes #10479

on the show rubric page, when a user edited a rubric, saved it,
and then clicked the edit rubric button again, it wasn't opening
the edit form.

test plan:
  * from course outcomes page, click 'manage rubrics' button;
  * create a new rubric;
  * click the 'edit rubric' button and then click the 'update rubric'
    button;
  * without refreshing the page, click 'edit rubric' again and verify
    that the edit form displays as expected.

Change-Id: If65785f09f1a0f5034d67b503597bc674d79f2d5
Reviewed-on: https://gerrit.instructure.com/13688
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
revert several grade calculation changes

Revert "fix gradebook bug in ie8"

This reverts commit c9272374581c4eb21676b7db1d3035868d45f7d0.

Revert "gb2: don't lie about which assignments are dropped"

This reverts commit da379330794322efd5e956c301e2dbbef7f0c656.

Revert "fix ruby calculation of grades (grade-dropping)"

This reverts commit 63f75597a2983379c5c36afe3efcf26f36cdef56.

Revert "fix grade-dropping in gradebooks"

This reverts commit 4a4a2f53c1d86fb87c9525204bab35127e2b1a03.

Conflicts:

	spec/selenium/grading_standards_spec.rb

Change-Id: I5ac3f2553156ae963ae063c5f97df3e2d9784540
Reviewed-on: https://gerrit.instructure.com/13717
Reviewed-by: Cameron Matheson <cameron@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>