outcome results: persist tab selection to URL

fixes CNVS-10608

test plan:
  * open gradebook
  * select the learning mastery view
  * verify that you can switch views with your browser's
    back and forward buttons
  * refresh the page
  * verify that you are on the same view

Change-Id: Ia3657f7113cd9473ec9b3583d123eaf59c03d70f
Reviewed-on: https://gerrit.instructure.com/28845
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
outcome gradebook: use open arrow icon

fixes CNVS-11118

test plan:
  * enable and open outcome gradebook
  * verify that a hollow arrow icon is used for the sidebar toggle
  * toggle the sidebar
  * verify that the appropriate icons are used

Change-Id: Idee2079a03a1eea4141a5d132045acc7124b5a3c
Reviewed-on: https://gerrit.instructure.com/30710
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
rails3: fix specs for assignment override student

fixes:
in rails3 setting the assignment_id in the before_validation :default_values
filter also assigns assignment object to match. this makes it the validation
never fail in rails3

Change-Id: I07c303945484953800a71e9b2eba90cad617f7e3
Reviewed-on: https://gerrit.instructure.com/30756
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
QA-Review: Derek DeVries <ddevries@instructure.com>
patch bundler to fetch from github over https

thanks @mrphs

Change-Id: Ic7523d12662b7211ffebf7134f3ce6b8c70b8fda
Reviewed-on: https://gerrit.instructure.com/30757
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix lti grade passback spec for rails 3

Change-Id: Id3659d3673ec46fa8658b1c8ca24b9120c0bb918
Reviewed-on: https://gerrit.instructure.com/30698
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix FoldersController#api_index pagination

@context is always nil. found by rails 3 specs

Change-Id: I37acb0edfc80987fa414f11bc338b07bebb79364
Reviewed-on: https://gerrit.instructure.com/30723
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
use https for rubygems source

prevents a possible MITM attack on installed code

Change-Id: I13c4419eb3f469c2f895a8725b18d90e35ccc992
Reviewed-on: https://gerrit.instructure.com/30753
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
don't copy scribd attributes from the root_attachment

test plan:
 - have a course with working scribd documents
 - copy the course
 - documents should still be viewable in the copy
 - if the document is deleted from scribd due to non-use,
   viewing it in either course should trigger a
   re-render

fixes CNVS-10818

Change-Id: Ideb19e5e84575a63727bd2ec78790fa7c1d87f16
Reviewed-on: https://gerrit.instructure.com/30625
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
Updated ja translation
revert assignment spec fix

refs CNVS-11192

Change-Id: Ifddd43917f25bd99b796ed87f7dafe22a1263ef0
Reviewed-on: https://gerrit.instructure.com/30454
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
fix moodle converter spec for rails 3

Change-Id: I5a761e6ce627aa6d12caf6b29daa5d9307445580
Reviewed-on: https://gerrit.instructure.com/30741
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>
set shard category for AR Job in rails 3

Change-Id: I29e57c3668059734ab852c984c6608840ffd5daf
Reviewed-on: https://gerrit.instructure.com/30774
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>
added sis export to srgb

fixes CNVS-11189

test-plan:
  - on a course with sis export enabled go to srgb
    - there should be a link that takes you to details#tab-grade-publishing
  - on a course without sis export enabled go to srgb
    - there should be no sis export link

Change-Id: Ib8661bcb6f655bb15bc37aac562bb584f5f916e2
Reviewed-on: https://gerrit.instructure.com/30441
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Mike Nomitch <mnomitch@instructure.com>
added late and resubmitted indications to srgb

fixes CNVS-11237

test plan:
  - go to a late submission on srgb
    - below the grade input it should say the submission is late
    - on time assigments shouldnt have the late indication
  - go to a resubmitted asignment on srgb
    - below the grade input it should say the assignment was resubmitted
    - when you grade the assignment the indication should go away
  - dropped assignments should work as usual
  - assignments with acombination of late/dropped/resubmitted should
    show all of the necessary indications

Change-Id: I9eaab0fa5f55f72cb86792d633eb28d3e0975047
Reviewed-on: https://gerrit.instructure.com/30433
QA-Review: Amber Taniuchi <amber@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Mike Nomitch <mnomitch@instructure.com>
Draft State Quizzes: show multiple due dates

Closes CNVS-9880

This patch enables observers watching students across multiple sections
to see each section's due date for a quiz in the quizzes index page,
it also fixes the dates students get to see when they're in a section
other than the base one.

(BREAKING?) API CHANGES
----------- --- -------

  - when a student queries a quiz, the `due_at`, `lock_at`, and
    `unlock_at` dates they receive are that of the section they're in as
    oppossed to the quiz's global dates
  - when an observer queries a quiz, they receive the dates for the
    sections they're bound to in the `all_dates` field like teachers do

TEST PLAN
---- ----

Two ways to test this patch: a simple way that tests only the case
described by the ticket, or the comprehensive way.

> The simple way

  - turn DS on
  - create a course with multiple sections
  - create a quiz and assign a due date to each section
  - as an observer who's watching more than 1 student in different
    sections, go to the quizzes index:
    - verify that you see "Multiple Dates" for due dates (and
      availability if you set them)
    - hover over the link and verify that you see the proper dates in
      the tooltip

> The comprehensive way

Check this out: https://gist.github.com/amireh/375171767da8303e1b71

Change-Id: I934cb47f0229a43713dc6b4a6d280c047a2263b9
Reviewed-on: https://gerrit.instructure.com/30083
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
log error reports for each failed shard in multi-shard periodic jobs

Change-Id: I37cd3987256dd2ffb0a996c88774c1cd71ce3c55
Reviewed-on: https://gerrit.instructure.com/30692
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>
fix rails 3 building of new has_one objects where the foreign key is the primary key

Change-Id: I356dda316ca47b24012ee830aa133caa085e5c71
Reviewed-on: https://gerrit.instructure.com/30704
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>
fix Bundler patch in case gemfile is run multiple times

Change-Id: I544033693c8b9cdec16bf5ee31539c6f4904aafb
Reviewed-on: https://gerrit.instructure.com/30793
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>