refresh submission data from ui button click

closes CNVS-12447

allow users to hard refresh moderate table with a button click of
spinning arrow icon in top right of moderate table. moderate table loads
the first users (pagination is not a part of this commit), even when there
are no user submissions.

test plan:
  - enable ember quizzes
  - visit moderate tab as instructor
  - in another browser, as a student, take the quiz again
    -which may mean:
      - disable ember quizzes
      - take quiz
      - re-enable ember quizzes
  - in instructor browser (don't refresh)
    - click the refresh icon in top right of moderate page
    - ui should update with student submission data
  - create and publish a new quiz as an instructor
    - visit the quiz moderate tab
      -first page of students should display with blank submissions
  - create and publish a quiz with unlimited attempts as instructor
    - visit the quiz moderate tab
    - first page of students should display
      - Remaining Attempts column should display 'Unlimited'

Change-Id: I2ee517a16a87c128498eb1cad41e1a2e9e15d177
Reviewed-on: https://gerrit.instructure.com/34477
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
pass back state during auto-accept oauth flows, fixes CNVS-13006

test plan:
n/a, see specs ... needs an implementation

Change-Id: If429c925b5089036a32839653b609cdd8b82d95d
Reviewed-on: https://gerrit.instructure.com/34781
Reviewed-by: Dave Donahue <ddonahue@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
fix deadlock with concurrent module touches

Change-Id: I1ea3123857a68b7cbdd923b7966cd06814e95d35
Reviewed-on: https://gerrit.instructure.com/34799
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
make rubric display dialog into a modal

fixes CNVS-4142

Test Plan:
- create a quiz or assignment with a rubric
- view the quiz or assignment
- using the gear drop down open the rubric display dialog
  - the rubric display dialog should now have a gray background
    separating it from the rest of the page

Change-Id: I42ce260345b5f04e162d6ef0a8e287ca9d85aa1b
Reviewed-on: https://gerrit.instructure.com/34556
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cameron Sutter <csutter@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Tyler Pickett <tpickett+gerrit@instructure.com>
Updated ar translation
import/export learning outcome alignments

test plan:
* create a course with a question bank and
questions
* create learning outcomes (either on the course
or account level)
* align outcome(s) to the question bank(s)
* copy the course, or import/export it
* confirm that the question banks in the new course
retain their alignments

fixes #CNVS-5917

Change-Id: I16a80371af4433a4debdcc29d09d7fa1f43bc41e
Reviewed-on: https://gerrit.instructure.com/34572
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
only try to import active outcomes and groups

test plan:
* create an account-level outcome group
* create an outcome in that group, but then delete it
* in a course, find and import the account-level group
* should not import a broken outcome link to the deleted outcome

fixes #CNVS-2015

Change-Id: I59d3404038960e156cd7b3e8540df286f27d1569
Reviewed-on: https://gerrit.instructure.com/34797
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
assignment index page cog menu keyboarding

fixes CNVS-11563

test plan:
 - on the assignment index page (with draft state on)
 - using only the keyboard
 - activate any of the assignment cog menus and confirm
   that all items are read by the screenreader
   and properly focused on screen when arrowing up and down
   with the keyboard
 - confirm that all items in the menu can be activated
   by pressing enter

Change-Id: I6ea47fc529243214549a804a5970085df0ddff5c
Reviewed-on: https://gerrit.instructure.com/33020
Reviewed-by: Liz Abinante <labinante@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
fix issue with date dates not showing up on fabulous quizzes index

When switching to use assignment overrides to build the dates, we switched to
camel case for the dates.

fixes CNVS-12900

test plan
- as a teacher
  - create a quiz with a due date
  - create a quiz with a lock date
  - create a quiz with multiple due dates / lock dates
  - enable fabulous quizzes
  - visit the quizzes index page and make sure that with fabulous quizzes
    on/off that the due/lock dates display the same way.

Change-Id: Id54e9e481b3ada26eaa0f91a85d3a194b8611323
Reviewed-on: https://gerrit.instructure.com/34811
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
add an option to the settings menu to view student quiz results

the setting is kept because it's always been there, but now it simply sends us
over to the moderate tab.

fixes CNVS-12437

test plan:
  - as a teacher
    - create a quiz
    - enable fabulous quizzes
    - visit the quiz
    - click on the settings menu for the quiz
    - click on "Show Student Quiz Results"
    - you should be navigated to the moderate tab
    - it should display a message that this info is now on the moderate tab

Change-Id: Ie228c52a469cc582b1d24415651656a22b090317
Reviewed-on: https://gerrit.instructure.com/34793
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
fix embedded youtube videos in the quiz description

the javascript in instructure.js does a bunch of stuff that we should eventually
move to ember so that it's not this global javascript that magically happens if
a div happens to have a certain class name. Until then, we need to make sure
that the logic in there happens so things don't break.

fixes CNVS-12853

test plan
- as a teacher
  - create a quiz with a link to a youtube video
  - save the quiz
  - enable fabulous quizzes
  - view the quiz
  - the clickable thumbnail that embeds the video should be present

Change-Id: I75e1db2318112c687680c715dbffc6506feefea5
Reviewed-on: https://gerrit.instructure.com/34863
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
remove beta conversations message

test plan
- open conversations
- ensure that there isn't a message above the 'no conversations
 selected' message and envelope icon saying something about this
 being a beta feature

Change-Id: Ibd95af1806234cf2d2cc1e844f34266b3a2e2bdd
Reviewed-on: https://gerrit.instructure.com/34853
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Braden Anderson <banderson@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
publish and unpublish with the api instead of changing workflow state directly

fixes CNVS-12975

test plan:
  - create a quiz with two questions (save but don't publish)
  - turn on fabulous quizzes
  - view the number of questions for the quiz on the ember quiz index page
  - it should show you the correct number
  - publish the quiz
  - refresh the page
  - it should continue to show you the correct number of questions

Change-Id: If9cd041f47b339771f8ffa3e9e3953195efc540d
Reviewed-on: https://gerrit.instructure.com/34835
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
fix audit log api scoping

fixes: CNVS-13026

Test Plan:

  Make sure you cannot search cross account objects in the event audit logs.

Change-Id: Ie64e59e7f144400076073d4b9c5ae2c0ad8b5285
Reviewed-on: https://gerrit.instructure.com/34827
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
canvas event stream

fixes: CNVS-10477

Test Plan:

Make sure auditing still works.

Change-Id: I021c0772ad0cf337d452b55bf690d15ce1a61a09
Reviewed-on: https://gerrit.instructure.com/31494
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
fix content_migration_spec for non-qti build

Change-Id: I32b5edd73bc2af40a806008801c87e2844370f28
Reviewed-on: https://gerrit.instructure.com/34880
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
fix module item icon padding

fixes #CNVS-12999

Padding was off when draftstate is disabled.

Test Plan
----------
As a user of any type
Given that draft state is disabled on a course
And I have a module with module items
And some of those module items are indented
When I go to the modules page
I should see the module item icon next to the module item title
And the icon should not be overlapping the module item title

Change-Id: I75238535ff2326c8bcbad3f4a0b76df7e65ec2a4
Reviewed-on: https://gerrit.instructure.com/34743
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Ember Quiz Stats - FIMB & Multiple-Dropdowns

This patch adds stats support for two new question types. Their answer
sets act like tabs and can be toggled to show metrics for each answer
set.

Closes CNVS-12989

TEST PLAN
---- ----

  - create a quiz with those question types and a bunch of possible
    answers
  - take the quiz by a number of students
  - visit the ember stats page and verify:
    - each answer set/blank has its own button in the question block
    - when you activate a blank:
      - the correct response ratio donut chart updates to reflect how
        many students chose/filled in the right answer for that blank
      - the answer distribution bar chart plots the number of students
        who picked each possible answer (only ones that are pre-defined,
        if they entered something funny, it shouldn't show)
      - toggle the question details:
        - verify that the answers are displayed below
    - choose another blank
      - verify that everything updates

Change-Id: I8d29eb12287b5f6cd8fb4b1d4ac794eed618a7a1
Reviewed-on: https://gerrit.instructure.com/34804
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
add full origin in json post to sis_app

fixes SIS-260

Change-Id: I0c40000111a527b602b74638d1ebc8685e14a7b2
Reviewed-on: https://gerrit.instructure.com/34592
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>
upgrade debugger gem to work with 1.9.3p545

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