bump moodle2cc gem version to 0.2.7

fixes #CNVS-7538 #CNVS-12861 #CNVS-12862 #CNVS-12863 #CNVS-12864 #CNVS-12887

Change-Id: Idcfb3fc2ef895446dcaece594a3d72059623bb0c
Reviewed-on: https://gerrit.instructure.com/34603
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
fix mysql build regarding module progression

test plan:
 - automated regressions pass (postgres & mysql)

fixes CNVS-12965

Change-Id: Id91325c97a0a88257d1b030f9f2aee481854328a
Reviewed-on: https://gerrit.instructure.com/34709
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
fix minor misspelling

Change-Id: I802de01b5d80abb4dd09d9d05a625923db6b48dc
Reviewed-on: https://gerrit.instructure.com/34335
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Sterling Cobb <sterling@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
renamed failed_jobs original_id

The name conflicts with switchman's aliasing of the un-shareded id
method to original_id. This adds a new column original_job_id and copies
the old column over to it. A subsequent commit will drop the old column.

refs CNVS-12828

test plan: after running migrations, verify that the original job id
shows up for failed jobs in the jobs ui. This won't fix failed jobs that
were recorded in rails3 before this fix, those original ids have been
lost. New jobs that fail in rails3 will now record the original id
properly, though.

Change-Id: Ie974bf3fc932bcef7f09315ca5314e3bdcc6b680
Reviewed-on: https://gerrit.instructure.com/34358
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
canvadocs: rich-text editor support

fixes CNVS-12976

Test plan:
  * previews in user content should now open in canvadocs instead of
    scribd.
  * disable scribd.
  * add some canvadocable files to a wiki page (or wherever).  those
    files should preview in canvadocs.

Change-Id: I320984ad4d860af266cf83b3edaad44e76c120fc
Reviewed-on: https://gerrit.instructure.com/34686
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
Ember Quiz Stats - FITB & Multiple-Answer

This patch adds two new renderable question statistics to the new Ember
quiz stats page: fill in the blank (short_answer) and multiple-answer
ones.

They are very similar to Multiple-Choice questions except there's no
discrimination index, and the correct response ratio is calculated a bit
differently in the case of multiple-answers.

Closes CNVS-12987

TEST PLAN
---- ----

  - like the other stats tickets, create a quiz with those question
    types and take it by a number of students
  - verify the first donut chart that shows the student ratio displays
    proper data:
    - in case FITB: it's the same as multiple choice and T/F
    - in case of multiple-answer questions: only the students who have
      fully answered the question correctly should count in the donut
      chart (e.g, if you picked two answers, one correct and one not,
      that student shouldn't count)
  - verify that in the second chart, the bar one, all correct answers
    are highlighted in light green and not only the first one (as is the
    case with MChoice)

Change-Id: I3b7160417166cc57afa912a41f4ff04d309a8cfd
Reviewed-on: https://gerrit.instructure.com/34689
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
add student view of the quizzes show page

fixes CNVS-11733

test plan:
  - as a teacher
    - create and publish a quiz
  - turn on fabulous quizzes
  - as a student
    - visit the quiz
    - it should not show publish/edit/settings buttons
    - it should show a 'take quiz' button instead (which doesn't work yet)
    - it should no longer show tabs to moderate/stats for the student
    - the design should match up with the mock-ups

Change-Id: Ic244553f6bc54d74a50f5d4641eb2c85d184edce
Reviewed-on: https://gerrit.instructure.com/34597
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
add optional section info to courses API response (fixes CNVS-12991)

Test plan:
* Hit the courses index API (/api/v1/courses)
* Note that section enrollment info is not returned
* Now, add 'sections' to the include[] parameter
* Note that section enrollment info is returned and
  is in the context of the current user. Section names,
  IDs, and dates should all be included, along with the
  type of enrollment.

Change-Id: I0c6e0c4c049a0d0596c7e66bfdd4db72aa0f51b0
Reviewed-on: https://gerrit.instructure.com/34695
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
remove old conversations and conversation submission comments

fixes CNVS-12330, CNVS-9234, CNVS-8099

before you check out
- configure a user to use old conversations

test plan
- ensure that everyone get new conversations, always, even if
 they explicitly told us that they really like old conversations
 better

- as a student with an existing conversation with a teacher,
 make an assignment submission and a submission comment
- as the teacher, ensure that your unread message count did not
 increase because of the submission comment

Change-Id: If5ae7143abbc5cf5e035f5ed9ea2e5728f70cd45
Reviewed-on: https://gerrit.instructure.com/34343
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>
Ember Quiz Stats - DIndex fix

Discrimination Index bars were not uniform in their size which defeated
the point of the graph. This patch fixes that issue.

Closes CNVS-12937

TEST PLAN
---- ----

  - create a quiz with multiple choice and T/F questions
  - take it by a number of students and make the score chart diverse
  - visit the stats page and verify that:
    - the bars always have the same width total width, regardless of the
      score distribution
    - the bars always have the same width in all brackets
    - the bar's position sways to the left if the ratio of students in
      that bracket who got it *wrong* is higher than those who got it
      right
    - the bar's position sways to the right if the inverse is true

Change-Id: Ibfb149dbd29d6c0a73544b4465c40cf3e0c42f54
Reviewed-on: https://gerrit.instructure.com/34690
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
Updated ar translation
Updated ja translation
srgb changes assignment name

fixes CNVS-12920

test plan:
  - go to srgb and select an assignment and student
  - when changing assignments ensure that name is
    correct in the "Grade For" section
  - when changing student ensure that final grade
    updates properly

Change-Id: I8620ab35f743fd192a0bfd68da96d7cf233b9d10
Reviewed-on: https://gerrit.instructure.com/34548
Reviewed-by: Cameron Sutter <csutter@instructure.com>
QA-Review: Anna Koalenz <akoalenz@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
srgb letter grades calculated and displayed properly

fixes: CNVS-12671

test plan:
  - set a course grading scheme
  - have weighted assignment groups
  - grade students so they have scores for each assignment group
  - srgb should display the letter grades for assignment groups & total properly
  - gb2 should show total letter grade properly as well

  - courses without grading standards shouldn't display
    letter grades for total in srgb

Change-Id: I8acafa9b7afbf62167d831f369bf87e582a9786f
Reviewed-on: https://gerrit.instructure.com/34019
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Anna Koalenz <akoalenz@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
Reviewed-by: Cameron Sutter <csutter@instructure.com>
make optional fields optional for posting new assignment

fixes SIS-234

Change-Id: I37acd6c1b98a03ceaa7f84f6830ef93a11dd0072
Reviewed-on: https://gerrit.instructure.com/33630
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Duane Johnson <duane@instructure.com>
Product-Review: Duane Johnson <duane@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
more optimization for scheduler

closes CNVS-12936

test plan:
 * basic regression test of scheduler functionality

Change-Id: I7cd7de55e36a66e18fdf01de85d0240bee69c437
Reviewed-on: https://gerrit.instructure.com/34555
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
fix lock/unlock date ranges for assignment overrides

after a discussion with product/design we decided to get rid of the fancy date
range since it is likely that they have 'only' a lock or unlock date. Instead
we're going to put these in a table like it does in the non-fabulous version

fixes CNVS-12872

test plan
- as a teacher
  - create a quiz with multiple dates for various sections
  - add a date for a section with only a lock date
  - add a date for a section with only an unlock date
  - add a date for a section with both a lock and unlock date
  - make sure they all continue to look nice and display similar to they do now
    in the non-fabulous version

Change-Id: I6d76848fa20955757b018ed853a373e18608acc3
Reviewed-on: https://gerrit.instructure.com/34746
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
allow enrolling users via sis from another root account

fixes CNVS-12963

test plan:
 * set up a trust from account A to account B
 * enable sis imports for account A and account B
 * add a user to account B with an SIS ID
 * add a course to account A with an SIS ID
 * do an sis import to account A for enrollments as user
   that is an admin in both account A and account B;
   specify the course from account A as the target,
   the user from account B, and add another column
   root_account with account B's domain
 * it should succeed, and enroll the user from account B
 * unenroll the user manually
 * do the import as a user that's an admin in account A,
   but not account B - it should fail citing permissions
 * remove the trust link from A to B
 * do the import as the user that's an admin in both;
   it should fail citing no usable login

Change-Id: Ie5b7b71bfe563da9c49d3aa2321586994634ccb5
Reviewed-on: https://gerrit.instructure.com/32133
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
don't double escape single quotes in rails 2 erb tags

test plan:
* edit a text field generated through erb (e.g.
 change the account name through account settings)
* use a single quote (')
* save the result
* confirm that when going to edit the field again, that
 it does not contain a double escaped quote ("&#x27;")

fixes #CNVS-11652

Change-Id: Ic643e00bbc56fe410a7a61ebdf4a57e9198b1f69
Reviewed-on: https://gerrit.instructure.com/34794
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
change srgb title

fixes CNVS-13001

test plan:
  - go to srgb, the page title (in your browser tab)
   should say "Gradebook: Individual View"

Change-Id: I985f855057536e18a39fe43872c358ca1e092951
Reviewed-on: https://gerrit.instructure.com/34749
Reviewed-by: Liz Abinante <labinante@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Anna Koalenz <akoalenz@instructure.com>