Commit Graph

13974 Commits

Author SHA1 Message Date
Michael Nomitch 8f879e55de outcomes facelift
fixes CNVS-17802

test plan:
  - go to the outcomes page
  - make sure everything looks okay
  - play around with it and try to make it look bad
  - plug in a non-mighty mouse to see if the scroll
    look bad with one of those
  - outcomes modal windows are still usable

Change-Id: I7f0ff0a80955032e0f1121adc7ec5c0f3c58ddff
Reviewed-on: https://gerrit.instructure.com/46666
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Reviewed-by: Matt Berns <mberns@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-15 21:39:01 +00:00
Ryan Taylor 2feb9d40c9 Ensures QLA events are recorded on submission
Submission of a quiz sometimes didn't produce associated events.  This
prevents the intermittent failure to record those events.

Closes CNVS-17588

Test Plan:
  - Take quizzes many times with as quick of submission as you can,
    while modifying the answers, as only answer events were problematic.
  - Confirm that all events are recorded in the submission log.

Change-Id: I46bcf21287d38886a21fe281d08d49ea83f047b1
Reviewed-on: https://gerrit.instructure.com/47009
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Finney <bfinney@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Ryan Taylor <rtaylor@instructure.com>
2015-01-15 21:38:25 +00:00
Clay Diffrient e0465aacc4 Improves usage rights indicator
This makes it so the indicator button is disabled for anyone without rights
to manage files in the context.  This prevents students from being able to
open up the Manage Usage Rights modal. It also puts an additional check
for rights around the display of the warning symbol.

fixes CNVS-18007

Test Plan:
   - Enable New Files and Usage Rights Required
   - As a teacher, you should see the warning icon for files without usage
     rights after uploading them.
   - Clicking any of the usage rights indicators should open the Manage
     Usage Rights modal
   - As a student, clicking the indicator should not open the modal
   - Also, you should never see the warning icon as a student.

Change-Id: I6ae6be987b522995d84cb9f5ef7438e63d261324
Reviewed-on: https://gerrit.instructure.com/47263
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-01-15 21:26:55 +00:00
Cody Cutrer d909c6487b remove before/after callbacks pairs that simply check _changed?
you can check _changed? in after_save callbacks

Change-Id: I306b2dfcae00f2c435930a84814ca1a21425961e
Reviewed-on: https://gerrit.instructure.com/47044
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nick Cloward <ncloward@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-15 19:53:40 +00:00
Jeremy Stanley dea1f8b11f touch the root folder when hiding or showing the Files tab
to ensure the permissions on it are updated in a timely fashion.

test plan:
 0. enable "better file browsing"
 1. have a student enrolled in a course
 2. view the student's files page, and note the course's files
    appearing in the list
 3. in a separate browser, as a teacher or admin, hide the
    files tab in the course
 4. refresh the student's browser and confirm that the course's
    files no longer appear
 5. in the teacher's browser, re-enable the files tab
 6. refresh the student's browser and confirm that the course's
    files appear again

fixes CNVS-17891

Change-Id: I43bb2d5606341e2ef7a337065d2e50e85bb1a40d
Reviewed-on: https://gerrit.instructure.com/47085
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
2015-01-15 19:18:55 +00:00
James Williams efc2d97a12 invalidate module progressions on prerequisite change
test plan:
* create two modules, both with an item and completion
 requirement
* leave the first one unpublished, but publish the second
* add the first module as a prerequisite for the second

* view the modules page as a student
* the second module should be available (since the first
 one is unpublished)

* now publish the first module
* visit the modules page again as the same student
* it should have reset the progress for the second module,
 locking it

closes #CNVS-17819

Change-Id: I53bbb15d183866bb0bb25c8a7cf562b018bfe7f4
Reviewed-on: https://gerrit.instructure.com/46919
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-01-15 18:41:01 +00:00
Clay Diffrient fbdfd1fc04 Makes the People page tabs a bit more accessible
fixes CNVS-14063

Test Plan:
  - Using NVDA go to a course's people page
  - The tabs should be read out as tabs rather than as links

Change-Id: I8469bdbd4a1d470560dd644d527623a81fed5874
Reviewed-on: https://gerrit.instructure.com/47097
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-15 18:23:32 +00:00
Duane Johnson 67038cf144 add array support to Live API doc page
Array type arguments were not being sent as Rails-style arrays in
the request params.

See https://github.com/instructure/canvas-lms/issues/564

Test Plan:
- in the /doc/api/live page
- send a request that includes an array-type param
  (e.g. Submissions -> List submissions for multiple assignments)
- comma-separated values should be interpreted as multiple items
- items should be passed back to Canvas as Rails-style query params

Fixes SIS-752
Fixes GH-564

Change-Id: I310755f2d4cb648a6f4dd33a531d975205a86613
Reviewed-on: https://gerrit.instructure.com/46745
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Tyler Pickett <tpickett+gerrit@instructure.com>
QA-Review: Kausty Saxena <ksaxena@instructure.com>
Product-Review: Nick Houle <nhoule@instructure.com>
2015-01-15 18:01:34 +00:00
Steven Shepherd d47f906061 Update Agenda View specs with Create New Event test
test plan:
run specs

Change-Id: I91efedeedbf6c5f5cf9fe7fa6cda5835f6e78e02
Reviewed-on: https://gerrit.instructure.com/47209
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-15 17:58:08 +00:00
Joel Hough ac1606a5e9 don't rely on entry id ordering on unthreaded discussion show page
fixes CNVS-17898

test plan
- have a discussion topic without threaded replies with a root
 entry that has a higher db id than one of its child entries (this
 requires fiddling around in the console)
- view the discussion topic show page
- ensure that the entries display correctly and no js error report
 is generated

Change-Id: I9a9238366ed15803b43b6d70e7bb8cd5adc93cbc
Reviewed-on: https://gerrit.instructure.com/46903
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Severson <markse@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2015-01-15 17:25:08 +00:00
James Williams ee549d1a84 don't invalidate account quota cache when unnecessary
test plan: (basically same as g/44678)
* create an account with a sub account
* change quotas on the parent account
* should still update the defaults on the sub account

refs #CNVS-14971

Change-Id: I1d064271fcf0eda3cedc223664cec861af98817b
Reviewed-on: https://gerrit.instructure.com/47164
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2015-01-15 14:04:13 +00:00
James Williams eba11175a8 fix document previews on public pages
test plan:
* enable file previews + canvadocs
* create a course with a public syllabus
* add a inline preview link to a canvadocable document
 to the syllabus
* view the syllabus as a public user (not logged in)
* should still be able to open the preview without
 triggering an authentication error

closes #CNVS-17959

Change-Id: Ia5edede4534aba0768744a6feb663cb6fb8e0ea4
Reviewed-on: https://gerrit.instructure.com/47122
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>
2015-01-15 13:19:49 +00:00
Cody Cutrer a339195163 be sure and count unchanged accounts
refs CNVS-17778

Change-Id: Iad44e9de31fcfb5fa2dd873e83b6dcebb2f7f2a7
Reviewed-on: https://gerrit.instructure.com/47220
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-15 03:14:22 +00:00
Cody Cutrer f1104347a7 fix stalling of sis imports
refs CNVS-17778

if there a bunch of slow jobs in a row, the singleton won't have created
a job for each one, and we might run out of jobs

Change-Id: I99b89d1266e88b8a004fe9dff2d9be0760b97bc3
Reviewed-on: https://gerrit.instructure.com/47219
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-15 02:59:47 +00:00
Cody Cutrer 61235a4262 use account cache for primary lookup in sis imports
refs CNVS-17778

also put stuff into the cache even if it hasn't changed

Change-Id: Ifb9a857b2d38303208a20e5a6993349525c56d1b
Reviewed-on: https://gerrit.instructure.com/47215
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-15 01:48:49 +00:00
Cody Cutrer d395937eae gemify qti_exporter
fixes CNVS-14283

also fixes ContentMigration to work with auto-loaded worker classes

Change-Id: I57a8dc0f241ac599ff77fc344504bf83ecee4aac
Reviewed-on: https://gerrit.instructure.com/46133
Reviewed-by: Nick Cloward <ncloward@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-15 01:10:47 +00:00
Colleen Palmer cc5dac7b22 React Modal in Styleguide causing js errors and no styles
This fixes the react modal in the styleguide. There was a regression
where the content for the component no longer existed and was
causing js errors and styles not to be loaded into the styleguide

fixes CNVS-17958

Test Plan:
- Compile assets and styleguide
- Go to and test the React modal component by clicking on the
trigger buttons
Screenshot of what it should look like:
http://cl.ly/image/3a1v1r171i2H

- Go to Tabs component and make sure styles are being applied

Screenshot of what it should look like:
http://cl.ly/image/2b2P0y3z341C

Change-Id: I162949e313283e60c20af6dfd52c41df9536bee0
Reviewed-on: https://gerrit.instructure.com/47052
Reviewed-by: Chris Hart <chart@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
2015-01-14 23:31:15 +00:00
Rob Orton 0fb43015e8 don't fail an sis import on an invalid associated user id
fixes CNVS-17979

test plan
 - create an enrollment csv with an invalid
   associated_user_id for an observer
 - the import should not fail
 - the import should give warning about the bad data

Change-Id: Iaecd177b8be24efdece1db21890beae5d206cdc2
Reviewed-on: https://gerrit.instructure.com/47134
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-01-14 23:23:07 +00:00
Brad Humphrey 1ec3b431e6 add a method to authenticate a tool proxy
test plan:
  - specs should pass

Change-Id: Iaaa66852efbf1daa376488a6a6372d45c3aba61b
Reviewed-on: https://gerrit.instructure.com/43700
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: Brad Humphrey <brad@instructure.com>
QA-Review: Brad Humphrey <brad@instructure.com>
2015-01-14 23:19:33 +00:00
Rob Orton 6099e8959e update the course id for sections on sis imports
fixes CNVS-16542

when a section is cross listed to a course and the
course is deleted the section is treated as
deleted and the section will be uncrosslisted on
an sis import when state of the section is set to
active

test plan
 - create a section in course a through sis
 - crosslist the section into course b
 - delete course b
 - import the section again into course a or
   course c, and it should move and be active

Change-Id: I84d8f3a6d1c7cfa8d2ae3f2d2a0f890d2cccab49
Reviewed-on: https://gerrit.instructure.com/46997
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>
2015-01-14 23:14:07 +00:00
Cody Cutrer a4d39ffea2 batch up "touching" of unchanged accounts during sis import
refs CNVS-17778

test plan:
 * import a batch with duplicate lines
 * it should not fail

Change-Id: I568c3ef8f7173a9d4c287d362e0415af29679647
Reviewed-on: https://gerrit.instructure.com/47150
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-01-14 23:13:33 +00:00
Cody Cutrer 97603daba9 avoid calling overwritten methods when cloning an object for broadcast_policy
refs CNVS-17778

also avoids writing the same attribute twice

Change-Id: Ia2d4cd495dde233f1953002e5b396ab799512db9
Reviewed-on: https://gerrit.instructure.com/47024
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-14 22:55:51 +00:00
Cody Cutrer ab7b58c127 bump canvas-jobs
mainly for restart/pidfile fixes

Change-Id: I2f2c268b0953c999dab96e55b2bb927e8ae0c1f1
Reviewed-on: https://gerrit.instructure.com/47175
Reviewed-by: Nick Cloward <ncloward@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-14 22:26:17 +00:00
Colleen Palmer 76fd81bab2 Adds setup checklist button to Course publish header
When you start a new course and there is the box that says,
"Your Course is Unpublished" we have now added a button that will
kick off the course setup checklist when activiated.

Test Plan:
- Start a new course
- The Wizard should not automatically pop up
- Click on the blue Setup Checklist button
- The Wizard should now pop up

Change-Id: I8a9a46f6eb3ce62a0f29e72ba397eb0169deda91
Reviewed-on: https://gerrit.instructure.com/46980
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-14 21:07:22 +00:00
Cody Cutrer ab731fbc9c break up job processing after long sis batches
refs CNVS-17778

the point of the loop is to not spawn a ton of jobs for tiny live
events. for large batches, we want it to take a breath in between
so that if a hotfix happens, the next batch will run with new code

Change-Id: I50bef7fa6c3abcf514b8dbb301fe4ff99b965515
Reviewed-on: https://gerrit.instructure.com/47148
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>
2015-01-14 20:49:09 +00:00
Matthew Berns b837c2f815 adding move outcome/outcome group modal for improved accessibility
fixes CNVS-9047

test plan:
(test outcomes and outcome groups to ensure both work as expected)
- enable voiceover and navigate to the move button for a outcome/outcome group
- focus should automatically go to the outcome tree in modal window
- navigate tree using keyboard based on voiceover modal instructions
- select an item, its name should be announced on voiceover
- click 'move'
- outcome/outcome group should be moved into new group
- after short delay, message should display confirming move and be read on voiceover
- page directory should return to moved outcome/outcome group's parent with focus
  on outcome group the item belonged to
- directories page should properly reflect change in original and target
  directories
- re-opening modal window without refreshing page should still automatically go
  to tree when re-opening modal window
- directories on modal should reflect prior change when browsing
- attempting to move an item into the group it already belongs to should generate
  an error
- clicking the move button with no group selected should generate an error
- both errors, as well as confirmation message from earlier, should be read aloud

to retest file trees:
- enable better file browsing feature flag
- go to files page and navigate folders, all expected behaviors should occur
- click 'move folder' and navigate the folder tree, all expected behaviors
  from master branch should occur, including files moving properly
- go to edit addignment, edit outcome, or edit discusson and click 'embed image'
  on toolbar
- go to 'Canvas' tab on modal window and navigate tree, all expected behaviors
  from master branch should occur, including images properly attaching

note: assuming successful test, we should take extra care to ensure there are no
styling regressions anywhere else folders appear in the app

Change-Id: I9de723736d96d976630940db432c6849fc414aba
Reviewed-on: https://gerrit.instructure.com/43884
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-14 20:27:25 +00:00
Cody Cutrer c81bebbfdf skip legacy migrations when the default account does not exist
since it's no longer created on-demand for production environment

test plan:
 * set up a new database with `rake db:initial_setup` in a
   production environment

Change-Id: Ia048c77e74091c2e10ed81ded0a4c652788bb02a
Reviewed-on: https://gerrit.instructure.com/46311
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>
2015-01-14 20:21:38 +00:00
Simon Williams 0eb4ccc38d fix roles for student view student
fixes CNVS-17951

test plan:
- go to course settings and enter student view
- open a browser console and type ENV.current_user_roles
- it should include 'student'

Change-Id: I8b4e05089519a9ed2946262c42853cb5c1da03dc
Reviewed-on: https://gerrit.instructure.com/47034
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Sean Lewis <slewis@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2015-01-14 19:38:23 +00:00
Clay Diffrient fbec7fa7b5 Makes the course wizard not popup automatically on initial course creation.
Test Plan:
	- Create a course
	- Go to said course, no wizard should appear
	- Click the course checklist button, a wizard should appear

Change-Id: Ie4672daa7068b518f1eb8dc0f1da29e3b1c1d8e4
Reviewed-on: https://gerrit.instructure.com/46979
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-14 16:04:37 +00:00
Brad Horrocks c69e8ff120 Fix page load error on Account level group discussions
Group.all_real_students will return all account users when a group's
context is an Account

Fixes CNVS-17623

Test plan

Regression Test
  - Account Level Discussions
  - Group Level Discussions

Change-Id: I0db79ab8285f264d46bce82ddd2a020d894befcd
Reviewed-on: https://gerrit.instructure.com/46974
Reviewed-by: Joel Hough <joel@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2015-01-14 15:25:35 +00:00
Dan Minkevitch 422bebc3d6 Adds a clear text field button to file rename form
There previously wasn't a button that allowed users
to clear the text field for renaming a file before
uploading (in case of duplicate).  This adds the
button so that the user can clear and focus the
text field as requested.

fixes CNVS-17817

Test Plan:
* Enable "Better File Browsing" feature flag
* Go to any course's Files page as a teacher
  or admin
* Upload a file to the course
* Attempt to re-upload the same file
* On the modal that appears, click
  "Change Name"
* It should display a text field to rename
  the file, as well as an X icon/button
  in the text field, which upon clicking,
  clears and focuses the text field

Change-Id: I15e76b2e9d22e9c69ea701a3c00ef3631300d5e5
Reviewed-on: https://gerrit.instructure.com/47030
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-01-14 14:13:09 +00:00
Derek Hansen 3d6fb5623c Update calendar2 week view selenium specs to cover regression test cases
Fixes CNVS-17950

Test plan:
- Pass Jenkins

Change-Id: I862da96b5130f843fc4fc29a1e9ff5cf1c8f193f
Reviewed-on: https://gerrit.instructure.com/47047
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-14 02:04:35 +00:00
Strand McCutchen bfe4cf2d10 Update bundler requirement to 1.7.12.
- Increased the ceiling of the bundler reqs to include
  the most recent patch.
- Revised code to use an 80-char per line style.

Change-Id: Iad6e0c278e583ed7fc07e5e63094021a4eaa254a
Reviewed-on: https://gerrit.instructure.com/47089
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2015-01-13 23:49:30 +00:00
Brad Humphrey 6ec8bdb081 add better error messages to lti outcomes
test plan
 - Install an LTI tool with grade passback
 - Setup an assignment in a course for LTI grading

 - Delete the user enrollment and execute outcomes API call
   * It  should say 'User is no longer in course'

 - Delete the assignment and execute outcomes API call
   * It  should say 'Assignment is invalid'

 - Delete the tool and execute outcomes API call
   * It  should say 'Assignment is no longer associated with this tool'

 - Delete the course and execute outcomes API call
   * It  should say 'Course is invalid'

fixes PLAT-821

Change-Id: Ia058a14854bd107eeea6a28b77258ab197980e25
Reviewed-on: https://gerrit.instructure.com/46891
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-01-13 22:52:03 +00:00
Brad Humphrey 206e66d8f8 allow multple rce on the same page to launch resource selection
test plan:
 - Add an editor button tool
 - Create a quiz
 - Add something from the LTI tool to the main RCE
 - Without refreshing create a quiz question, and add LTI content to it
 - Both RCEs should have LTI content

fixes PLAT-698

Change-Id: Ie12f6d405fd321c059ea86fd5c9d4ea3483121f2
Reviewed-on: https://gerrit.instructure.com/46636
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brad Humphrey <brad@instructure.com>
2015-01-13 22:51:38 +00:00
Cameron Matheson 8442169d80 include current letter grade in gradebook.csv
Test plan:
  Download the gradebook csv for a course that has a grading standard.
  It should show both final and current letter grades.

Change-Id: I352354b5e6254325738b031d5e382d0a0c690102
Reviewed-on: https://gerrit.instructure.com/46861
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2015-01-13 22:25:29 +00:00
Cody Cutrer 73642ce76c skip importing accounts that didn't change
refs CNVS-17778

Change-Id: I8ff78392cee358df9bb28720a19cb956694b7d0e
Reviewed-on: https://gerrit.instructure.com/47025
Reviewed-by: Nick Cloward <ncloward@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-13 21:22:42 +00:00
Michael Nomitch 89b36d052d include observers in assignment notifications
fixes CNVS-8728

test plan:
  - DA off
    - set up an observer following a student
    - set up an observer in course without a student
    - create an assignment in this course
    - both observers and the student should be
      notified of the assignments creation
    - remove an enrollment from an observer user
      - create another assignment and this user
        should not be notified
  - DA on
    - set up an observer following a student
      (we'll call him observer A)
    - set up an observer following a student
      in a different section (observer B)
    - set up an observer in course without a student
      (observer C)
    - create an assignment in this course for only
      the section that observer A's student is in
    - observer A and observer C should be notified of
      the assignment, observer B should not be

Change-Id: I5ff01cc9a6f19e8c7dca4f806fe48b9d6d8dbe36
Reviewed-on: https://gerrit.instructure.com/45853
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Sean Lewis <slewis@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-13 21:20:06 +00:00
Spencer Olson a4cdd49ef5 speedgrader: show most recent submission when switching students
When using Speedgrader if multiple students have submitted an assignment
multiple times, selecting a later submission for one student
should not subsequently change the submission being shown for the other
students with multiple submissions.

closes CNVS-16419

test plan:

1.With a few different students submit to an assignment multiple times
2.Once finished submitting work go into the speedgrader and notice that
	initially everything shows the most recent submission.
3.Select a later submission for one of the students, then go to a different
	student. Notice that the submission being shown for the new student is
	the most recent submission (before this fix, the submission being shown
	for the new student was not the most recent submission. It was being
	affected by the submission being selected for the first student).
4.Go back to the first student (the one that you selected a later assignment
	for), and make sure the most recent submission is being shown.
5.Also, go to an older submission for a student and change the grade.
	Click outside of the grade input box so the page reloads. Verify
	after the page is done reloading that the submission you updated
	is still selected (so, if i update the grade for Submission2, when
	the page reloads Submission2 is still selected).

Change-Id: If7e600e4fabf88cd4b5a040240d949e1aa4339cd
Reviewed-on: https://gerrit.instructure.com/46128
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2015-01-13 20:51:57 +00:00
Derek Hansen 43c4dab2b9 Adding additional announcement specs to match tregression test cases
fixes CNVS-17883

Test plan:
- Jenkins passes

Change-Id: Ib2e61461dd8f6474e32a58b7089a4239dcee2deb
Reviewed-on: https://gerrit.instructure.com/46887
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-13 20:45:18 +00:00
Derek Hansen 3de7e97a1f Split apart spec/selenium/discussions_spec.rb
Fixes CNVS-16489

Test Plan:
* Build passes jenkins/specs

Change-Id: Iff1de122e3410960b2315773a2be88385d8ff55d
Reviewed-on: https://gerrit.instructure.com/46342
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-13 20:07:11 +00:00
Spencer Olson 93df2a947f speed grader: only show data for selected student
there was a bug occuring when the 'next' or 'prev' button
was clicked shortly after updating a student's grade -- the
student data being shown was for the inccorrect student. this
commit fixes that bug by checking in the AJAX callback to
make sure that the data received belongs to the
currently-selected student.

closes CNVS-16958

test plan:

1. Have a quiz with at least two students and one quiz submission
2. Update score on quiz
3. Click the next student button immediately after the tab loading icon stops
	 spinning and prior to the page finishing loading (this is how the bug was
	 reproduced. see http://screencast.com/t/hGZmNjP8KrJ6 )
4. Notice that the submission data being shown on the page is for the
	 currently-selected student. Before this fix, the data would show up
	 for the previously-selected student.
5. Also, update the score on a quiz, and don't hit the 'next' student
	 button (let the page reload). Make sure the data on the page updates
	 correctly and shows the information for the currently-selected
	 student.

Change-Id: Ibd4729416a6cb726288093fb144c1c2eda6aeacf
Reviewed-on: https://gerrit.instructure.com/46369
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2015-01-13 20:04:06 +00:00
Clay Diffrient 8364744e98 Makes course publicly available label much better
Makes sure all the necessary data is in the label and
lines the label up properly.

fixes CNVS-16977

Test Plan:
  - Go to courses/x/settings
  - All the text for "Make this Course publicly visible" should be part of the label
  - All the text should be lined up rather than awkwardly offset

Change-Id: I1fc9e9dd921d9c009c6d5a28143e64182372c290
Reviewed-on: https://gerrit.instructure.com/46930
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-13 19:52:08 +00:00
Ryan Taylor d836c6f08a A landing page for when Quiz Stats are just too big
Quiz Stats were silently failing. This catches the failed server request
and renders a clean error page which directs the user to download the
reports instead of using the statistics UI.

Closes CNVS-17285

Test Plan:
  - Access a quiz with more than 1000 submissions or more than 50
    questions.  See that the stats page is no longer rendered empty, but
    that an error page is shown.
  - Confirm that report buttons are operational
  - Confirm that report popup info boxes are looking good

Change-Id: I850406ed164a61e59d137dda3221746ee25a77cc
Reviewed-on: https://gerrit.instructure.com/46377
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Ryan Taylor <rtaylor@instructure.com>
2015-01-13 19:17:14 +00:00
Derek Hansen 9fc8ba3b86 Refactor names of three scheduler specs to match the organization in testrails.
Fixes: CNVS-17701

Test Plan:
* Verify that Jenkins passes

Change-Id: I011cafc4cc27b3683e92245712b1da3e9faa1779
Reviewed-on: https://gerrit.instructure.com/46409
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
2015-01-13 19:13:11 +00:00
Transifreq a44829af2b Updated zh_Hant translation
Change-Id: Ie7f37a8260b77c02f4e04b9a95e6960130c0c6c4
2015-01-13 12:10:20 -07:00
Transifreq d8ed75926b Updated zh translation
Change-Id: I0ba624ce4b201f080589b7373bb3f88a901583ca
2015-01-13 12:08:53 -07:00
Transifreq 49ba21e264 Updated tr translation
Change-Id: Id64a9c522a529c0f78023008d147b466bd39d512
2015-01-13 12:07:23 -07:00
Transifreq 065ee7968a Updated ru translation
Change-Id: Iba9f1781aee1fe15c78395e473b1906ac57e2fab
2015-01-13 12:05:53 -07:00
Transifreq 5034624acf Updated pt-BR translation
Change-Id: I33088c40cb1502f4f4ada46c9d3456adfea77c20
2015-01-13 12:04:22 -07:00