Commit Graph

17065 Commits

Author SHA1 Message Date
Cody Cutrer 55fadc46be don't allow courses in the site admin tree at all
Change-Id: I1b8a51dc2191a5f376897eb77f96ac120b75eed0
Reviewed-on: https://gerrit.instructure.com/61259
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-19 18:12:33 +00:00
Taylor Wilson bdc4bd75f2 Adding login specs for iOS apps
twilson, panda, 7

  - added shared examples for iCanvas and SpeedGrader for
    login view and credentials

  - to test: comment/uncomment appium init and skip statements in
    mobile_common, spin up Appium server, create and edit yml file,
    and run specs

Change-Id: Ie32900026028ea36568343b85b275c4e00d33fa3
Reviewed-on: https://gerrit.instructure.com/61224
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-19 17:48:55 +00:00
Michael Hargiss a716ab8722 cleanup and refactor OQAAT specs
Test Plan:
- pass Jenkins
- check for syntax errors
- make sure all test_ids match up to an existing test case in TestRails

mhargiss,panda,11

Change-Id: I347834d5be266aa8b422c1623f676fc374ebf7dc
Reviewed-on: https://gerrit.instructure.com/59274
Tested-by: Jenkins
Product-Review: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Reviewed-by: Taylor Wilson <twilson@instructure.com>
2015-08-19 17:38:14 +00:00
James Williams 882e2add5c rails4: set config.log_level on boot
otherwise it will ovewrite logger.level with the default
 (:info on production)

refs #CNVS-21596

Change-Id: I18352300b769d141de7a83959568e627f6a519b4
Reviewed-on: https://gerrit.instructure.com/61257
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-08-19 17:34:31 +00:00
Steven Shepherd 66550c0ce5 Add specs for testing restricted file access in groups
sshepherd,panda,4

Test Plan:
  - Run specs

Change-Id: I919ca3e39bca635b7eb5bf690d995de2746223dc
Reviewed-on: https://gerrit.instructure.com/61260
Tested-by: Jenkins
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-19 17:34:09 +00:00
Cody Cutrer b521d20570 remove invalid associations
fixes gh-673

Change-Id: I49ee5d775ae65b1557163e0e404fe97807e1c357
Reviewed-on: https://gerrit.instructure.com/61149
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-19 17:33:33 +00:00
Cody Cutrer 91e162f01a optimize common cases of Account#default_storage_quota
avoid even going to redis for two common cases that are likely
already cached in-process, or for repeated calls to the same
method

Change-Id: Ia90dbe25d83ab69ba62f26c966884a041ff61f3d
Reviewed-on: https://gerrit.instructure.com/61093
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-19 17:32:30 +00:00
Cody Cutrer 219fe524bf avoid unnecessary permission check
Change-Id: Iccb0fd40a648a502613dfac89b331155afa103fb
Reviewed-on: https://gerrit.instructure.com/61099
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-19 17:22:30 +00:00
Cody Cutrer 41aa7b7c8c fix Account.find_cached
Change-Id: I7c9ff510213fc74c71d7118d181af893eddae1bb
Reviewed-on: https://gerrit.instructure.com/61253
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
2015-08-19 16:59:36 +00:00
Mark Severson 4b6418e4ae remove description from the sis assignments api
test plan:
 * query the sis assignments api for an account/course
   * /api/sis/accounts/:account_id/assignments
   * /api/sis/courses/:course_id/assignments
 * the description field should not be returned for any assignment

fixes CNVS-22513

Change-Id: I2d679a3b7eedf4f4892ef5e7d1b93007e7500c7a
Reviewed-on: https://gerrit.instructure.com/60861
Reviewed-by: Brad Humphrey <brad@instructure.com>
Tested-by: Jenkins
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
2015-08-19 16:59:27 +00:00
Joel Hough 05624f1071 don't generate collaboration doc in transaction
fixes CNVS-22506

test plan
- regression test google doc collaborations

Change-Id: I696562d74e317b465b1679513fa7f5ff913a1c99
Reviewed-on: https://gerrit.instructure.com/60923
Tested-by: Jenkins
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: Adrian Russell <arussell@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2015-08-19 16:07:24 +00:00
Derek Hansen 5db92e05bd Small discussion spec test_id match up
Change-Id: Ie7955f7e83228384de0d0ea3bb4efa763d513aa2
Reviewed-on: https://gerrit.instructure.com/61027
Tested-by: Jenkins
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-19 15:46:24 +00:00
Brad Horrocks 79c7848895 Add account to access_token
We now pull the account from the developer key

Fixes PLAT-1200

Test Plan:
Run the tests?
not much really changed
none of is really exposed/used

Change-Id: I88b3b9b907ae7b15145ac8e2e6fc1a18527b40d5
Reviewed-on: https://gerrit.instructure.com/60544
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-08-19 15:44:39 +00:00
James Williams cb7824efca improve speed_grader rubric assessment loading
don't stuff them in the fake js_env and join the data there
 just return them with the rest of the speedgrader data

also don't do unnecessary permissions checks on every rubric
 assessment

test plan:
 * regression test speedgrader rubric assessments

closes #CNVS-22522

Change-Id: I31a025c8f23b054857823f411a229780c27cb94f
Reviewed-on: https://gerrit.instructure.com/60963
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-08-19 15:16:18 +00:00
James Williams 86f7bddf5e don't load plugin settings for account services on every page load
loading AccountServies.allowable_services shouldn't calculate
 "expose_to_ui" when unnecessary

Change-Id: I86c6bebb88c372932283b063054a5f9e5fb947e1
Reviewed-on: https://gerrit.instructure.com/61186
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-08-19 14:46:51 +00:00
Transifreq 164042751a Updated tr translation
Change-Id: If079473c012f521adc4cd030c35efd69b8666cf9
2015-08-19 05:24:15 -06:00
Steven Shepherd b6d255000d Add specs for testing group files and refactored priority
sshepherd,panda,9

Test Plan:
  - Run specs

Change-Id: I34630c52b3fcd8b3076b2c1ea6ed52bcfd24021a
Reviewed-on: https://gerrit.instructure.com/61231
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Product-Review: Steven Shepherd <sshepherd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-08-19 01:16:37 +00:00
Deepeeca Soundarrajan 9d1bf771ad Discussions - Specs for vdd multiple due dates
dsoundarrajan, panda, 7

Change-Id: I06e9ce1592b80b3b52d161850aea0ec48c63148a
Reviewed-on: https://gerrit.instructure.com/61089
Tested-by: Jenkins
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Product-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-08-18 23:06:39 +00:00
Jonathan Featherstone 8856134c5a Move post grades button to top header
Slight structural change to post grades button to make style more
uniform. Test plan from original ticket where button was added is
pasted below for ease of testing. Verify that change works for old and
new canvas styles.

Test Plan:
  * configure powerschool grade posting by enabling sis feature flag
    * /accounts/:id/settings
      * "post grades to sis" -> on
    * /courses/:id/settings
      * SIS ID -> random number
  * add an assignment, make sure that "post grades to sis" is checked
  * navigate to gradebook, verify that "post grades" button is visible
  * verify that "post grades" button is not visible when no assignments
    are present
  * click on button and verify that current powerschool modal launches
  * add sisapp lti launch
    * get local sisapp running
    * /accounts/1/settings/configurations
    * add app, by url http://<local sisapp>/post_grades/config.xml
  * navigate to gradebook, verify that both powerschool post and new
    lti post are available in drop down menu

closes CNVS-22119

Change-Id: Id57bed25774e4bff2208eb8a7ec1f318a276f1c5
Reviewed-on: https://gerrit.instructure.com/60378
Tested-by: Jenkins
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
2015-08-18 21:39:22 +00:00
Derek Hansen e9e12544fa speedgrader specs
dhansen,panda,6

Change-Id: I071bc2f5d0c8b129cab55bb111ed49a2a8ccf58d
Reviewed-on: https://gerrit.instructure.com/60318
Tested-by: Jenkins
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-18 21:29:22 +00:00
Heath Hales c18939e32e Adding spec for 94164: Group Limit - Remove Student Drag and Drop
hhales, panda, 1

Change-Id: I77dc8582f91175ac8c5202ad35c39c64552f3284
Reviewed-on: https://gerrit.instructure.com/61157
Tested-by: Jenkins
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-08-18 20:59:39 +00:00
Jahnavi Yetukuri 29b250d4c1 People and navigation tab specs
jyetukuri, panda, 3

Change-Id: I128ccf9bca8d6c00034800ee9932c861ec4b9346
Reviewed-on: https://gerrit.instructure.com/61091
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Product-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-08-18 20:58:00 +00:00
Taylor Wilson f64a4fe5bd Landing page specs for iCanvas and SpeedGrader for iOS apps
twilson, panda, 4

  - added shared examples for iCanvas and SpeedGrader landing page

  - minor changes to appium environment setup, school_domain now
    defined in selenium.yml file

  - to test: comment/uncomment appium init and skip statements in
    mobile_common, spin up Appium server, create and edit yml file,
    and run specs

Change-Id: Ica180895f167e007cab14cadfe79e554a44f25da
Reviewed-on: https://gerrit.instructure.com/61118
Reviewed-by: Heath Hales <hhales@instructure.com>
Reviewed-by: Steven Shepherd <sshepherd@instructure.com>
Tested-by: Jenkins
Product-Review: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
2015-08-18 16:38:52 +00:00
Keith Garner 228408666b speedgrader external urls can now open inline or in a new tab
When using SpeedGrader on an external URL page, the teacher is
presented with the URL as a link that opens in the frame and a second
instance of the link with the text "(View in a new tab.)"  Because of
this, teachers have the option to choose to view inline or in a
seperate tab.

fixes CNVS-22370

test plan:
- In a published course with students...
- Add a URL submission assignment and publish it.
- As a student submit http://placekitten.com as the assignment
  submission.
- As a teacher view the submission in speedgrader, and click the
  submission links in the left frame.
- Confirm that the URL link opens in the iFrame and the "View in a new
  tab" link opens in a new tab or window.

Change-Id: I4991db9cd12101f0cfdd719aed3e77acf0ce7a61
Reviewed-on: https://gerrit.instructure.com/60517
Reviewed-by: Strand McCutchen <smccutchen@instructure.com>
Tested-by: Jenkins
QA-Review: Adrian Foong <afoong@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-18 16:38:17 +00:00
Keith Garner d5a4dfa81a invalid characters in initial grade do not alter workflow_state
Entering any invalid character—e.g. &, }}, {{+, or space—as an initial
grade in either the Gradebook or SpeedGrader causes the grade to be
set to null and the workflow_state to remain in unsubmitted. Because
of this, results in SpeedGrader do not show the student as needing to
be graded.

fixes CNVS-20823

test plan:
- Create a course with multiple students and an assignment of any type.
- Enter any non-grade in either Gradebook or SpeedGrader (characters
  like &, ?, +, etc…), and press 'Enter'
- Note that the character is removed as the field updates
- View the submission in SpeedGrader and note that the student shows
  as unsubmitted by the lack of orange dot nor green checkmark next to
  their name

Change-Id: Idae8c025739fdb051ca7c8089f3cc25fe1424690
Reviewed-on: https://gerrit.instructure.com/60851
Tested-by: Jenkins
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-18 16:37:53 +00:00
Keith Garner d81f7c6b5f a11y fix: speedgrader teacher comments attachment area
The File Attachment and Media Comment buttons in the teacher comment
attachment area in the SpeedGrader Add a Comment area now navigates
and reads properly in screenreaders.  As a result, navigation and
intention is now communicated clearer to users with accessibility
needs.

fixes CNVS-13135

test plan:
- Create a text entry assignment and have a student submit something
  to be graded
- As a teacher, go into speedgrader for that assignment
- With a screenreader activated, select the Add a Comment text area
  and navigate using tab over the following buttons: Submit Comment,
  File Attachment, Media Comment
- Observe that after the Submit Comment button, the File Attachment and the
  Media Comment buttons are read as "File Attachment Button" and "Media Comment
  Button"

Change-Id: I05e45ada0f083e7bf1ae20433065909f55be133c
Reviewed-on: https://gerrit.instructure.com/60298
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-18 16:37:41 +00:00
James Williams a60bd5ffe4 add more caching + performance improvements
refs #CNVS-21317

Change-Id: Id9bbb04a92abd835af69ba5ec0c21ef758a8a324
Reviewed-on: https://gerrit.instructure.com/61146
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
2015-08-18 16:01:33 +00:00
Heath Hales 2a9ece9120 Adding spec for 94159: Remove Student - Drag and Drop
hhales,panda,1

Change-Id: I5dae7af8288cba7a30f3f32e8b8f75bf9f66b41e
Reviewed-on: https://gerrit.instructure.com/61100
Tested-by: Jenkins
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Product-Review: Steven Shepherd <sshepherd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-08-18 15:52:28 +00:00
Rob Orton 5d81879d41 drop unused columns from groups
fixes CNVS-22555

test plan
 - db:migrate should work

Change-Id: I6259abacf508195cbaca04e06bfed7ec202f5c8b
Reviewed-on: https://gerrit.instructure.com/61133
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-08-18 15:08:37 +00:00
Cody Cutrer eb3c6a5e94 actually run the preloader
Change-Id: I69f3d8adc2de1a3ea3ebd5d0d1da0d6ef862f334
Reviewed-on: https://gerrit.instructure.com/61098
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-18 14:57:29 +00:00
Cody Cutrer 0c4ad2eadd preload enrollment dates when selecting participating users in a course
refs CNVS-22546

Change-Id: Ia3fc3ecd7e4d8fe77c1203388554a25eed759fea
Reviewed-on: https://gerrit.instructure.com/61070
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-18 14:56:53 +00:00
Adam Stone 59eb68b83b Outcomes spec refactor
Had to split up the n mastery and decaying average int
validation into two functions. There was an issue with
two error boxes being present on the page.
Above range and below range now each have their own tests.

Change-Id: I99954c3c75c2131eb31f3e40ca7c0589dbda761e
Reviewed-on: https://gerrit.instructure.com/61117
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-18 14:52:16 +00:00
Transifreq f8bbc311d8 Updated hy translation
Change-Id: I185f0309a455eb09d9cec3cc10314f9abd47fc43
2015-08-18 05:19:05 -06:00
Transifreq 87f8155634 Updated es translation
Change-Id: Ic5b3c23a6be43fd025c006411afdc1c29a176734
2015-08-18 05:15:24 -06:00
Clay Diffrient 6e7e39e999 Converts NoResult component to JSX
refs CNVS-22335

Test Plan:
  - Search for a file that doesn't exist in files
  - A message should appear saying that no results were found

Change-Id: Iba07fc829e612205417921f4618f29a9141d01dd
Reviewed-on: https://gerrit.instructure.com/61022
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Charles Kimball <ckimball@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-08-18 05:23:54 +00:00
Steven Shepherd 801bd7ef57 Add specs for testing files in groups
sshepherd,panda,6

Test Plan:
  - Run specs

Change-Id: I6c62dc36b912edfcaf14bfeec59edcb5b6896627
Reviewed-on: https://gerrit.instructure.com/61112
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Tested-by: Jenkins
Product-Review: Steven Shepherd <sshepherd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-08-17 23:47:24 +00:00
Jacob Fugal 1991fba3e5 spec: fix fragile packaging for canvas_quizzes
added these files included by timezone_core recently; apparently they
need to be whitelisted

Change-Id: I529975dc7da25a9e2cb5c3a9d095796e30d0f6c7
test-plan: `grunt test` works for canvas_quizzes
Reviewed-on: https://gerrit.instructure.com/61094
Reviewed-by: Kacey Roberts <kroberts@instructure.com>
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Tested-by: Jenkins
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
2015-08-17 23:11:20 +00:00
Zach Wily 75b9a4db24 switch guard from polling
Change-Id: I294165c7e62c088973f883612d40998b8a8ca523
Reviewed-on: https://gerrit.instructure.com/59978
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins
Product-Review: Zach Wily <zach@instructure.com>
QA-Review: Zach Wily <zach@instructure.com>
2015-08-17 22:36:23 +00:00
Heath Hales cb1da078f8 Add spec for test case 94156: Move Student Drag and Drop
hhales,panda,1

Change-Id: I4f9b515d05763c75c2cf8d36192684f767a6cf9f
Reviewed-on: https://gerrit.instructure.com/61079
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Tested-by: Jenkins
Product-Review: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-08-17 22:15:04 +00:00
Simon Williams 557567811a DRY up db_load_data task
test plan: N/A

Change-Id: I6b21021bc61cebc9d80990ee14b5c69cdc75164b
Reviewed-on: https://gerrit.instructure.com/59792
Tested-by: Jenkins
Reviewed-by: Christina Wuest <cwuest@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2015-08-17 21:59:26 +00:00
Simon Williams 221c312631 fix confusing whitespace in lib/stats
test plan: N/A

Change-Id: I6baddd64b542fc4fb8c8388a718b9456db01e0a6
Reviewed-on: https://gerrit.instructure.com/59785
Tested-by: Jenkins
Reviewed-by: Strand McCutchen <smccutchen@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2015-08-17 21:52:30 +00:00
Cody Cutrer 450e46fe92 preload global announcement account info prior to caching
this avoids repetive queries for site admin

Change-Id: I6c7ac3c49f47385167007b92b8e589257250c41f
Reviewed-on: https://gerrit.instructure.com/61016
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-08-17 21:44:50 +00:00
Cody Cutrer c39499c6a1 force Account.find_cached to always cache relative to the birth shard
also get rid of the :nil nonsense in caching - it's not needed in Rails 3

Change-Id: Ie2879f91e59898981ad2566a63a6b99350313165
Reviewed-on: https://gerrit.instructure.com/61017
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-08-17 21:44:08 +00:00
Cody Cutrer a7fefca26a preload and/or avoid loading at all data used by stream items
Change-Id: Iab2605d77b7c546aacea2a0445f5582b40d0999c
Reviewed-on: https://gerrit.instructure.com/60621
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-08-17 21:43:55 +00:00
Cody Cutrer ee17716731 remove some kludge-caching of :nil
that was only needed in rails 2

Change-Id: I1e2a00f65237d45ac82daa19eaecf5c589171718
Reviewed-on: https://gerrit.instructure.com/61025
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-17 19:27:27 +00:00
Cody Cutrer 1059861b7d bump canvas-jobs
Change-Id: I3a2c0109378dce907a9eb237b3685c739df4b114
Reviewed-on: https://gerrit.instructure.com/60844
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-17 19:26:36 +00:00
James Williams 9a0a5fdb7c fix activity_stream_summary for announcements
apparently they are the exception to the asset_type
 is class name rule

test plan:
* create an announcement
* it should count as a separate type of stream item in the
 activity stream summary

refs #CNVS-22424

Change-Id: I4eefaab180e1dc8f441c9b23d0a2a237dac627c9
Reviewed-on: https://gerrit.instructure.com/61001
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-08-17 18:53:10 +00:00
Chris Hart d911a631ac [NUI] Admin nav panel needs View All Accounts link
Fixes: CNVS-22536

Test Plan:
- New UI only
- When you open the "Admin" nav panel by clicking
  the Admin link in the primary navigation, you
  should now see an All Accounts link at the bottom
  of the list of accounts
- Clicking on this link should take you to the Canvas
  page where you can view all the accounts/subaccounts
  you manage.

Change-Id: Ieeb38674f3c593c40105f79069bfef01673e3965
Reviewed-on: https://gerrit.instructure.com/61007
Reviewed-by: Jennifer Stern <jstern@instructure.com>
Product-Review: Jennifer Stern <jstern@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Tested-by: Jenkins
2015-08-17 18:21:27 +00:00
Strand McCutchen 1c7881f98c view/edit Grading Scheme modal autosizes height
fixes CNVS-21569

Test plan:

1. Log into a course
2. Navigate to course settings (in the left column)
3. Select the Course Details tab
4. Scroll down to the Grading Scheme section and select set
   grading scheme.
5. Confirm the grading schemes and the done button are
   fully visible.

Change-Id: I72aa23056a4875f7d5a1aa1123d6f7315352f01d
Reviewed-on: https://gerrit.instructure.com/60461
Tested-by: Jenkins
Reviewed-by: Derek Bender <dbender@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Christi Wruck
2015-08-17 17:57:59 +00:00
Jennifer Stern 270b259490 Theme editor A11Y improvements to image and file upload
fixes CNVS-22312

Test plan
* Uploading images form fields should make sense and be navigable in screen readers
* Uploading JS/CSS files should make sense and be navigable in screen readers
* The 'Select Image' button should have a focus state when navigated to via keyboard

Changes
* Added an alt attribute to preview images
* Added a heading element for image names
* Added aria-hidden attribute to duplicate labels for image upload inputs
* Changed accessible label for image upload inputs to include the name of the image
* Removed duplicate label text (for screen readers) for JS/CSS upload inputs
* Added accessible button label for Reset button for JS/CSS uploads
* Added aria-hidden attributes to icons for JS/CSS uploads
* Added focus state for 'Select Image' "button"

Change-Id: I0763aaf26315660a9f2eb6f29d616abfec60f3a8
Reviewed-on: https://gerrit.instructure.com/60390
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
2015-08-17 17:51:38 +00:00