Commit Graph

5068 Commits

Author SHA1 Message Date
Ryan Shaw 0b88c81e54 update and use sass gem instead of haml
sass is no longer going to be included in the haml
gem, and trying to do so is deprecated.

test plan: run bundle exec compass compile --force
and make sure pages look good in the app

Change-Id: Iba268de061d196d29b012ab4d2b48a4f945e17d2
Reviewed-on: https://gerrit.instructure.com/13936
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
2012-10-08 10:51:09 -06:00
Ryan Shaw d178a0844c get rid of collection related behaviors till ready
we have not turned on any collection related stuff
in the UI so these did nothing but cause us to download
more code to the browser.

Change-Id: I03eee5cf762fac4e3c617504ad422e717034a525
Reviewed-on: https://gerrit.instructure.com/13938
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Sterling Cobb <sterling@instructure.com>
2012-10-08 10:38:57 -06:00
rob orton b2e6337905 add grader_id to submissions api closes #11127
test plan
 * existing api should work but include grader_id

Change-Id: I223fa85d517f3bff75b31f1e3ac718d3760bd1ad
Reviewed-on: https://gerrit.instructure.com/14216
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-08 09:57:14 -06:00
Bracken Mosbacker ed545bd44e mark submission comments as hidden for submission zip uploads
When a teacher uploaded a submission zip on a muted assignment
the comments weren't being marked as hidden like they're
suppose to. They do now.

Test Plan:
 * Create an assignment and have some test students submit files.
 * Download the submissions.
 * Open the speedgrader and mute the assignments.
 * Close the speedgrader and go back to the other page
 * Re-upload the submissions.
 * Check the conversation messages for one of the users who submitted the assignment.
 * There should be no message for the submission
 * As a the student, view submission details, you should not see the reuploads as submission comments

closes #10335

Change-Id: I96d47ae18bed0140c66b6ff78f606a651e48a448
Reviewed-on: https://gerrit.instructure.com/14204
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2012-10-08 09:55:50 -06:00
Joe Tanner 34500f19e8 don't allow html from the question description to interfere
fixes #10852

This fix will prevent html copied from a quiz question and pasted into
the quiz description from interfering with question editing.

test plan:
- edit a quiz
- copy the html from a question, for example:
  <div id="question_16740547_question_text" class="question_text user_content enhanced">
    <p>For Mead, what is the "essence" of the self?</p>
  </div>
  <div class="answers">
    <div class="answers_wrapper">
      <div id="answer_6949" class="answer answer_for_      correct_answer hover">&nbsp;</div>
    </div>
  </div>
- edit the question
- paste the html into the question description (use "Switch Views")
- click the "Update Question" button
- edit the question again and edit the answers
- save the question again
- edit the question again and verify that the answers were changed and
  that there are no extra answers

Change-Id: I0e0388ad87b6a7b6ed5d97d610e68d1b92cf2333
Reviewed-on: https://gerrit.instructure.com/14136
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Ericksen <marke@instructure.com>
2012-10-08 09:31:35 -06:00
Cody Cutrer f5fd5c3306 linkify error report urls
test plan:
 * view an error report with a url
 * the url should be a link

Change-Id: Id6e6730284204b8b4e1ba19cbb0a583f607a9a6d
Reviewed-on: https://gerrit.instructure.com/14181
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2012-10-08 08:43:12 -06:00
Jake Sorce cbba0cdb9b fix data validation bug when group name is 255 characters
closes #7020

test plan:
  1. login as a teacher
  2. go to a course and click the 'People' link
     on the left hand nav
  3. click on 'View User Groups' right hand nav
  4. click 'Make a New Set of Groups'
  5. enter a group name that is exactly 255 characters
  6. click the radio button to split students into equal groups
  7. click 'Create Category'
  8. validate error message was displaed and group was not created
  9. also validate new functionality of radio buttons

new radio button functionality:
  1. click "I'll create groups manually" radio button
  2. validate that the split groups input field is cleared
  3. click the 'Split students into" radio button
  4. validate that the split groups input is populated with 1

Change-Id: Iac9ac5cea9e45c70b60d3618f632181f67a8a623
Reviewed-on: https://gerrit.instructure.com/13905
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Ericksen <marke@instructure.com>
2012-10-05 16:27:57 -06:00
Jon Jensen 589ae2c449 spec: add fixDialogButtons support to submit_form
refs #10236

Change-Id: Ieb90b72d6a7a67c97cec88a6f539ef255d190886
Reviewed-on: https://gerrit.instructure.com/14187
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-10-05 13:32:28 -06:00
Jake Sorce dacc7f9d9f spec: fix intermittent files failure
Change-Id: Id8f10ef6abdc33204043201de2480e41a389efe1
Reviewed-on: https://gerrit.instructure.com/14197
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-05 11:43:33 -06:00
Zach Pendleton d0d4be96d0 allow users to accept enrollments in pending courses.
fixes #9792

users who receive a course invitation link from canvas can now
accept the invite, even if the course hasn't begun and is restricted
by begin/end dates. they still are not able to participate in the
course until it begins.

test plan:
  * create a course with a start date in the future that has its
    participation restricted by course date;
  * create a student enrollment in the course;
  * using the link given in the enrollment invitation email, attempt
    to accept the enrollment;
  * verify that the enrollment is accepted and the user is redirected
    to the dashboard page.

Change-Id: I4f876232a550ca3616723ecad9dc7049e76e67d8
Reviewed-on: https://gerrit.instructure.com/13412
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-10-05 11:22:52 -06:00
Shawn Meredith 8b2f1a4eec parallelized_specs gem update version
Change-Id: Iad0609125c063eb4adc76a2403aed23b6b3b823f
Reviewed-on: https://gerrit.instructure.com/14196
Reviewed-by: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
2012-10-05 11:14:35 -06:00
Jeremy Stanley 93464a983e prepend domain to Canvas links outside exported course; fixes #10152
test plan:
 * on a page in Canvas course A, create a link to an item
   inside a different Canvas course, B, on the same domain
 * export course A
 * re-import it as course C
 * check the imported page, and make sure the link to the item
   in course B still works

Change-Id: I05eb00f7a19d1f274d5bcc95338e224d9a99c75c
Reviewed-on: https://gerrit.instructure.com/14158
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2012-10-04 15:37:22 -06:00
Bracken Mosbacker bae80e8bee don't allow students to submit blank media assignments
Test Plan:
 * Create a media submission assignment
 * As a student go to submit the assignment
 * The submission button should be disabled unless you have recorded media

closes #11048

Change-Id: Ia2c25535da9ab38d51b3fd5562e0a3250b14e710
Reviewed-on: https://gerrit.instructure.com/14126
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2012-10-04 15:22:21 -06:00
Zach Pendleton 108c356983 fix unauthorized link for students on course people page.
fixes #10380

when clicking a user's avatar on a course people page, students
received an unauthorized page. now users' avatars link to their
course profile page, which is accessible by both students and
teachers.

test plan:
  * as a student, navigate to a course's "people" page;
  * click another user's avatar and verify that their course
    profile page loads as expected.

Change-Id: Ief647577d9d202ea0259f44bf4812d0a82374228
Reviewed-on: https://gerrit.instructure.com/14073
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Ericksen <marke@instructure.com>
2012-10-04 14:48:10 -06:00
Mark Ericksen 799462e1bd Capture a users initial_enrollment_type when invited to a course. Fixes #10893
This also refactors the UserList constructor to better support passing this
information in when a user is being created through an invitation.

Testing Steps:
=========
* In a course, go the Settings > Users tab.
* Under "Add Course Users", select a type (ex: "Students") and
  give the user information.
   * Ex: "Student Test" <studenttest@example.com>
* After adding the user, verify in the console that the user has
  the correct initial_enrollment_type. (As far as I know, this
  information isn't displayed anywhere)
   * Sample console script:
      * u = User.last
      * u.initial_enrollment_type   #=> "student"

Can verify that this works for the following supported types
"student", "teacher", "ta", "observer".
Anything else (like Designers) doesn't get stored.

Change-Id: I5d900c421a04e95b5b92e21cd57e7694d1e98958
Reviewed-on: https://gerrit.instructure.com/14110
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
2012-10-04 14:26:15 -06:00
Amber Taniuchi 9379737930 Updating Russian translation file.
Change-Id: Id5abfec7b39be0f0fc083a035da55f5bebf05a2d
Reviewed-on: https://gerrit.instructure.com/14161
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-10-04 14:16:38 -06:00
Shawn Meredith dd3690d749 gemfile update for parallelized_specs gem
Change-Id: I4709917e930ed22d12b7b2de5554d99158f2ab83
Reviewed-on: https://gerrit.instructure.com/14157
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-10-04 12:54:44 -06:00
Cody Cutrer d28061a8bf fix recreating old environment when connections are closed in a slave block
test plan:
 * Run ActiveRecord::Base::ConnectionSpecification.with_environment(
    :slave) {
    ActiveRecord::Base.connection_handler.clear_all_connections! }
 * ActiveRecord::Base.connection_handler should not be nil

Change-Id: I6f0721eb00c3fd6d9ac27ad73d9ddf8fd768c512
Reviewed-on: https://gerrit.instructure.com/14139
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2012-10-04 12:25:04 -06:00
Simon Williams 0047480574 correctly schedule stream item cleanup job
fixes #11087

test plan:
- manually run StreamItem.destroy_stream_items_using_setting
- it should work
- you should not have stream items over a month old (you might be able to see
  this on a user that hasn't had any activity in the last month)

Change-Id: I64ae4458d18295537daeaf08cd131aea4d01091b
Reviewed-on: https://gerrit.instructure.com/14131
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-04 10:45:41 -06:00
Jacob Fugal fad465e68a fix DelayedMessage spec
Change-Id: I19c10b979208e44cd5f79e157d2e9cc7dc641c7b
Reviewed-on: https://gerrit.instructure.com/14145
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-03 22:25:03 -06:00
Cody Cutrer 9b632164c4 search all associated_shards for User#accounts
test plan:
 * add a user from one shard as an admin in an account in another
   shard
 * that account should show up in the user's home menu, and their
   all accounts page

Change-Id: Ib92b1a7f9283f6444d4a59108dc783f583b245bc
Reviewed-on: https://gerrit.instructure.com/14077
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-03 19:58:12 -06:00
Jake Sorce 4da0d62d26 spec: add coverage to others popover in conversations
Change-Id: I75c40a53e0b0cb59c6fc89c34299a2c0e1491cb6
Reviewed-on: https://gerrit.instructure.com/14130
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-03 17:32:29 -06:00
Cody Cutrer c37b5dd01e support cross-shard trusted accounts for UserList
test plan:
 * have a site admin user in shard 1
 * add that user by their login id as an admin to an account in
   shard 2 (in the UI)
 * it should work
 * repeat for enrolling in a course

Change-Id: I403f0f853056d4ea1dd9628c70e882fdc3cfd8bf
Reviewed-on: https://gerrit.instructure.com/14090
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-10-03 16:24:56 -06:00
Bracken Mosbacker c54d3060b2 allow multiple saml auth configs and full aac api
An account can now have multiple SAML configurations, and
can set an auth discovery url.

The old AAC API has been deprecated and this adds a normal
resource API for AACs

Test Plan:
 * Test the api be doing lots of things
 * Create two saml configurations
 * Test the individual login urls for each (/login/{id}) and verify they work
 * Test that the new SAML AAC UI works.
 * Test that the SAML configuration in position 1 is used as the default

closes #10497

Change-Id: Ibe35fcf788d9506542b1079cc7420912a1e9d9a2
Reviewed-on: https://gerrit.instructure.com/14042
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-10-03 15:23:56 -06:00
Zach Pendleton 82d7318c7d add new notification type for screen readers.
fixes #9254

add new flash message types - $.screenReaderFlashMessage and
$.screenReaderFlashError - that only display to users with
screen readers.

use these new types to display accessibility warning messages on
chat and conference pages.

test plan:
  * using a screen reader, navigate to the conferences and chat
    pages inside of a course and verify that a warning about
    inaccessible third-party content is read on page load.

Change-Id: I45086f63b6eefc31d05a77bf33092f8ae9796644
Reviewed-on: https://gerrit.instructure.com/13523
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
2012-10-03 14:30:01 -06:00
Simon Williams c62a374ebd fix banner inception
don't include fixed bottom bar warnings on pages that have been loaded into
iframes and have set @body_class_no_headers.  currently these are only used in
test environments.

test plan:
- in a test environment, go to speedgrader to an assignment with submission
  previews
- you should have the "test environment" warning along the bottom of the page,
  but it should not be duplicated inside of the preview area.

Change-Id: I9a8c7162cd2480e5fe17e90079cce8ecd9ca721c
Reviewed-on: https://gerrit.instructure.com/14096
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2012-10-03 10:06:05 -06:00
Joel Hough 1b648b575a don't count deleted sub-accounts. fixes #8427
test plan:
 * Create a sub-account (root>sub1)
 * Create a sub-account under the first sub-account (root>sub1>sub2)
 * Create a sub-account under the second sub-account (root>sub1>sub2>sub3)
 * Delete the third sub-account (root>sub1>sub2)
 * Verify that there is not a "1 Sub-Account" note under the second sub-account

Change-Id: Ib034df55e766497e07143f9b8ce3cb7b51c508f8
Reviewed-on: https://gerrit.instructure.com/14067
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-10-03 09:38:47 -06:00
Brian Palmer 621bd88955 add users.bio to dropped columns list
Change-Id: Ib6a1eab07b638666d5df83f5b06f1c49a1450b92
Reviewed-on: https://gerrit.instructure.com/14109
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-02 16:37:30 -06:00
Jake Sorce 916ae6f38d spec: fix intermittent people failure
Change-Id: I20e86126cf4ff4111509b188b03048ea16009f03
Reviewed-on: https://gerrit.instructure.com/14108
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Shawn Meredith <shawn@instructure.com>
2012-10-02 16:04:30 -06:00
Jake Sorce eb49f9b1c8 add data validation to new folder creation, fixes #10906
test plan:
  1. login as a teacher
  2. go to a course
  3. click on files on the left nav
  4. click 'Add Folder'
  5. try to give it a name over 255 characters
  6. text stops at 255 characters, press enter to add
     the folder
  7. folder is saved with no DB error

Change-Id: I1da8595350b3d0c6f23e3052e514bcb55446f141
Reviewed-on: https://gerrit.instructure.com/13982
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-10-02 15:54:37 -06:00
Cameron Matheson 3840e2bf9a speedgrader: show spinner while creating crocodoc viewing session
Test plan:
  * open a crocodocable submission in speedgrader
  * be comforted by the delightful dance of a spinner while waiting for
    your document to be displayed

Change-Id: I426b74f1f015da0a7a22c0e5beec4349010443bc
Reviewed-on: https://gerrit.instructure.com/14040
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
2012-10-02 15:36:52 -06:00
Jake Sorce c5f36fa897 fix improper data validation on profile link url, refs #10876
take off 255 character limit on the url link field, we migrated
the database to handle strings longer than 255 characters so this
limit is wrong

test plan:
  1. login as a admin and go to the default account
  2. click 'Settings on the left hand nav
  3. scroll down and click 'Enable Profiles' checkbox
  4. scroll up to the top and click on the user name link
  5. click 'Edit Profile'
  6. try to add a new link with a title that is longer than 255 characters
  7. try to add a url that is longer than 255 characters
  8. the title should not let you go over 255 characters and the url
     should be able to go over 255 characters without a DB error

Change-Id: Ia11803c14f175239be75e61f54ca2fb4deb65edc
Reviewed-on: https://gerrit.instructure.com/14098
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-02 14:17:12 -06:00
Bracken Mosbacker b6748eb1ed correctly conclude observer enrollment
if an SIS update tried to conclude an observer of a student
who was already concluded, that observer enrollment ended up
duplicated with one concluded enrollment and one active.

Test Plan:
 * Create a student with an observer
 * In an sis update conclude the enrollments with the student's row first
   (you can look at the example in the added spec)
 * Both users should be concluded and only have one enrollment

closes #11050

Change-Id: Iaf63f005397f7b93403e0fd032335bf0a1f364d2
Reviewed-on: https://gerrit.instructure.com/14094
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-02 13:25:37 -06:00
Cody Cutrer d70945c1bd remove unused twitter tables and no-op jobs
test plan:
 * edit course settings, there should not be an error
 * copy a course, there should not be an error

Change-Id: I733bef83b69d9c513be801d3e4b25422bcd10ebd
Reviewed-on: https://gerrit.instructure.com/13832
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-10-02 13:11:13 -06:00
Jon Willesen c508d0dab0 Email replies to locked topics should be ignored.
fixes #9594

test plan:
 - Configure Canvas to send emails to you.
 - Create a student account and set notifications for annoucements and discussions to "ASAP."
 - Create an annoucement and a discussion and make sure you get the notification emails.
 - Reply to the notification emails and see that the replies get posted as normal.
 - Lock the announcement and discussion.
 - Reply to the emails again and see the replies don't get posted.
 - See that you get an appropriate bounce message.

Change-Id: I4436c61a202d3285ee35a9f9002cefa0f18954fd
Reviewed-on: https://gerrit.instructure.com/13912
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-02 12:57:39 -06:00
Shawn Meredith 44fde8f378 spec: role recontexting and file naming refactor
test:
   1. refactored attribute(class) with have_class
   2. contexted no context specs
   3. split out teachers and student specific specs
   4. refactored have_attribute
   5. refactored eql => ==

Change-Id: I592a063eece8097d5672c164f82a7b1a0c3c8928
Reviewed-on: https://gerrit.instructure.com/13880
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-10-02 12:05:52 -06:00
Cody Cutrer 824e0cdb3e plugins initializing before initializers strikes again!
fixes #11033

Change-Id: I43a594249a6d22ed50e1c11c2b01d18b8afc80c3
Reviewed-on: https://gerrit.instructure.com/14059
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2012-10-02 11:32:05 -06:00
Zach Pendleton d56bf59ae3 load tinychat over https. fixes #10470
use our own tinychat embed script to ensure it is loaded
over https instead of http. this allows it to load properly
in chrome and other browsers that restrict non-https content
during an https request.

test plan:
  * load canvas over https;
  * in chrome, navigate to a course chat page and verify that
    tinychat loads without any errors.

Change-Id: I119b218ad03d91c39405529cf1604068514b07ee
Reviewed-on: https://gerrit.instructure.com/13899
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-02 10:50:54 -06:00
Zach Pendleton 2009d6041c consistently display assignment mute icon. fixes #8385
previously, mute icon was not displaying inside of the gradebook
for assignments with titles wider than the assignment column. this
commit makes the mute icon visible by left-aligning it with the
assignment title (instead of right-aligning it).

test plan:
  * inside a course, create an assignment with a long name that
    overflows the assignment column in gradebook/gradebook2;
  * from either gradebook, mute the assignment;
  * in both gradebooks, verify that the mute icon is visible and
    is now left-aligned to the assignment title.

Change-Id: I0a12fdd05ab2bdd570f018d4fbf2ecdef913cb43
Reviewed-on: https://gerrit.instructure.com/14065
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Ericksen <marke@instructure.com>
2012-10-02 10:50:21 -06:00
Cody Cutrer 24f75bee04 disable cross-shard conversations for the interim
to reduce confusion

test plan:
 * go to conversations on a shard other than your own
 * it should redirect back to the dashboard with a helpful message

Change-Id: I083a7fcb88bb3abdc40ad0bbf45c24ac6f237886
Reviewed-on: https://gerrit.instructure.com/14080
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2012-10-02 08:40:10 -06:00
Cody Cutrer 89155684a0 spec: be more tolerant of plugins using cache
Change-Id: I24fa386546791b34d790034517118cbdde3e60e2
Reviewed-on: https://gerrit.instructure.com/14058
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-10-01 20:01:22 -06:00
Cameron Matheson d64f329b94 fix kaltura previews in full_files (fixes #11047)
Test plan:
  preview a media object in course or user files and make sure it plays

Change-Id: I44f0ae788f4b02cb5399945336ff0656fa428f56
Reviewed-on: https://gerrit.instructure.com/14076
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
2012-10-01 17:10:25 -06:00
Cody Cutrer 27f9f0ecac support :conditions option for create_index
postgres only

Change-Id: Idd69c0d43ec845461b10a44364c85c22e3595dc5
Reviewed-on: https://gerrit.instructure.com/14063
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-10-01 16:22:44 -06:00
Cameron Matheson 2107f9c413 speedgrader: warn when not previewing in crocodoc
fixes #10955

Test plan:
  * submit a document that cannot be previewed in crocodoc
  * verify that a warning is displayed in speedgrader when grading that
    submission
  * disable crocodoc
  * the warning should no longer be displayed

Change-Id: I2f51b9df5db3ea4b64f73dbfa2eca15f22fc850a
Reviewed-on: https://gerrit.instructure.com/14007
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-10-01 15:02:38 -06:00
Bryan Madsen 9ec3c148eb spec: fix intermittent selenium failures
* mark profile selenium spec as pending
* make alphabetic file sorting spec more robust

Change-Id: I4a173948c260b0cb043fce2662de6d49d830f5eb
Reviewed-on: https://gerrit.instructure.com/14056
Reviewed-by: Jake Sorce <jake@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
2012-10-01 13:53:07 -06:00
Cameron Matheson 4a8457a1e4 fix google previews in speedgrader
Test plan:
  * disable scribd/crocodoc
  * submit an assignment that can be previewed in google
  * open the submission in speedgrader
  * make sure it previews inline rather than showing the submission
    details page

Change-Id: I0b71d7f80b3b5cc48f09d8a81298a9aafb62f90f
Reviewed-on: https://gerrit.instructure.com/14039
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-10-01 12:13:10 -06:00
Shawn Meredith ced03656cc spec: people_spec validation intermittent failure
Change-Id: I1137fe3c16829e35f92a28c67f86d485f1226e21
Reviewed-on: https://gerrit.instructure.com/14028
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-10-01 11:21:31 -06:00
Brian Palmer ea61131f12 limit the submit_to_turnitin job max attempts
now that it's on a strand, it's important we don't retry 15 times
because that'll hold up the rest of the jobs on the strand.

test plan: no user-visible changes, though admins can see the new max
attempts in the /jobs ui

Change-Id: I4b032b88c62e053528096337eecc6caaaa3337cb
Reviewed-on: https://gerrit.instructure.com/14047
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-10-01 11:01:21 -06:00
Ryan Shaw d0754f71f7 don't force cache of xhr and api requests
we threw some code in a long time ago to prevent
getting stale pages when you hit the browser's back
button. but we don't need the same behavior for
xhr and api requests (in fact, we WANT to send a
304 when we can)

Change-Id: I3e06034d8e74da7497cf66aaf47b46f6e35964ac
Reviewed-on: https://gerrit.instructure.com/13935
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-01 10:30:19 -06:00
Cody Cutrer 7a04fae231 change delayed_jobs.handler to text
test plan:
 * make sure delayed jobs still run

Change-Id: Idf2ed293d80124176161b7de801c9b0ae1d80465
Reviewed-on: https://gerrit.instructure.com/13994
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-01 10:11:59 -06:00