Commit Graph

19217 Commits

Author SHA1 Message Date
Transifreq ff4f90bbc8 update en-GB translation
Change-Id: Ie8b8133a2e22f61d421f289b90eebc9c7693b121
2016-01-22 05:13:27 -07:00
Spencer Olson ce9a054c1d gradebook: fix text on "Switch to points" toggle
when toggling between 'Switch to points' and
'Switch to percent' in the gradebook, the
text will now appropriately change when toggling.
before this fix, the text would not change when
clicking the toggle.

closes CNVS-26013

test plan:
1. Create a course, or open a course with no
   assignment weighting.
2. Go to the Gradebook and click on the Total
   column drop down.
3. Click "Switch to points"
4. Click "Ok" in the modal that pops up.
5. Without refreshing the page, click on the
   dropdown on the Total column again.
6. Verify the text now reads "Switch to percent"
7. Click "Switch to percent"
8. Click "Ok" in the modal that pops up.
9. Without refreshing the page, click on the
   dropdown on the Total column again.
10. Verify the text now reads "Switch to points"

Change-Id: Ib17df940954d0bb73305e41b91bdf48da550788a
Reviewed-on: https://gerrit.instructure.com/70624
Reviewed-by: Strand McCutchen <smccutchen@instructure.com>
Tested-by: Jenkins
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2016-01-22 05:04:42 +00:00
Joel Hough 2cfff0674d make event detail buttons into actual button elements
fixes CNVS-25667

test plan
- create an event on the calendar
- click the event
- ensure that the "Delete" and "Edit" buttons on the popup are
 buttons and behave like them (space or enter activates them)

- as a teacher, create an appointment group
- as a student, select the appointment on the calendar
- ensure the "Reserve" button is a button and behaves like one
- reserve the appointment slot
- reload the calendar
- select the appointment on the calendar
- ensure the "Un-reserve" button is a button and behaves like one
- reserve the appointment slot
- as the teacher, click the appointment on the calendar
- ensure the "Message students" button is a button and behaves
 like one

Change-Id: I10cfd0678ce0c5a5a807a1cc32453374d0085f8c
Reviewed-on: https://gerrit.instructure.com/70205
Reviewed-by: Aaron Cannon <acannon@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
Tested-by: Jenkins
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
QA-Review: Adrian Russell <arussell@instructure.com>
2016-01-21 23:52:53 +00:00
Jon Jensen f61ccb21d1 spec: don't let invalid _csrf_token break subsequent specs
the vast majority of specs stub out login stuff, so this cookie never gets
set or used (csrf token on the page trumps it). however, frd logins (and
their specs) do care about this cookie. so make sure we clean up after
ourselves.

test plan:
1. oauth_spec.rb and terms_of_use_spec.rb should always pass when they
   follow this spec

Change-Id: I87a9158b0b401e7afea1875853c52a156ffd8af7
Reviewed-on: https://gerrit.instructure.com/70791
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Jenkins
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2016-01-21 22:42:10 +00:00
Brian Palmer ba91140a07 api docs scrollbars and sidebar color
refs CNVS-26515

A couple more tweaks from UX

test plan: generate the api docs, bask in the glory. scrollbars should
only appear when necessary on example code, not always.

Change-Id: I2513ff160ddd226cb01614ec90e45780dec15a06
Reviewed-on: https://gerrit.instructure.com/70787
Reviewed-by: Colleen Palmer <colleen@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
Tested-by: Jenkins
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-21 22:39:27 +00:00
Brian Palmer 186603294e spec: fix fragile spec due to undefined response ordering
Change-Id: Ibd870d0b9bdf3c9d1e5893f094009bb8a901a01d
Reviewed-on: https://gerrit.instructure.com/70792
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-21 21:17:51 +00:00
Cody Cutrer b23d5ca1cf bump canvas-jobs
for https://github.com/instructure/canvas-jobs/pull/5

Change-Id: I04604104f597fd50acff5b901040063165515ca8
Reviewed-on: https://gerrit.instructure.com/70689
QA-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-01-21 18:17:02 +00:00
Cameron Matheson 22635c78a8 remove bad foreign keys from canvadocs_submissions
fixes CNVS-26068
fixes CNVS-26463

The crocodoc_document/canvadoc may live on another shard, so we can't
use foreign keys for those columns

Change-Id: Ief6ae9c70d3b7eea79c108d40a544ded7235b8b1
Reviewed-on: https://gerrit.instructure.com/70698
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Spencer Olson <solson@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2016-01-21 17:45:16 +00:00
Strand McCutchen feab022740 allow roles who can manage access to has_overrides in gradebook
fixes CNVS-25547

Test Plan:

 1. Create an assignment assigned to only a student or
    section. Give it a due date in a grading period.
 2. Create an admin account without the 'Manage (add/edit/
    delete) assignment and quizzes' permission.
 3. As the admin, view the gradebook for the course.
 4. View the grading period the assignment is in and verify
    you can see the grade.

Change-Id: I033ed9eba9fb5b63fbcefc84d0bc01caa85424e0
Reviewed-on: https://gerrit.instructure.com/69173
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Christi Wruck
2016-01-21 17:20:48 +00:00
James Williams 5881701e8c rails 4.2: api spec fixes
refs #CNVS-26056

Change-Id: I082e29c642b9150260f6571f0aa8ef397c6e2cca
Reviewed-on: https://gerrit.instructure.com/70593
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-21 16:14:03 +00:00
Simon Williams 64464bb39f querying enrollments_api#show with invalid account returns 404
we may eventually want to support querying by subaccount, but for now we
want to fix an error where the user got a template error instead of
a 404.

fixes CNVS-26628

test plan:
- create a course in a subaccount
- create an enrollment and note the id
- query /api/v1/accounts/:sub_account_id/enrollments/:id
- you should get a 404

Change-Id: I3c453d32152df6339df020d38025338cd4981039
Reviewed-on: https://gerrit.instructure.com/70635
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2016-01-21 15:49:54 +00:00
Pam Hiett 0c61fa1cb4 fix gradebook KO hidden warning (make blue for consistency)
Fixes: CNVS-26218

test plan:
- as a teacher/admin using the old or new ui
- navigate to a course
- click on the grades link from the left-hand sub-nav
  (note: enable grid view for this ticket)
- now switch to tabbing... first tab should trigger the
  "skip to content" link - hit enter the warning should
  appear (was red as seen here...
  http://screencast.com/t/QKX94TqKGt
  should now be blue as seen here...
  http://screencast.com/t/TfF4dFPYum6o

Change-Id: I5384a06d17b5e3966f4baffbce5900862f73d00d
Reviewed-on: https://gerrit.instructure.com/70696
Tested-by: Jenkins
Reviewed-by: Jennifer Stern <jstern@instructure.com>
Product-Review: Jennifer Stern <jstern@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2016-01-21 15:00:21 +00:00
Cody Cutrer 04aaf6b243 bump pg
Change-Id: I17b3b9009ffb9e87abab844fe791f3856f3cf105
Reviewed-on: https://gerrit.instructure.com/70691
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-01-21 14:53:01 +00:00
Chris Hart 619a8476a2 Convert stylesheets/vendor/jqueryui to rems
Fixes: CNVS-26600

Most jqueryUI plugins we still use (datepicker,
modal, tooltip, tabs) use ems for font-sizing.
However, there were a few cases where we've
overwritten those original font sizes with pixel
values. This commit turns those pixels into rems
for accessibility reasons.

Test plan:

- Make sure the CSS compiles as usual.
- Go to Chrome's preferences, and (under
  Advanced) change Chrome's default font
  size to Very Large
- Open any page with a datepicker on it (the add
  assignment page has plenty)
- Note that the datepicker now scales up its font-sizing
  to respect the browser preferences:
  http://screencast.com/t/WXeA18kjkel
- Return your Chrome font-size preferences to
  Medium.
- Click around a variety of Canvas pages. You should
  see no difference from production.

Change-Id: I5091fc16902f31860c33c810187aeb2fe1e7234d
Reviewed-on: https://gerrit.instructure.com/70650
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2016-01-21 14:36:10 +00:00
Chris Hart d0d67e24e6 Convert Bootstrap Sass font-sizes to rems
Fixes: CNVS-26576

Test plan:

Bootstrap isn't used for much in Canvas anymore,
BUT one really important remaining use is as
the foundation for our forms:

- Go to /styleguide#forms in Chrome. Note the
  appearance of text inputs, selects, and
  textareas, etc.
- Go to Chrome's preferences, and (under
  Advanced) change Chrome's default font
  size to Very Large
- Go back to /styleguide#forms, and note
  that the form components' font sizes should
  now be scaling up, respecting the browser
  settings. Here is a comparison of this commit
  vs. production:
  http://screencast.com/t/mz7AnOP1RA
- Return your Chrome font-size preferences to
  Medium.
- Click around a variety of Canvas pages. You should
  see no difference from production.

Change-Id: I0218e59bf5d8d4ba4ba5c5e8f4cec5d53e6c61c6
Reviewed-on: https://gerrit.instructure.com/70600
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2016-01-21 14:36:05 +00:00
Transifreq 5a55efd764 update zh_Hant translation
Change-Id: If8f2ede9c4e05f52bd942d995e970bb303bd04fd
2016-01-21 05:28:08 -07:00
Transifreq 131537be8d update zh translation
Change-Id: I53dba0618d8f63cd83fd9fe65ed6b2a98f7b4657
2016-01-21 05:26:57 -07:00
Transifreq 3e00d85c01 update pt translation
Change-Id: I034e798a6fd3e92bbb4ef45fb7ffe242911368f8
2016-01-21 05:22:12 -07:00
Transifreq 1427d2b4b8 update hy translation
Change-Id: Ia4edeee03c25f57082350deacaa6d35ef63c7c6f
2016-01-21 05:15:53 -07:00
Cody Cutrer 9e085fa446 prevent duplicate singleton auth providers via API
test plan:
 * using the API, try to create a Facebook auth provider multiple times
 * it should only succeed once

Change-Id: Ib3bfff9a5cd933bca00304d3cecf19abeb653677
Reviewed-on: https://gerrit.instructure.com/63265
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-01-21 01:13:19 +00:00
Cameron Matheson 987b6c2bb1 make canvadocs_submissions entries unique
closes CNVS-26089

Test plan:
  * in a rails console, call
    DataFixup::CreateCanvadocsSubmissionsRecords.run
    a few times
  * run migrations
  * there should be no duplicate entries in canvadocs_submissions
  * you should not be able to create duplicate entries in
    canvadocs_submissions

Change-Id: I38cd3c990c13434d5daa016f3b4d192bdc877e16
Reviewed-on: https://gerrit.instructure.com/69327
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2016-01-21 00:28:13 +00:00
Nathan Mills f94d1a5d98 handle underscores in tool launch urls and domain field
fixes PLAT-1300

test plan
install a tool that uses and underscore in the domain or subdomain
try and launch the tool
it shouldn't throw a canvas error

Change-Id: I91164574be94e7e10d5e9820d0ecef48a5503005
Reviewed-on: https://gerrit.instructure.com/70044
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
2016-01-20 22:38:15 +00:00
Cody Cutrer 81026ae0ca clarify if a pseudonym can have a password
fixes CNVS-22672

test plan:
 * have both canvas and non canvas auth configured on an account
 * add a pseudonym not linked to an auth config
 * you should still be able to change the password both as an admin
   and on the /profile/settings page
 * add an SIS id to the login
 * you should be able to change the password as an admin, but not on
   the /profile/settings page
 * create a login explicitly linked to the non canvas auth
 * you should not be able to change that password on either page
 * create a login explicitly linked to canvas auth, with an SIS ID
 * you should be able to change the password on either page

Change-Id: I68ee27d36dc5eb20ca81a145dd097f3f8f37b155
Reviewed-on: https://gerrit.instructure.com/63817
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
2016-01-20 21:43:21 +00:00
Brian Palmer d8b3f004be api doc styling updates
refs CNVS-26515

Some tweaks from UX to bring the docs more in line with the rest of
Canvas, and better call out important information.

test plan: generate and view the api docs

Change-Id: Ibf1d56f1dcdd663d993efca8f48513136baa009b
Reviewed-on: https://gerrit.instructure.com/70648
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-20 21:09:57 +00:00
Brian Palmer 8d723a7c61 api doc request parameter formatting
refs CNVS-26515

Request params are now formatted in an HTML table, with separate fields
for name, type, required/optional, valid enum values, and description.
This is at the same time more compact and more readable.

To parse this information out of what is actually free-form text
comments, I'm re-using the OpenAPI (swagger) parsing code, which I
tweaked and simplified slightly. Eventually I'd like to see the whole
API documentation generated from the OpenAPI spec, and then we can
slowly move away from using free-form code comments to more declarative
code constructs, but still generate an OpenAPI spec and get the same API
docs.

test plan: Generate the api documentation, and view request parameter
information. you should see the new formatting.

Change-Id: Ida00869d96a9b2d9fa84c29079ddf2511a2d5917
Reviewed-on: https://gerrit.instructure.com/70485
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-20 21:09:48 +00:00
Ryan Shaw abd2df3e7a load custom css/js for high contrast in newUI
In new UI, load custom CSS / JS even for users
that have High Contrast turned on.

closes: CNVS-22656

Originally, we tried to just say that to ensure schools
could not mess up their own high contrast compliance,
we would not load custom css or js for high contrast
users in NewUI.

This was problematic for things like the school using
js to add a custom help menu or something that the rest
of their classmates would see but the high contrast
user would not see. or using some "display: none"s in
css to hide things that they didn't want people to see,
but the high contrast users would still see.

This change makes it so custom css and js overrides
are loaded for high contrast users too. that means that
there is a possibility that the school could mess up
high contrast ratios with their css but I think given
the problems above this is the best we can do.

Product reviewers: (colleen, dana, aaron) please
review this description and + or - 1 if you agree.

test plan:
* turn on high contrast in New UI
* any custom css/js file you have set for your account
  (or any of your account's parents) should be loaded

Change-Id: I72ed06688f0b7b131ec00c2ea6031597277e7445
Reviewed-on: https://gerrit.instructure.com/69941
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Dana Danger <dana@instructure.com>
2016-01-20 20:56:39 +00:00
Simon Williams 727b3098d8 render bad_request on saml logout when aac cannot be found
fixes CNVS-26484

test plan:
- set up a saml idp
- sign logout requests with an invalid issuer (idp_entity_id)
- you should get a 400 response.

Change-Id: I45b912f41c15777d82fa09aed3e067fd2f47155c
Reviewed-on: https://gerrit.instructure.com/70295
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2016-01-20 20:56:09 +00:00
Clay Diffrient b69873a3ef Make plugins jsx folder be compiled via babel
This will allow us to use React (with JSX) inside of gems/plugins
such as analytics.  It also allows us to use ES2015 features because
it's compiled using Babel.

closes CNVS-26632

Test Plan:
  - Make sure JSX compiles as normal
  - Add a plugin (such as analytics)
  - Inside that create a jsx file in the 'jsx' directory within
    i.e. gems/plugins/analytics/app/jsx
  - Run rake js:jsx or rake js:generate
  - Check that public/javascripts/plugins/<plugin_name>/compiled/jsx
    contains the contained file.

Change-Id: Ic847e24ff9d7b88747adfb7add3b47b66a27c614
Reviewed-on: https://gerrit.instructure.com/70642
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Dan Minkevitch <dan@instructure.com>
2016-01-20 20:53:49 +00:00
Ethan Vizitei 3fe135ca69 stabilize discussions spec
refs CNVS-25916

the click_option calls use "fj" which doesn't wait for load time,
and so they often fire before the right stuff has loaded.  Add
checks to make sure the page is loaded before proceeding to interact
with it.

TEST PLAN:
 1) discussions/discussions_edit_page_spec pass rate should increase

Change-Id: I4cd6cfc9cae650394fc5c93f098a63ef67ee03a5
Reviewed-on: https://gerrit.instructure.com/70657
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-20 20:37:11 +00:00
Ethan Vizitei aff49d9c6a spec: stabilize calendar2_event_create_spec
refs CNVS-25916

this line fails a lot because the calendar hasn't quite loaded yet.
Make sure the calendar is present and visible before continuing
the spec.

TEST PLAN:
 1) calendar2_event_create_spec pass rate should increase

Change-Id: Iab573163a296357f3dfa0e8e70f789b11010402b
Reviewed-on: https://gerrit.instructure.com/70662
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-20 20:35:25 +00:00
Derek Bender 37ea2c4e9b Add missing submission comments in speedgrader
Previously, speedgrader would omit comments from the submitting student
for group assignments when the submitter unchecked "Send Comment to the
Whole Group"

This will look across all submissions within group and collect all unique
comments for display.

fixes: CNVS-20346

Test Plan:
 - create and publish a course with at least 2 students
 - add the students to a group
 - create a group assignment and publish it
 - as the first student, submit and leave a comment, do not check
     the box that says "Send Comment to the Whole Group"
 - go to the submission and leave another comment without checking the box
 - masquerade as the non-submitting student and repeat the above step
 - stop masquerading and go to speedgrader
 - both comments should be present
 - this should be the same as the submission details page and in gradebook

Change-Id: I9955804202f4381d8afc0fbe3e5dc23b3ca94747
Reviewed-on: https://gerrit.instructure.com/69547
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Christi Wruck
2016-01-20 20:01:14 +00:00
Cody Cutrer 999b169e96 bump switchman
Change-Id: I8f7054f2c92a824b7495f81c4829c7407d266fb9
Reviewed-on: https://gerrit.instructure.com/70283
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-01-20 19:41:57 +00:00
Brian Palmer d75fe4153b change float to number in api parameter definition
This got merged in at the same time as my change that adds an error if
you specify an invalid type.

Change-Id: Iec37f2dc967d38752eb643dbdbbf5584e0ba08fb
Reviewed-on: https://gerrit.instructure.com/70688
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
Tested-by: Brian Palmer <brianp@instructure.com>
2016-01-20 19:38:40 +00:00
Brian Palmer 933a052061 fix typing of api doc @model definitions
refs CNVS-26515

Pretty much anything that wasn't a number was being rendered as a
string, including sub-arrays and sub-objects. Worse, a lot of our api
docs were defining them using ruby syntax rather than json syntax.

This change fixes types so that booleans, arrays, and objects all render
correctly in the @model docs (the "A ModuleItem object looks like:"
sections of the docs). It also adds some basic error checking to help
avoid future mistakes.

This doesn't fully support the "$ref" OpenAPI (swagger) syntax yet, but
still renders examples for "$ref" fields when an example is provided.
Eventually it'd be nice to auto-generate an example for "$ref" fields,
since we can look at the linked documentation and just embed it.

test plan: generate the api documentation and look through the @model
definitions at the top of each Resources page. the new rendering should
show more accurate type information.

Change-Id: Id5af514cd235e66af2ce868bce95eb49d71062ab
Reviewed-on: https://gerrit.instructure.com/70484
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-20 19:07:41 +00:00
Brian Palmer 73e1c32fff further api doc syntax highlighting improvements
refs CNVS-26515

Renders the @model definitions as json, and improves the json
formatting. Also renders all json as the prettify "js" type internally,
because we put a lot of code comments in our json which isn't strictly json
anymore, and so doesn't render correctly as json.

test plan: compile the api docs and look at some @model blocks ("A File
object looks like", e.g. in the Files API) to verify the new formatting.

Change-Id: Icac9ad04bb42af80da66bc5ad0b5adead70ec168
Reviewed-on: https://gerrit.instructure.com/70483
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
2016-01-20 19:07:33 +00:00
Amber Taniuchi 05c104c745 add validation for crocodocable document in firefox
crocodoc/canvadoc annotations have some issues in firefox
so we display a warning for those using firefox. Previously
we were only checking for Canvadoc annotations settings,
but adding further check for crocodocable document so
that the warning shows up anytime a document is
annotatable via crocodoc since Canvadocs are not
available to everyon yet.

fixes CNVS-23286

Test Plan:
1. In /plugins/crocodoc, enable crocodoc
2. In /plugins/canvadocs, enable both canvadocs and annotations
3. Create an assignment that accepts file uploads
4. Create a submission with a pdf
5. Open speedgrader for this assignment in FF
Verify: You see a green flash message at the top that says,
"Warning: Crocodoc has limitations when used in Firefox.
Comments will not always be saved."
6. Do the same thing in Chrome
Verify: You don't see a flash warning about FF
7. Also repeat steps above except with an assignment that accepts
url submissions only.
Verify: In FF, that you don't see a flash warning about FF and
annotations since url submissions are not previewable with
crocodoc.
8. Disable Canvadoc annotations (remove checkbox and apply in plugins)
9. Repeat step 5 and verify warning still shows up in FF
10. Create an assignment that has turnitin enabled
11. Submit to the assignment with text entry (make sure text is long)
12. Repeat step 6 and verify warning still shows up in FF

Change-Id: I7fef65bf78117bbd983f89f5774b792e8c68aa9c
Reviewed-on: https://gerrit.instructure.com/68846
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Christi Wruck
2016-01-20 18:03:22 +00:00
Brian Palmer 1069d1221a fix api route display
refs CNVS-26515

The rails4 upgrade changed the formatting so that this sub didn't match
anymore, and we ended up with "(.:format)" on the end of each url.

test plan: generate the api docs, the path for each endpoint shouldn't
include "(.:format)" at the end.

Change-Id: I8073c30d780b23abacc97f417e608db598415b28
Reviewed-on: https://gerrit.instructure.com/70537
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
2016-01-20 16:48:32 +00:00
Pam Hiett 3038eb520a Convert remaining px to rem within the /jst stylesheet folder
fixes: CNVS-26348

this is a straight 1-to-1 conversion for replacing existing
px font-sizes to allow a user to easily increase/decrease
their font-sizes within the browser

ui dev test plan:
- all css should compile successfully

test plan:
- easiest way to make sure it's working is to create or have an outcome
ready
- go to Grades > Learning Mastery (you might have to enable this in
settings)
- on the tab that matched your outcome you should hover and see a
popup, this should look/feel the same as the screenshot below:

http://cl.ly/3w2Y0f421H16

Change-Id: I282059fbcecc2b0278c893a8ce548b919b5ce7d5
Reviewed-on: https://gerrit.instructure.com/70118
Product-Review: Colleen Palmer <colleen@instructure.com>
Tested-by: Jenkins
Reviewed-by: Colleen Palmer <colleen@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2016-01-20 15:47:59 +00:00
Pam Hiett afb8f05cc6 convert px to rems on calendar app
Refs: CNVS-26348

test plan:
- as a user navigate to the calendar app from the left-hand nav
- your view should look like this: http://screencast.com/t/ZTfeKcIr1vg
- now increase the font size of your browser (zoom in chrome)
  the fonts should increase as well and look like this:
  http://screencast.com/t/i7nztNBnvP

Change-Id: If35bd5192bab77e7dc76bba97be6e336f7e33782
Reviewed-on: https://gerrit.instructure.com/70101
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2016-01-20 15:47:54 +00:00
James Williams f62911d1d2 rails 4.2: fix initializer specs
refs #CNVS-26056

Change-Id: I6bd8f15c375afc1bbb49d156949c1a92bd1c01d3
Reviewed-on: https://gerrit.instructure.com/70497
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-20 15:18:12 +00:00
James Williams 9b5b7ec603 remove role name unique index migration
breaks specs when initializing a test db by running
 predeploys before postdeploys because the index gets removed
 in a later (predeploy) migration

Change-Id: I8b18ec05693bfbcf34e3f514800d34dd7d90c61b
Reviewed-on: https://gerrit.instructure.com/70565
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-20 13:52:27 +00:00
Transifreq 342e6d7c1c update hy translation
Change-Id: I5cb32b7c083acded4abe8aa96c4317bc701a6445
2016-01-20 05:14:36 -07:00
Ethan Vizitei 4d944663f8 change require to define
refs CNVS-25916

this declaration works, but is more correct as a define statement
because it's building a module for the bundle to require and use

Change-Id: I466fe500c5791bf076d5b80b0bb7b85890239923
Reviewed-on: https://gerrit.instructure.com/70569
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
2016-01-19 23:32:10 +00:00
Ethan Vizitei f58d5b5023 shim in web pack version of timezone plugin
refs CNVS-25916

Replicate old require-js plugin behavior
for making sure contextual timezone and locale
information is loaded before any other modules
depend upon it.

TEST PLAN:
  1) grading_periods_account_spec should pass in
     webpack selenium build

Change-Id: I46871b15e803e551149d344922f1679906873c54
Reviewed-on: https://gerrit.instructure.com/70553
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-19 21:48:07 +00:00
Brad Horrocks e4cdb33b94 Disabling a plugin for an account no longer errors
Fixes PLAT-1307

Test Plan:
Enable a plugin at the root account (I recommend github with garbage data)
Try to disable the plugin for an account
  - once when there is no existing settings saved
  - once with existing settings

Change-Id: Ib59981fb8b3f222cf7fe9ff7d356d6e37aec8229
Reviewed-on: https://gerrit.instructure.com/70499
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2016-01-19 21:20:31 +00:00
Cody Cutrer a76d029902 don't try to create a communication channel with an empty e-mail
fixes CNVS-13389

test plan:
 * enable CAS on an account
 * go to create a user from the account settings page
 * fill in a username, but not an e-mail address
 * it should succeed; double verify that the user was created
   (as opposed to silently failing)

Change-Id: Ibe1e4e53ef94cfb2c369436428a5668f79a706d0
Reviewed-on: https://gerrit.instructure.com/70542
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-01-19 20:43:12 +00:00
Ethan Vizitei a9c691fbee spec: stabilize terms_of_use_spec and auth_spec
refs CNVS-25916

Both of these specs periodically fail with
bad authenticity tokens.  Although it happens
frequently, I've not been able to reproduce
these failures either locally or manually on
jenkins nodes.  Some possibilities are
polluted sessions or cached html (that has an
old authenticity token in it).

As a stopgap to prevent false failures, I'm adding
page refreshes at key points in these workflows
if logins fail the first time to try to get a
proper authenticity token for the given server
loaded into the session.  Also doing session
destroys where it seems like it might have
been missed in case there are bad bits of session
being left around.

TEST PLAN:
 1) oauth_spec should pass selenium build
 2) terms_of_use_spec should pass selenium build

Change-Id: I772a5ec137ca94ed4b2a29f826a9dfe9b7fcea09
Reviewed-on: https://gerrit.instructure.com/70568
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2016-01-19 20:27:28 +00:00
James Williams ba88661af9 rails 4.2: fix calls to Filters module
refs #CNVS-26056

Change-Id: Iccb8c2943927817c27a3e82106ab1844e683de98
Reviewed-on: https://gerrit.instructure.com/70558
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-01-19 20:24:02 +00:00
James Williams 57f962d4aa enforce term date restrictions on course admin users
test plan:
* add a teacher to a course
* in the account enrollment term, set access dates for teacher
 to start in the future
* the course should show up in the list of "Future Enrollments"
 but should not be accessible

closes #CNVS-25707

Change-Id: I869baaad67c88854cbc0585c7043ae80d0b40d32
Reviewed-on: https://gerrit.instructure.com/70261
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2016-01-19 20:00:13 +00:00
Alex Boyd 07bc4a53ef Make minical highlights high contrast friendly
Fixes CNVS-25360

Test plan:
 - Test in all browsers Canvas supports - I'm not confident at all
   that the styles I've used will work across all browsers
 - Also test with both the old UI and the new UI
 - View the calendar
 - Make sure the mini calendar on the right sidebar shows a black
   highlight with white text for the current day and black outlines
   around days with events

Change-Id: Ibadc69ef3b04f7c6cc38bf38c6da5960190ca082
Reviewed-on: https://gerrit.instructure.com/70449
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Tested-by: Jenkins
QA-Review: Adrian Russell <arussell@instructure.com>
Product-Review: Allison Weiss <allison@instructure.com>
2016-01-19 19:52:27 +00:00