Commit Graph

15130 Commits

Author SHA1 Message Date
Alex Boyd a52af1503f Clear other access tokens under the same key when requested
Fixes PLAT-991

Test plan:
 - Run through an OAuth flow in the usual manner with a given
   developer key
 - Run through it again, this time giving replace_tokens=1 to the
   call to /login/oauth2/token
 - Ensure that the old token was nuked and only the new one remains
 - Set replace_tokens to true on the developer key you're using
 - Run through the OAuth flow again, without giving replace_tokens=1
   to /login/oauth2/token, and ensure that the old token was once
   again nuked

Change-Id: Id2b40bfd16918ab3d0852dabc13ed7b500277dc9
Reviewed-on: https://gerrit.instructure.com/52286
Reviewed-by: Brad Humphrey <brad@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Alex Boyd <aboyd@instructure.com>
2015-04-23 18:40:26 +00:00
Spencer Olson 0c4a819f15 add unit tests for grading period react components
add unit tests and refactor GradingPeriodCollection.jsx and
GradingPeriod.jsx.

closes CNVS-19912

test plan:

the majority of this commit is adding unit testing around
the grading period components. however, i did do some refactoring
of the grading period codebase, so this commit could potentially
affect any behavior on the grading periods page (courses/:course_id/
grading_standards and accounts/:account_id/grading_standards, with
the multiple grading periods flag turned on).

Change-Id: I53c382f952b71de6a6f0c78d4b5047939ef63d3d
Reviewed-on: https://gerrit.instructure.com/52591
Tested-by: Jenkins
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2015-04-23 17:50:51 +00:00
Brian Palmer 86c2fbe3a2 allow *.canvas.docker in the docker-compose dev environment
The leading dot is nginx syntax for allowing both `canvas.docker` and `*.canvas.docker`

Also pull in libxmlsec1-dev, for SAML.

Change-Id: I4281252053b7d890b08c06c30ad17f5b11670579
Reviewed-on: https://gerrit.instructure.com/52720
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2015-04-23 16:47:09 +00:00
Brian Palmer dc142ca33f switch to the speex codec for the flash recording widget
fixes CNVS-19888

The most recent version of Flash has a critical bug that causes the default
NellyMoser codec to play back at high speed
https://bugbase.adobe.com/index.cfm?event=selectBug&CFGRIDKEY=3970924

I wasn't able to fix the issue by changing NellyMoser sample rate. Switching to
the (more modern) Speex codec fixes the issue. There might be a slight decrease
in sound quality, since Speex sampling is 16khz, vs the 22khz we were using for
NellyMoser. On the other hand, the Speex codec is more optimized for speech,
which is what most of our recorded video is.

This also pulls in a new build of our KRecord.swf widget which enables
soundcodec and soundrate options.

test plan: without this commit, recording webcam video/audio will play back the
preview at high speed. with this commit, it should play back at the correct
speed. the video/audio should also save and play back later as expected.

Change-Id: Ie16a3ca04e836da9c5fc3bdbcf1b699e9dccf193
Reviewed-on: https://gerrit.instructure.com/52615
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-04-23 16:36:30 +00:00
Brian Palmer 5d27722e9c promote the "alt" kaltura recorder widget to primary
refs CNVS-19888

All accounts now have the alt recorder enabled, so I've deleted the old recorder
and made the "alt" the only recorder. In other words, I renamed KRecord_alt.swf
to KRecord.swf and removed the setting.

test plan:

The "use alternative flash recording widget" kaltura plugin setting should be gone.

All accounts should now use the new, standard recording widget. the easiest
way to test this is to have multiple cameras plugged in, and check that the
recording widget shows a UI for selecting which camera to use.

Note that right now the preview when you record will play back at a higher speed
than expected. This isn't related to this change, it's a Flash Player bug that
CNVS-19888 is working toward addressing. Once you save the video, playback
should work at normal speed.

Change-Id: I899ff0e7eee887f442fe3d74a64764e43e293cf8
Reviewed-on: https://gerrit.instructure.com/52586
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-04-23 16:36:10 +00:00
James Williams 4fce85e497 don't allow negative quiz question point values
test plan:
* should not be able to create a quiz question
with a negative point value

* import the package referenced in the ticket
* should not have questions with negative point values

closes #CNVS-19877

Change-Id: I184bf4705af59bfddfe6bce09c7930e0957dccd6
Reviewed-on: https://gerrit.instructure.com/52611
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-04-23 16:19:40 +00:00
Jonathan Featherstone 38ebf04d06 Assignment details page more accessible and no seafoam
Test Plan:
 * As a teacher, create different assignment types
 * As a student, make submissions to those assignments
 * Click on submission details link for different assignments
 * Verify that submission information appears correctly
   including preview or feedback button
 * Verify that turnitin score appears if turnitin used
 * Check for visual problems (wrapping etc)

Fixes CNVS-19249

Change-Id: I0ca835cc213768e2338558ba8aaf6619583e8f89
Reviewed-on: https://gerrit.instructure.com/52364
Tested-by: Jenkins
Reviewed-by: Matt Berns <mberns@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
2015-04-23 15:35:36 +00:00
Jeremy Stanley be5c263d9a fix styles on module item media previews
we applied styles to the :file_preview js_bundle that
fixed the New Files preview but broke other places that
bundle is used.  this commit applies those styles only
when we want them.

test plan:
 0. have a video file in a course
 1. add the video file to a module
 2. ensure the video file previews properly
    a) when the module item is clicked
       (the video should not overlap the page title or the
        module sequence footer)
    b) in the old files page
    c) in the new files page

fixes CNVS-19764

Change-Id: I22d2fd9f59906b590c369412ffa26f09909e66e3
Reviewed-on: https://gerrit.instructure.com/52597
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2015-04-23 15:30:21 +00:00
Weston Dransfield a4c105c359 fix custom params not saving.
fixes PLAT-984

test plan:
add custom setting to an app
try removing all settings
all settings should be removed

Change-Id: I375943e588b52c5ba6ca15e9d06320284ca3fb75
Reviewed-on: https://gerrit.instructure.com/52589
Reviewed-by: Brad Humphrey <brad@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brad Humphrey <brad@instructure.com>
2015-04-23 15:22:25 +00:00
James Williams 499aa1ca88 don't fulfill must_submit requirements on manual 0 grade
test plan:
* create a course with a student
* create an assignment
* create a module and add the assignment
 as an item
* add a completion requirement to submit the
 assignment
* in the gradebook, mark a 0 for the student
 in the assignment
* as the student, it should not show the requirement
 as completed

closes #CNVS-12693

Change-Id: Ic2721ead70b570e66b12d8936cc5bd4fcff62575
Reviewed-on: https://gerrit.instructure.com/52663
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
2015-04-23 15:00:37 +00:00
James Williams 888967772d spec: fix calendar_events_api_spec
refs #CNVS-19842

Change-Id: Iea39f42d7c096c14ec5e1372f1d9127d56f40143
Reviewed-on: https://gerrit.instructure.com/52520
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-04-23 13:12:12 +00:00
Transifreq f377ab9427 Updated pt translation
Change-Id: Icf68eea48e7f338f164d83b15a36b5e5e75c1bc2
2015-04-23 05:21:03 -06:00
Transifreq 01a04b1081 Updated es translation
Change-Id: I73c4f5e58a6102cfea5aa70dca8efacebc2959b0
2015-04-23 05:10:47 -06:00
Transifreq 185e13c027 Updated ar translation
Change-Id: Iff09c661a8c15716333bf509210497da08e259a0
2015-04-23 05:05:32 -06:00
John Corrigan bd319584d9 user comment_author_name_for on user gradebook
fixes CNVS-19905

test plan:

- Log in as a user that has been peer reviewed anonymously.
- Navigate to the user's grades page at /courses/:course_id/grades.
- Click the 'comment' icon to expand the comments box.
- Observe that the reviewer's name is not present, and instead it says
  Anonymous User.
- Log in as the teacher for the course.
- Navigate to the student's grades page.
- Click the 'comment' icon to expand the comments box.
- Observe that the reviewer's name is present.

Change-Id: Ifdb405a3c80554f7a2b976ef5b5f2325271cb712
Reviewed-on: https://gerrit.instructure.com/52686
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Reviewed-by: Benjamin Porter <bporter@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-04-23 00:47:02 +00:00
James Williams e5cfd592a6 only use root_attachments if they are valid
test plan
 - upload a file on user 1
 - destroy the s3object
 - upload the file again on user 2
 - merge user2 into user 1
 - it should be a new root_attachment that works

Change-Id: I979932a7aa1a652b2aab4c660dcc6b6de15b8861
Reviewed-on: https://gerrit.instructure.com/50954
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2015-04-22 23:39:33 +00:00
Cameron Matheson 30d0b0b024 gradebook csv upload: ignore failed uploads
Test plan:
  * instead of uploading gradebook csv, upload a cat picture
  * it should tell you the csv failed to parse and take you back to the
    upload page

Change-Id: I9a09538250351612603e20a735d0aaf75aecce34
Reviewed-on: https://gerrit.instructure.com/52211
Tested-by: Jenkins
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-04-22 22:21:02 +00:00
Jonathan Featherstone e04060e50a Added flash message for error in app add screen
Test Plan
  * Verify that app_store is functional in environment
  * Turn on screen-reader and navigate to course settings/
    apps
  * Add a new app that has required fields (like big blue button)
  * Leave required fields blank, and attempt to hit "add" button
  * Verify that screen-reader announces same message in displayed
    error message

Fixes CNVS-19920

Change-Id: I16c04807d2981e3198cf234a6a1234c441789fa9
Reviewed-on: https://gerrit.instructure.com/52685
Reviewed-by: Matt Berns <mberns@instructure.com>
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
2015-04-22 22:09:56 +00:00
Josh Simpson c4a59efc7b fix speedgrader name hiding for quizzes
fixes CNVS-17618
This commit addresses a bug where, if a teacher grades a question for a quiz,
in SpeedGrader, with the 'Hide Student Names' setting enabled, it shows the student's
name after refreshing the quiz history page.

Test plan
- As a teacher, create a quiz with a question
- As a student, take the quiz
- As the teacher, go to SpeedGrader
- Turn on the "Hide Student Names" setting
- Turn on the "Grade by Question" setting
- Note that the student's name isn't revealed
- Change the grade of the question of the quiz taken by the student
- The "Results for" header should still be anonymized

Change-Id: I0a562765008c860f1391ce88a8133a179279176e
Reviewed-on: https://gerrit.instructure.com/50265
Reviewed-by: Cameron Matheson <cameron@instructure.com>
Tested-by: Jenkins
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-04-22 21:11:39 +00:00
John Corrigan 2baf369b3b render table of data from line graph for screen readers
fixes CNVS-19344

- Add template for table.
- Update OutcomeSmmaryCollection::ResultCollection#scoresFor method to
  parse the datetime values from the API.
- Update OutcomeLineGraphView#render to render table of data in addition
  to the d3 driven line graph.
- Update OutconeLineGraph to accept a pre-parsed date.

test plan:
- Navigate to student outcome view at
  /courses/:course_id/grades/:user_id#tab-outcomes.
- Use the keyboard to highlight the `...` icon and hit enter to expand
  mastery info for an outcome.
- Use a screen reader to navigate content in the popover; note the table
  that is present to explain the information that is otherwise displayed
  just visually as a line graph. The data features two columns: the
  first is the data the assignment related to the outcome was submitted
  or the data the outcome assessment was made; the second is the score the
  user recieved.

Change-Id: Ibc4ac867c8376e1cb9022a06a311b95a2cf27178
Reviewed-on: https://gerrit.instructure.com/51088
Tested-by: Jenkins
QA-Review: Adam Stone <astone@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
2015-04-22 20:53:21 +00:00
James Williams 666a79100e show correct total activity time for users
test plan:
* enroll a user
* use the course as that user (giving a total activity time)
* add the user to another section of the course
* the total activity time should be unchanged

* repeat, only instead of adding to another section,
 switch the user to a different section (removing
 them from the old one)
* total activity time should still be unchanged

closes #CNVS-16335

Change-Id: I7b7889832ae97e3d8fafe0fd1243a6048e359645
Reviewed-on: https://gerrit.instructure.com/52248
Reviewed-by: Braden Anderson <braden@instructure.com>
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-04-22 20:44:29 +00:00
Rob Orton e177a05d72 udpate csv diffing documentation
Change-Id: Iaad654b3c468cc76e7d670044ceffa524140f04e
Reviewed-on: https://gerrit.instructure.com/52564
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2015-04-22 20:02:45 +00:00
Matthew Berns ba906190ac fix browser-specific keyboard only navgation issues with tinymce
fixes CNVS-19827

test plan:
- go to any page that has a tinymce editor box

in chrome/safari
- use keyboard to navigate to HTML format button and hit enter/click
- focus should move to textarea, and you should be able to tab beyond it
- shift+tab back up and toggle the edit box formatting back to rich content
- focus should automatically be moved into the editor box
- there should be no changes in expected behavior/loss of information typed into
  the edit box

in firefox
- with the rich text editor active, attempt to tab beyond the edit box
- there should be no issues with kb only navigation in either direction

in all browsers
- with the rich text editor active, tab beyond the editbox
- shift+tab back to it, the focus should go to the editbox
- review CNVS-9789 and ensure there are no regressions concerning that issue

Change-Id: I0673b22a12809e36ad64d6c1d271deb22355513f
Reviewed-on: https://gerrit.instructure.com/52317
Tested-by: Jenkins
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
2015-04-22 19:41:36 +00:00
Simon Williams cbfad12974 use timout_protection for BBB and Wimba
this change ensures that if big blue button or wimba misbehave and
timeout many times in a row, our standard timeout protection code will
kick in and blacklist them so that we don't exist app server resources
with timeouts.

closes CNVS-8693

test plan:
- general regression test on big blue button conferences
- general regression test on wimba conferences
- make sure you don't get any timeout errors interacting with these
  conferences

Change-Id: Id53165aa76b2d4f821cfa8eb3f19f8a1b3733182
Reviewed-on: https://gerrit.instructure.com/51532
Tested-by: Jenkins
Reviewed-by: Joel Hough <joel@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2015-04-22 18:19:43 +00:00
John Corrigan ad52cabec3 fix anonymous peer review checkbox on graded discussion form.
fixes CNVS-19782

The checkbox used to determine whether or not an assignment's peer
reviews should be considered anonymous, which is part of a backbone
view, did not function properly if it was 'nested' (i.e., if the name on
the field should be `assiginment[anonymous_peer_reviews]`, instead of just
`anonymous_peer_reviews`. The `checkbox` helper is already setup to
handle this; we just needed to pass the `nested` value to it, and to
update how we determine whether or not the checkbox should appear
checked, so as to avoid manually setting the checkbox's `name`
attribute.

Additionally, this patch fixes a bug in the
`RubricAssessment#considered_anonymous?` method, which would blow up if
the model did not have a related rubric_association. I've added a
protection to two other methods that would have thrown exceptions in the
absence of a rubric_assocation as well.

Finally, I updated the logic in the SubmissionComment policy
declaration, so that when trying to `:read_author`, a student can always
see the name of a teacher, even if the comment is marked as anonymous.

test plan:
- as a teacher, create a graded discussion topic. When doing say, enable
  peer reviews, and enable anonymous peer reviews.
- as a student, submit an entry for the graded discussion topic.
- as a teacher, assign a peer review to a student for the submission
  above.
- as the reviewer student, submit a review.
- as the reviewed student, navigate to the submission details page
  (/courses/:course_id/assignments/:assignment_id/submissions/:user_id)
  and observe the comment list on the right hand side of the page.
- observe that the name of the reviewer student is not present, and
  instead it says 'Anonymous User'.
- as the teacher, navigate to the same submission page, and observe the
  comment list on the right hand side of the page.
- observe that the name of the reviewer student IS present.
- as the teacher, navigate to the same submission page, and observe the
  comment list on the right hand side of the page
- as the teacher, leave a comment on the submitted assignment.
- as the reviewed student, navigate to the submission details page, and
  observe the comment list on the right hand side of the page.
- observe that the name of the reviewer teacher IS present.

Change-Id: I572dd7fa319cd784e59f00057898fcea5349c899
Reviewed-on: https://gerrit.instructure.com/52099
Tested-by: Jenkins
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-04-22 14:23:49 +00:00
Transifreq 6176943fe4 Updated pt-BR translation
Change-Id: Id3207df038340e5a0a04c7bf1cd437d1110fc232
2015-04-22 05:21:59 -06:00
Transifreq 38f6e553ef Updated ar translation
Change-Id: If026c791e4d75efe68df568388e41ea84bf66425
2015-04-22 05:05:27 -06:00
Matthew Berns 44f32f36de fix label for grade input on submission details modal
fixes CNVS-19921

test plan:
- go to gradebook individual view with a screenreader enabled
- select a student an assignment, then go to submission details
- the grade input should be properly associated with the Grade: label when read
  by voiceover

Change-Id: Ic905c28d6fc0870a0efd4ef07f49259c7658b499
Reviewed-on: https://gerrit.instructure.com/52593
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Matt Berns <mberns@instructure.com>
2015-04-21 23:09:53 +00:00
Steven Shepherd 37a2639a4f Add spec to test if teachers can make a student a group leader
Test Plan:
  - Run Specs

Change-Id: Ia4218e0a0705e5c5f9a09d445918765a20c55c35
Reviewed-on: https://gerrit.instructure.com/52612
Tested-by: Jenkins
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
Reviewed-by: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
Tested-by: Ben Bolton <bbolton@instructure.com>
2015-04-21 21:22:16 +00:00
Cody Cutrer 6049f83830 move oauth2 methods to their own controller
test plan:
 * smoke test obtaining (or denying) an access token
   via the oauth flow

Change-Id: Ibd57f5ff971cb3302af786c81bae7b2bcee8470f
Reviewed-on: https://gerrit.instructure.com/51373
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-04-21 20:54:29 +00:00
Clay Diffrient f092980536 [a11y] Improves color contrast for the keyboard menu in TinyMCE
closes CNVS-19678

Test Plan:
   - Go to an instance of TinyMCE
   - Press Alt+F9 to open the menu bar
   - The menu's hover states and focus states should be
     compliant for color contrast.

Change-Id: Iaf1258ff28da49e9f672bb9f38ac3175886fc957
Reviewed-on: https://gerrit.instructure.com/52308
Tested-by: Jenkins
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-04-21 20:42:38 +00:00
Simon Williams ddaede97b6 rubric should remember 'use for grading' setting before page refresh
fixes CNVS-15499

test plan:
- go to a course assignment page
- add a rubric and check 'use for grading'
- hit save, but don't refresh the page
- hit edit on the rubric
- the 'use for grading' check should still be there
- now refresh the page and edit again
- the 'use for grading' check should still be there

Change-Id: Idb43afa1d1974f26cec7b86adc317a64f7010185
Reviewed-on: https://gerrit.instructure.com/52038
Tested-by: Jenkins
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2015-04-21 20:27:18 +00:00
Simon Williams a702f03f56 add media extension to download redirect urls for podcast rss
iTunes requires that enclosure urls end with the media extension, even
if they are redirect urls

fixes CNVS-19718

test plan:
- in a course, upload a media file (like an mp3)
- create an announcement, link to the media file in the announcement,
  and check the setting to allow the podcast feed
- save the announcement
- load the podcast rss feed, it should list the media file you uploaded
  and the enclosure url should have .mp3 in it (end of url, before query
  params)
- load the podcast feed in itunes
- it should work

Change-Id: I398a2cc0462405e27bf4f189fa9a2905df3b29db
Reviewed-on: https://gerrit.instructure.com/52092
Tested-by: Jenkins
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2015-04-21 20:27:12 +00:00
James Williams 479db7cedd don't enroll users with deleted pseudonyms in sis imports
test plan:
* import the sis .zip package referenced in the ticket
* should have a warning
* should not create an active enrollment in the new course

closes #CNVS-19829

Change-Id: I1f1aa23da7a7a8aab09026bc974945f8f3fc5743
Reviewed-on: https://gerrit.instructure.com/52576
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-04-21 19:12:19 +00:00
Jeremy Stanley 8e134c6c20 import files as unpublished if usage rights required
test plan:
 0. enable "better file browsing" and "usage rights required"
    in a course
 1. upload and expand a zip file and confirm the files are
    unpublished initially
 2. confirm that a file imported from an imscc package is
    (a) unpublished in the new course if no usage rights
        were set in the source course, regardless of whether
        the file was published in the source course
    (b) unpublished in the new course if it was unpublished
        in the source course, regardless of whether usage
        rights were set in the source course
    (c) published in the new course if it was published in
        the source course and had usage rights set.
 3. repeat step 2, but with course copy instead

fixes CNVS-19620

Change-Id: I9a32adeafb94e4922ba95ad6466c72aca3fd3598
Reviewed-on: https://gerrit.instructure.com/52465
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2015-04-21 17:37:30 +00:00
Cody Cutrer d0c90ef52a add missing index supporting a foreign key
Change-Id: Ib1510268c21e1b1430767f20e5f9a2bf8eb87f64
Reviewed-on: https://gerrit.instructure.com/52526
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-04-21 15:19:26 +00:00
Transifreq a9487e978f Updated ru translation
Change-Id: I4376fac5c98b32abb3cec60c1b7833af74dc6443
2015-04-21 05:24:04 -06:00
Transifreq 0737a2a606 Updated pt-BR translation
Change-Id: I160238079942fa2a4d3601c7125fd83e782a733e
2015-04-21 05:22:36 -06:00
Transifreq 568e95e56f Updated pl translation
Change-Id: Icba87c6ce9fa121a17e4dc3f37081a2ad0d81de0
2015-04-21 05:19:59 -06:00
Transifreq 8902953fef Updated nb translation
Change-Id: Ie500b66ec02481dfdfa50f1ec1941c25843bd85b
2015-04-21 05:17:20 -06:00
Transifreq f95cd7bd82 Updated fr translation
Change-Id: I55237946efa2b42d7d33332c3f80dbd54d604b83
2015-04-21 05:13:29 -06:00
Transifreq 02404acb33 Updated en-GB translation
Change-Id: Id9b02897afdf5e94e8f4d03247413c8ce939a9f3
2015-04-21 05:09:37 -06:00
Transifreq 85dac01be1 Updated en-AU translation
Change-Id: I55c554072b83551f37def288c50d248c7207afa1
2015-04-21 05:08:10 -06:00
Transifreq 55a64ed797 Updated ar translation
Change-Id: Icbd208a0a7db82309e42a2a28d58d64ff7862bc7
2015-04-21 05:05:27 -06:00
Brad Horrocks 694cf95083 remove document_id prefix from legacy documents when using the new api
Fixes PLAT-994
Test plan
Have a really old google collab
make sure it works with drive

Change-Id: I6e685bb975bc2f6a84a6d3207dd0c61bd7f1d3f5
Reviewed-on: https://gerrit.instructure.com/52551
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Brad Humphrey <brad@instructure.com>
2015-04-21 03:06:25 +00:00
James Williams 469635d623 use real user for locale and timezone settings when masquerading
test plan:
* log in as a teacher
* set the locale and time zone as the user
* enter student view for a course
* should still use the same locale and time zone
 as the real user

closes #CNVS-1488

Change-Id: I81636f3c34a7ded7fb0aec025a6fc8fba9659efd
Reviewed-on: https://gerrit.instructure.com/52516
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-04-20 20:12:54 +00:00
Brian Palmer a5d77e2a29 add cache store logging
We found this useful in rails2, especially the timing information, but it was
lost in rails3. This uses ActiveSupport Notifications to log the information.

test plan: with redis enabled, load some canvas pages. you should see
"CacheStore" lines in the debug logs, showing the operation, key name, and time
taken.

Change-Id: Ifd30a3aa6a6da6d0ea54fa7ad1aba4537dc483f2
Reviewed-on: https://gerrit.instructure.com/51589
Reviewed-by: Kevin Blackham <kblackham@instructure.com>
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
2015-04-20 20:05:50 +00:00
James Williams d6786dbdbc spec: more spec fixes
refs #CNVS-19842

Change-Id: I71b8ee06e6d030260f75736ad9b34b0ce3179469
Reviewed-on: https://gerrit.instructure.com/52464
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-04-20 19:06:52 +00:00
Ryan Taylor 0bfe1c1cea Adds question_types to quiz API responses
Necessary for mobile quiz selection

Closes CNVS-19613

Test Plan:
  - Confirm that quiz API endpoints return question_types array,
    containing unique quiz question types.

Change-Id: If1a51bb101fc6a346872c7d5952cb68d32e85397
Reviewed-on: https://gerrit.instructure.com/52217
Reviewed-by: Brian Finney <bfinney@instructure.com>
Tested-by: Jenkins
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Ryan Taylor <rtaylor@instructure.com>
2015-04-20 16:04:42 +00:00
Ryan Taylor 8239ecb3d4 Remove dates from quiz Stats feature flag
Closes CNVS-19694

Test Plan:
  - Confirm no dates appear on feature flag.

Change-Id: I4935fcec4e2d6f0a5b5ffa769f9aa87da6e6294b
Reviewed-on: https://gerrit.instructure.com/52148
Tested-by: Jenkins
Reviewed-by: Brian Finney <bfinney@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Ryan Taylor <rtaylor@instructure.com>
2015-04-20 16:04:33 +00:00