return collection item created_at and user_id in api

add the time that the item was posted and the user id of the person who posted
it to the collection item api response.

test plan:
- query the api for a collection item, and make sure these two fields are
  returned

Change-Id: I3ac4b5b3212d380b947f236c69d47507517997df
Reviewed-on: https://gerrit.instructure.com/11128
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
scheduler: allow sub_context selection on multiple contexts

fixes #8508, refs #7561

test plan:
  * create or edit a new appointment group
  * add course(s) or sections from some courses

Change-Id: I8813f312fe5a36ca83ed9dce9c66cbab761d463e
Reviewed-on: https://gerrit.instructure.com/10703
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
copy missed course settings on course copy

The settings for the course grading scheme, hiding the
final grade, and the storage quota weren't being copied.

Test Plan:
 * On course settings increase file storage limit, set a course grading scheme, and select option to hide totals in student grades summary
 * Copy course, make sure option to copy settings is selected
 * On new course, check that all properties are set

closes #8541

Change-Id: I3cb9b84b425412412e04eddf8a8a8448970e9d5b
Reviewed-on: https://gerrit.instructure.com/11078
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
don't copy deleted calendar events

Test Plan:
 * Create a calendar event on a course, then delete the event
 * Copy the course
 * The deleted event should not be in the new course

closes #8661

Change-Id: I5a2beec5c2794f5407198718d7e10dbcf1a15d4d
Reviewed-on: https://gerrit.instructure.com/11077
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
fix appointment group signup/cancellation notifications

fixes #7771

Notifications were broken for signups/cancellations on appointments
because the messages dependend on some transient instance vars on the
CalendarEvent.

Test plan:
  - run canvas in production
  - create an appointment group
  - signup as a student
  - cancel the appointment
  - ensure notifications were sent

Change-Id: Ie1bb9f0d7c17546fa1dc1d681e20df97836a64d6
Reviewed-on: https://gerrit.instructure.com/9721
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Ericksen <marke@instructure.com>
small change for dialogs to work better on reports

existing specs should work

test plan
  run existing account report

Change-Id: I06c516985a9dedc47ff7598641dd0df71012bb91
Reviewed-on: https://gerrit.instructure.com/10985
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
label intermittently failing delete discussion spec as pending

Change-Id: Ic0ff474fa2419a355609acd4d239279fc82dcaa3
Reviewed-on: https://gerrit.instructure.com/11198
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
spec: upgrade selenium webdriver to version 2.22

Change-Id: If4e90390e12be1037f3a188dfa571b9ea12fdd92
Reviewed-on: https://gerrit.instructure.com/11124
Reviewed-by: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
fix case sensitivity in sis headers

test plan:
 * import a csv file with all-caps headers
 * it should still work

Change-Id: Ifeac18095e742e974f3709915d6d21f8c5d2d11a
Reviewed-on: https://gerrit.instructure.com/11206
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Cody Cutrer <cody@instructure.com>
fix session id logging for cookie sessions

test plan: run script/server, check that the logging logs the session id
(but only the session id, not the whole session cookie value)

Change-Id: I954ae6458b2aed3a144181584ee781128b3a6c28
Reviewed-on: https://gerrit.instructure.com/11204
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
spec: upgrade selenium webdriver gem to version 2.22.1

Change-Id: I938b17319de7280696b71780cae81a2082956836
Reviewed-on: https://gerrit.instructure.com/11222
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
add description field to groups

Change-Id: I7ebea091c63e08f18504cde86bc24d470e3f2fd1
Reviewed-on: https://gerrit.instructure.com/11189
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
page views like to refer to real courses

currently this spec will pass either way on vanilla canvas-lms. but
future code or plugins may care that a page view that references a
course references a 'real' course (one in the db). be kind to them.

Change-Id: I102ed3d1dfd338ea744deb578ffb62dbeade6825
Reviewed-on: https://gerrit.instructure.com/11214
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Brian Palmer <brianp@instructure.com>
process page views in parallel for multiple shards

Change-Id: Ief4bb4e51248ad1bc005522735b52c6329b7c50d
Reviewed-on: https://gerrit.instructure.com/11246
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
activate the messages shard for incoming messages

Change-Id: I4981491cc16ebe16b35a110833255b9a790eb189
Reviewed-on: https://gerrit.instructure.com/11249
Tested-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Enable "move", "edit" and "delete" button on new assignments. Fixes #8813

The template javascript was recently changed for "frozen" assignments which
broke new assignments by not including the "move", "edit" or "delete" links
that should be there.

Testing Notes:
* Create a new assignment but don't select "more options"
* After hitting the "Update" button, the assignment should appear in the
  list and when hovered over, should have a "move" icon and "edit" and "delete"
  image links.
* The edit/delete and move features should work as well.

Change-Id: I2cab2e2f8ea165870343899075044df64c6c17e3
Reviewed-on: https://gerrit.instructure.com/11169
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
spec: clean up admin permissions added admin question bank

Change-Id: I553c02dbfe8d8f178526c33b92b963316cbd8d15
tested:
       *. adding a question bank
       *. editing a question bank
       *. unbookmarking a question bank
       *. navigating to bookmark
       *. adding a question
       *. deleting a question
       *. editing a question
       *. moving questions to different question banks
       *. show question details
       *. bookmark a question bank
       *. move questions to a new bank
       *. aligning an outcome
       *. editing an outcome score
       *. deleting an outcome
       *. added a new rspec HasAttribute
       *. added submit_dialog helper in common
Reviewed-on: https://gerrit.instructure.com/10853
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
use the pseudonym global_id for login attempts key

test plan: with a sharding plugin, make too many failed login attempts
as a user on another shard. Verify the user with the same id on the
default shard can still attempt to login.

Change-Id: Ib683dba3b76a51615196d3293fd73203d3def9e1
Reviewed-on: https://gerrit.instructure.com/11255
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
clean up after non-transactional page views spec

Change-Id: I32028ef3d45d2ef8490e93b21563280212d367ea
Reviewed-on: https://gerrit.instructure.com/11266
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
spec: speed grader cleanup / refactor

Change-Id: I5c183f9f39f71568b51126d60ee452e1fa2c0dab
Reviewed-on: https://gerrit.instructure.com/11126
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>