Fix inability to upload files without Flash

When Flash is unavailable, the fallback Add File link is not clickable,
because the invisible div#swfupload_holder is blocking it. Hide to fix.

Test plan:
* Use a browser with no Flash installed (or Flash disabled)
* Go to the Files page in any course
* Click on the Add File link
* Confirm that the basic HTML file uploader appears below
allow prepopulating the username when oauthing, refs CNVS-10001

you can already prefill the username on the regular login page by setting
?pseudonym_session[unique_id] ... this commit lets you do that when doing
oauth (carries it through the redirect)

test plan:
1. generate a valid oauth access url from your favorite 3rd party app,
   e.g. /login/oauth2/auth?client_id=...
2. tack on pseudonym_session[unique_id]=blah
3. go to the url
4. you should get redirected to the login page, with blah filled in as the
   username

Change-Id: I3203163fe02ff7e75d09dc91922851a8c5d34fb0
Reviewed-on: https://gerrit.instructure.com/31283
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jeff Belser <jbelser@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
fix Content-Type in kaltura multipart request

test plan:
 - import content including a video file into a course
   (such as the QTI file attached to CNVS-11602)
 - the import should complete

fixes CNVS-11602

Change-Id: I0e607dd0714df5456ec7d5da47347e4ab89c7597
Reviewed-on: https://gerrit.instructure.com/31408
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
fix db initial setup for rails 3

Change-Id: I4f94a9b1957e81e2fb30a6d75badce594b0b6c79
Reviewed-on: https://gerrit.instructure.com/31435
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
rails3 - update active_model_serializers to 0.9.0alpha

Updates ActiveModel::Serializers for rails 2 and rails 3.

Change-Id: I1203069cd921ca975788d5b3c2088bdcff3f5e77
Reviewed-on: https://gerrit.instructure.com/31113
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
fix submissions_api_controller for_students for rails 3

Change-Id: I939085f973ed93b13f28552c31179145fd3f2c27
Reviewed-on: https://gerrit.instructure.com/31452
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
remove webrat, and fix pseudonym sessions controller spec for rails 3

webrat is abandonware, and doesn't work properly with rails 3

Change-Id: I34db6c150b6715e33a30d531941b76458090ce63
Reviewed-on: https://gerrit.instructure.com/31457
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>
add correct html roles for wiki sidebar links tab

fixes CNVS-8999

This commit adds the correct html roles in the wiki sidebar for tabs. I
also fixed a small css issue that was bothering me. There was a dashed
boarder that looked horrible.

Test Plan
1. Go to any page with a wiki sidebar.
2. Using a screenreader, navigate to the "Links" tab and use the tab to
navigate around the wikisidebar.NOTE: If you are in safari with
voiceover, you need to hit alt+tab to go to the sub items in the links
accordion. This is normal behavior.

Change-Id: I458c7207de00363ebb4dd6d14135fc6736aec340
Reviewed-on: https://gerrit.instructure.com/30940
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
Product-Review: Sterling Cobb <sterling@instructure.com>
rails3: fix route generation on course roster page

Change-Id: I7a1038360abf121b3c305f728c1969b5fc852bdb
Reviewed-on: https://gerrit.instructure.com/31288
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
only allow deleting enrollments from course in path

fixes CNVS-11685

test plan
 - delete an enrollment using the api
 - should only allow deleting from the specified course

Change-Id: I5ae0754b0322a2f6fa0817ce15e41a885c88cf2d
Reviewed-on: https://gerrit.instructure.com/31468
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
add unique index to enrollments users per section

index should be unique per user, section, role,
type, and associated_user_id

fixes CNVS-7698
fixes CNVS-7700

test plan
 - add duplicate enrollment in script console
   - run migrations
   - duplicates should be removed
   - attempt to add duplicate enrollment in console
   - duplicate enrollment should fail
 - test user merge with conflicting enrollments
 - test creating, deleting, and restoring enrollments
 - enrollment regression testing

Change-Id: I0fb600ba6ff98054f71dc41a8519680413507494
Reviewed-on: https://gerrit.instructure.com/30986
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
re-add id back to allowed fields for assignment/quiz api results

Test plan:
  - make sure ids show up for "all_dates" in quiz and assignment APIs

Change-Id: I9c3c65c044b9411c18ef018e6305c727be7ff320
Reviewed-on: https://gerrit.instructure.com/31221
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
provide helper method and hooks for lead form updates

refs CNVS-11309

Test Plan
  1. Navigate to '/register'
  2. Click a signup link (teacher, student, parent)
  3. Modal should function without regression

Change-Id: Id409e4b0b8c23b02a334ec9569e13f50869b1086
Reviewed-on: https://gerrit.instructure.com/31253
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
discussions: show availability dates on index page

fixes CNVS-9932

test plan:
  * enable draft state
  * create discussions with variations on Available From and Until
  * open the discussions index page
  * verify that the discussions are listed with status change dates
      as on the assignments and quizzes indexes

Change-Id: Ic8a20ec5cb78087f38e36f5980776e7ae8430e4c
Reviewed-on: https://gerrit.instructure.com/31134
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
remove publish ui from announcements

fixes CNVS-10882

test plan
- with draftstate on, make a new announcement
- ensure that the edit page does not have a "Not Published" icon
- ensure that the show page does not show a publish button
- ensure that the announcement is immediately visible to students
 if not delay posted
- ensure that the announcement is not visible if delay posted
- ensure that the announcement delay posts properly

Change-Id: I9378c7aece007df04ad7806ee0936a62a6304542
Reviewed-on: https://gerrit.instructure.com/31189
Reviewed-by: Braden Anderson <banderson@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
compare login id using the db on sis user import

fixes CNVS-11680

test plan
 - import user.csv with a different case than
   existing user's unique_id
 - no import warning errors should be shown

Change-Id: I64a3a84f6874ec88c4f28bc046f80cad9219fc43
Reviewed-on: https://gerrit.instructure.com/31453
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Eric Adams <eadams@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
unbreak db:initial_setup on rails 2

fixes gh-412

Change-Id: Icb9e334214480c20ca4aed0c43111629ab620f35
Reviewed-on: https://gerrit.instructure.com/31497
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
fix respondus endpoint spec for rails 3

calling Marshal.load before the RespondusAPIPort class is
defined seems to cause all its dynamically defined methods
to be run with $SAFE = 4

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

Change-Id: I5cabbe9e33cf5a8359c485d3383cdc7be10ff498
Reviewed-on: https://gerrit.instructure.com/31506
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
rails3: remove bad (and unused) url

Change-Id: I2671be06d83d66f4a01a670b398430c0a035a7ed
Reviewed-on: https://gerrit.instructure.com/31507
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>