Commit Graph

8851 Commits

Author SHA1 Message Date
Aaron Cannon b94cf53471 a11y: Made media comments accessible to screen reader and keyboard users
Fixes CNVS-17889

Test plan:
- Using the keyboard only, navigate to and play an audio and a video comment.
- Do the same with a screen reader

Change-Id: I1ac3584581b81dadb73f4607a8f683e331c87a39
Reviewed-on: https://gerrit.instructure.com/47672
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-01-28 17:27:09 +00:00
Ryan Taylor 6abb24a4f0 Prevent JSON parse errors in Quiz Statistics
Some quizzes ended up with a set of answers which caused the statistical
calculations to implode.  This catches these and sanitizes them.  JSON
parsers are happier now.

Closes CNVS-17466

Test Plan:
  - Create a quiz which replicates the original problem.  Apparently
    this can be done by answering the quiz with different answers and
    only two students, however I suspect it has more to do with answers
    having a standard deviation of zero (i.e. identical answers).
  - Visit the quiz statistics page for that quiz and confirm that stats
    finish loading and show some data.

Change-Id: I2847a2aa99c34579c926b05b371a7c48242ab618
Reviewed-on: https://gerrit.instructure.com/47766
Tested-by: Jenkins
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Sean Lewis <slewis@instructure.com>
2015-01-27 22:34:47 +00:00
Joel Hough 90f878f497 make for_masquerading_user scope check global ids also
fixes CNVS-17162

test plan
- have sharding set up
- have a user with a conversation with global ids in the
 root_account_ids field (use console trickery to cause this to
 happen)
- as an account admin who isn't a site admin, masquerade as the
 user
- navigate to the conversations inbox
- ensure that the conversation is visible in the inbox

console trickery
c = Conversation.find <your conversation id here>
c.root_account_ids |= c.context.root_account.global_id
c.save!
c.conversation_participants.each do |cp|
  cp.update_attribute(:root_account_ids, c.read_attribute(:root_account_ids))
end

Change-Id: Ie99c7ad863a74f68ca3b745225076e5b8b0a0ea4
Reviewed-on: https://gerrit.instructure.com/47634
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
Tested-by: Jenkins
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2015-01-26 23:46:33 +00:00
Steven Burnett c2b40ac8ee fixed published icon reading as header
fixed the way nvda was reading the published icon from
reading it as a header to not reading it as a header.

fixes CNVS-13112

test plan:
- go to the assignment edit page as a teacher
 and with nvda on
- press h and go through the headers
- notice that the published icon does not read

Change-Id: I00263d2c0ffb3ac86e786fc96b83e83a82518d66
Reviewed-on: https://gerrit.instructure.com/47773
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-26 21:08:57 +00:00
James Williams 413dbfcac1 fix adding designer roles with restricted permissions
test plan:
* create an account admin role with the ability to
"Add/remove students" but not teachers/ta's/designers
* visit the "People" page and click the "+ People"
 button to start adding a person
* the "Designer" role should not appear in the Role
 dropdown

closes #CNVS-1484

Change-Id: I3c2b138b8744db66e897b39b4a1ec625aac8ad34
Reviewed-on: https://gerrit.instructure.com/47810
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Clare Strong <clare@instructure.com>
2015-01-26 18:47:32 +00:00
Tyler Pickett 0c339f5381 Remove extra quotes from API docs
Quoting these params causes them to get printed funny in the docs we're
using to generate an api client which causes a syntax error in the
generated code.

Change-Id: Ie083f15ca5c9ff4510befd28083b9c0b3ebefc57
Refs: SIS-757
Reviewed-on: https://gerrit.instructure.com/47790
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Nick Houle <nhoule@instructure.com>
Product-Review: Nick Houle <nhoule@instructure.com>
Tested-by: Nick Houle <nhoule@instructure.com>
2015-01-26 17:41:50 +00:00
Tyler Pickett 6dc4a74526 Fix Assignment api docs for Rubrics
We indicated that the rubric field on an assignment from the API is a
RubricCriteria object, the actual implementation returns an array of
RubricCriteria objects. This caused Pandarus to choke on assignments
with rubrics.

Test Plan:
- Ensure the rubric field is listed as an Array of RubricCriteria
  objects

Change-Id: Ib7759e30eac5e5a8dfac9622d8a22d0a176f93cd
Refs: SIS-757
Reviewed-on: https://gerrit.instructure.com/47778
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Tyler Pickett <tpickett+gerrit@instructure.com>
2015-01-23 23:59:35 +00:00
Ryan Shaw c4e15c01cb fix attachment button to work with keyboard-only
closes: CNVS-16994

this worked before but it broke in
2cfd50d759
when we tried to get it to work in IE10

Test plan:
- Perform the following without and with a screen
  reader, in IE10, IE11, firefox, safari, & chrome
- Navigate to the compose dialog in conversations.
- Using the keyboard, tab to the "Add Attachment" button.
- Using the keyboard, verify that an attachment can in fact be attached to
  a message, and that message sent.
- Reverify the above in IE with Jaws, Firefox with NVDA, and Safari with VO.

Change-Id: Iad232a019fcb3102bb33def46e147b49d5b03b07
Reviewed-on: https://gerrit.instructure.com/46970
Tested-by: Jenkins
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2015-01-23 23:39:25 +00:00
Jeremy Stanley 966463926b [SOC-2] use terms_of_use_url and privacy_policy_url helpers
remove the account model methods, since these don't have
access to the request IP address, which is needed for
international terms of service.

test plan:
 0. enable self-enrollment in account settings
 1. enable self-enrollment in a course in the account
 2. register a new user using the course's self-enrollment URL
 3. terms of use and privacy policy links that appear on the
    "require acceptance of terms" dialog should function
    (and should not take the user to another "require
    acceptance of terms" dialog)
 4. create a new user via the Accounts page, then click the
    link in the email sent to the user to complete the registration.
    the terms of use/privacy policy links that appear in the dialog
    should work (as in 3). (note that you can go to
    /users/<id>/messages as an admin to see this email even if
    outbound email is not configured in your portal.)

closes CNVS-18025

Change-Id: Ibf19d2892c587f9e251917f70448212aac0709ad
Reviewed-on: https://gerrit.instructure.com/47607
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2015-01-23 22:30:27 +00:00
Strand McCutchen e87d53d28b SpeedGrader's showGrade rounds to two decimals.
- fixes CNVS-2436

- In the SpeedGrader view scores are rounded to two points of precision,
  and any trailing zeros are trimmed.

Test plan:

1. As a teacher, create a quiz with Multiple Answers.
2. Under the Multiple Answers question, create 4 answer options of which 3 could
  be correct.
3. As a student, take the quiz. Answer only 1 of the 3 correct answer options,
  submit the quiz.
4. As a teacher, view the attempt in speedgrader - notice ongoing decimals for
  the question score. There should only be two numbers after the decimal.

Change-Id: Ic78dc6d99ab65adbd943c55816190b8183363f7c
Reviewed-on: https://gerrit.instructure.com/44378
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Sean Lewis <slewis@instructure.com>
Product-Review: Strand McCutchen <smccutchen@instructure.com>
2015-01-23 22:04:48 +00:00
Colleen Palmer bee628cf22 Big Styleguide UX Upgrade
ref CNVS-16922

This adds a whole new look and feel to our Styleguide!

QA Test Plan:
- Go to /styleguide
- See all the new look and feel!
- I should look similar to this: http://invis.io/CT1QH2OHX
(small changes have been made from static to digital guide, ux
is aware of those changes)
- Make sure all navigation items in subnav go their proper places
- See notes

Notes:
- This only affects /styleguide and does not touch any canvas
styles.
- This is purely aesthetic - no functionality had changed
- Right now all the sections are being loaded onto one page; we
know this and plan on making improvements to hide/show per top nav
item in future iterations
- There is a 1px border when you shift between sections on Firefox,
ux is ok with this.
- We are aware that sometimes the automatic scrolling seems "fast"
but will change that in a future iteration

Change-Id: I0ef10c78d3fccc83bb1923970d6fc884298b6775
Reviewed-on: https://gerrit.instructure.com/47716
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
Tested-by: Jenkins
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-01-23 21:52:36 +00:00
Dan Minkevitch 7424223755 Fixes bug with iterator going beyond two digits
fixes CNVS-18146

Test Plan:
* Enable "Better File Browsing" feature flag
* Go to any course's Files page as an admin
  or teacher
* Click the "+ Folder" button, then press enter
  on the input (leaving the folder's name blank)
* Repeat the above step 10 or more times
* The folders created should be named "New Folder",
  "New Folder 2", "New Folder 3", etc, and should
  continue past "New Folder 10", "New Folder 11",
  "New Folder 12", up to however many you created

Change-Id: I151c9baa8b6fd6176c434144f10165f23a600a22
Reviewed-on: https://gerrit.instructure.com/47709
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2015-01-23 21:45:33 +00:00
Cody Cutrer 1c8d862d34 add started_at to sis_batches
refs CNVS-17788

so you can easily tell the difference between how long a batch took
vs. how long it took to start

test plan:
 * upload an SIS batch and let it run
 * when you view it via the API, it should include a started_at
   timestamp

Change-Id: I142024f82260c2ba690a950a09365e90c18cd43d
Reviewed-on: https://gerrit.instructure.com/47412
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-01-23 21:31:26 +00:00
James Williams 67ca345bbc don't cause an infinite job loop with automatic_peer_reviews
test plan:
* create an assignment with a due date set in the past and
 automatic peer reviews set to be assigned in the future
 (and a number of peer reviews per user greater than 0)
* save the assignment
* check the list of running delayed jobs ("/jobs")
* should resolve the job and not keep queueing itself 5evr

refs #CNVS-18148

Change-Id: I2ee38ca4725fa7629667348592d7e04329655d8e
Reviewed-on: https://gerrit.instructure.com/47719
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-01-23 20:56:28 +00:00
Joel Hough 71c91a99ec remove draft state check from announcement broadcast policy
fixes CNVS-17975

test plan
- create an announcement with a delay post at date
- wait for delay post time
- ensure that announcement notification is sent

Change-Id: Ic6186de76c45622e8af7f33b8059c2262eb03003
Reviewed-on: https://gerrit.instructure.com/47682
Tested-by: Jenkins
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2015-01-23 18:26:23 +00:00
Clay Diffrient e13287b883 Makes screenreaders read folder names
In order to take advantage of this, all the nodes of the tree must
have an aria-label.

closes CNVS-17947

Test Plan:
   - Go to New Files
   - Using VO go to the folder tree structure
   - When you follow the directions as read (up/down, etc.) you
     should be read the names of the folders.
   - The same should also be true where this same tree is used
      (outcomes)

Change-Id: I04b502fb0d86fc17aa3f9c6b4b7c20d8d03f2885
Reviewed-on: https://gerrit.instructure.com/47483
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-23 17:50:58 +00:00
Colleen Palmer a04edf9085 Agenda Tour and Tour popup restyle
fixes CNVS-16171
fixes CNVS-16888
fixes CNVS-16843

This adds back-end style work to our tours to make them better.

1/14 - We have now taken out the Agenda Tour. This should no longer
popup.

Test Plan:

There used to be a notification popup when you log in to Canvas,
nothing should show up now to kickoff any tours.

Change-Id: Ic36d764f54c26d76de2af583cf4f0ef9364060a4
Reviewed-on: https://gerrit.instructure.com/43116
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
2015-01-23 17:18:22 +00:00
Chris Hart f1be963006 Set Bootstrap $linkColor variable to new blue
Fixes: CNVS-17611

Currently, the default text link color in Canvas is set
to Bootstrap's $linkColor variable that's not our new
blue.

This change sets $linkColor to our $canvas-primary variable.
(Deleting it is not possible due to the way some of our app
features pull in their assets. Some stylesheets still need
the $linkColor variable; however, it's now set to the new
blue, so no matter what variable is used, the color will
output the same.)

Q.A. Test Plan:

- In regular UI mode, text links in Canvas should now
  be #0088c7 in inspector, instead of #08c.
- In high-contrast mode, text links in Canvas should
  now be #006fa2 in inspector, instead of #007ab8

Change-Id: I6ad4cd2e178ae7f1ddf5d17b8e1bc074fe007cdf
Reviewed-on: https://gerrit.instructure.com/46265
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Colleen Palmer <colleen@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
2015-01-23 15:07:00 +00:00
James Williams b3b9ce1d95 add comments to bulk submissions update api
test plan:
* see the documentation for the submissions api
"Grade multiple submissions" action
* should be able to add comment information now

closes #CNVS-18099

Change-Id: Ib3879d7bd208efd902ae0c0045e245500aedb25b
Reviewed-on: https://gerrit.instructure.com/47657
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-01-23 14:02:35 +00:00
Nick Cloward 825d3e2cb1 remove cache on authorization_token
fixes: CNVS-18040

Changes what fragments are being cached so the form for logout is not
being cached.

Test Plan:
  - Login to Canvas
  - Click the logout link in the navigation.
  - Login to Canvas again.
  - Click the logout link in the navigation again.
  - Should not see a page asking if you are sure you want to logout.

Change-Id: I9e1a91a11fb074525b3b0227f87c1a0a1bc53663
Reviewed-on: https://gerrit.instructure.com/47491
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
2015-01-23 03:39:33 +00:00
Chris Hart efd75d11f1 Tweaks to K-12 nav to help sales sell K-12
Fixes: CNVS-18100

Addresses:

- Logo alignment issue. Canvas logo should now be
  vertically centered.
- The need of Sales to see Commons logo in main nav.
  We are aware this is not a perfect solution, but it
  will help Sales with K-12 demos in the short term and
  will not affect anything in the regular (non-K-12)
  Canvas UI.

QA Test Plan:

Note: Due to Canvas' caching, you might have to wait
15 minutes to see these changes, if you're swithing
over to K-12 from the regular Canvas UI.

- Enable the K-12 UI feature flag.
- Enable Commons/LOR in your Settings (add it as an
  App, if you haven't already).
- Confirm Commons is showing up in your main navigation,
  complete with a Commons logo.
- Confirm the Canvas logo at the top left is now
  vertically centered.

Change-Id: I90a9672e3e855e4c13055fbd8ddb6c80ea9dc226
Reviewed-on: https://gerrit.instructure.com/47681
Tested-by: Jenkins
Reviewed-by: Colleen Palmer <colleen@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-01-23 01:18:38 +00:00
Eric Berry b27294a720 LTI 2 Registration
Heavily refactored app center and external tools settings. Added
LTI2 with feature flag

fixes: PLAT-732
fixes: PLAT-732
fixes: PLAT-734

Test steps:

Visit settings on an account:
- Add LTI2 tool
- Add LTI1 tool manually
- Add LTI1 tool via URL
- Add LTI1 tool via XML
- Edit LTI1 tool
- Edit LTI2 tool (permissions)
- Disable LTI2 tool
- Delete LTI1 tool
- Delete LTI2 tool

Visit settings on a course:
- Add LTI2 tool
- Add LTI1 tool manually
- Add LTI1 tool via URL
- Add LTI1 tool via XML
- Edit LTI1 tool
- Edit LTI2 tool (permissions)
- Disable LTI2 tool
- Delete LTI1 tool
- Delete LTI2 tool

Extra items to test:
- Verify adding invalid URL on LTI2, close modal, click add button
  resets the forms
- Verify toggle enable/disable LTI2
- Verify LTI2 form submit via Enter key
- Verify disabled LTI2 apps are shown
- Flag LTI2 app as disabled when disable
- LTI2 feature flag

Change-Id: Ic8925cf5cfba0ebee9ed3242b4e2bff7809a3e98
Reviewed-on: https://gerrit.instructure.com/45816
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Matt Zabriskie <mzabriskie@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
2015-01-22 21:04:43 +00:00
Michael Nomitch 32383d72ab a11y - google docs submission
fixes CNVS-14994

test plan:
  - as a student try to submit an assignment via google docs
  - with the screenreader it is possible

Change-Id: I98e24a024a3cd37074f9bfbc7945a4ac5cbce500
Reviewed-on: https://gerrit.instructure.com/46724
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Mike Nomitch <mnomitch@instructure.com>
2015-01-22 17:31:56 +00:00
Brayden Lopez 1eb92e0482 Made groups page even more accessible.
Can add students to groups via keyboard only. Use of “Move-to” feature is no longer required.

fixes CNVS-14117
fixes CNVS-14121	
fixes CNVS-12945
fixes CNVS-14111

test plan: 
- Create groups and students, if not already done so.
- Make sure you can add students to group via any method
- Make sure you get warnings if all groups are full (on screenreader)
- Make sure you get warnings if there are no groups (on screenreader)
- Make sure you can still do drag and drop
- Make sure keyboard focus stays consistent while trying to add students to groups.
- Make sure you can enter “Add user to group” popup via “enter” on the keyboard 

Change-Id: I65228cfbf1893a2d641204b19a0686c9fc67a73f
Reviewed-on: https://gerrit.instructure.com/47198
Tested-by: Jenkins
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Aaron Cannon <acannon@instructure.com>
2015-01-22 17:24:39 +00:00
James Williams 841a41511b update cache_key for temporary invitations
need to include role_id in cached enrollments

closes #CNVS-18072

Change-Id: Iac7cdf7c5285162cee3ab1103d007f006efd034f
Reviewed-on: https://gerrit.instructure.com/47638
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-01-22 16:48:01 +00:00
Benjamin Porter c398425127 Learning Outcome model change int to integer in error message
Since int is not technically a word

Fixes CNVS-18061

Test Plan:
    - Through the api, attempt to change the calculation_int of an
      outcome that has already been used to assess a student
    - Ensure that it is rejected with an error message that uses the
      word 'integer' instead of 'int'

Change-Id: I68a6ae2de437354a4abe6faecf231bd7b356f5e3
Reviewed-on: https://gerrit.instructure.com/47499
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>
2015-01-22 16:17:25 +00:00
James Williams 11585b2d33 fix legacy wiki front page behavior
test plan:
* create a course
* create a wiki page with the old default front page title
 "Front Page"
* replicate the legacy wiki state in the console with the
 following command:

 course = Course.find <COURSE_ID>
 course.wiki.update_attribute(:has_no_front_page, false)

* "Front Page" should be the front page

closes #CNVS-18060

Change-Id: Ieabf84d5c601bab4f5a2d898af847b933aa1e5eb
Reviewed-on: https://gerrit.instructure.com/47605
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Mark Severson <markse@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Tested-by: Jenkins
2015-01-22 14:33:36 +00:00
Clay Diffrient 1b3985d3cc Adds label for the page name field in module dialog
fixes CNVS-17987

Test Plan:
  - Go to the modules page
  - Click to add content
  - Select the "Content Page" dropdown
  - The field that appears for the name below
    should have a label for "Page Name"

Change-Id: I576f0eca5de07687b62aea1ac8c5239cb906e79f
Reviewed-on: https://gerrit.instructure.com/47551
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-22 00:49:26 +00:00
Steven Burnett 34212d0b3d fixed error message showing improperly
fixed the error message showing on assignment edit screens
that had no submissions

fixes CNVS-17800

test plan:
- create an assignment with an amount of points possible
- have a student submit an assignment
- go and change the points possible notice error message

-create an assignment
-change points possible notice error message doesn't show

Change-Id: Ia2b6b1ee27d268a88372f401df67ca49dadd025b
Reviewed-on: https://gerrit.instructure.com/46677
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Matt Berns <mberns@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-21 20:47:16 +00:00
Michael Nomitch 5c8b65eaf5 minor outcomes css fix
fixes CNVS-18045

test plan:
  - go to outcomes page
  - click on an outcome group
  - the buttons are evenly spaced
    (move, edit, delete)

Change-Id: Icdc7114aa371e59bf5aa9a366908e9c11125aafd
Reviewed-on: https://gerrit.instructure.com/47457
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-21 20:24:12 +00:00
James Williams 6616c18c05 don't show invitiations for completed courses
test plan:
* invite a user an active course
* confirm that an invitation shows on their "/courses" page
* complete the course
* confirm that the invitation is no longer shown
 (rather than remaining and then causing a page error on
 attempted acceptance)

closes #CNVS-1736

Change-Id: I91f7d96188ec518eda2c50f9436d5a4fef5a423a
Reviewed-on: https://gerrit.instructure.com/47542
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-01-21 19:35:33 +00:00
Andrew Butterfield a3c189e54f Groups membership from student perspective fixed
fixes CNVS-18055

Test plan:
* As a teacher create a few groups within a few group sets that have
  self signup enabled
* As a student, go to the groups page and join/switch to/leave some of
  these groups
* Ensure that the joinability of the groups in the group set update
  properly
* Ensure that this works when a group does not have a student leader

Change-Id: Ia1f52beb5dd97afc5f43ee7eb161e4ebd6f2b979
Reviewed-on: https://gerrit.instructure.com/47463
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Andrew Butterfield <abutterfield@instructure.com>
2015-01-21 18:58:26 +00:00
James Williams ce34b8b4d4 don't show "AccountMembership" string
Change-Id: I02937b59dcddee5667a4ebb8dda1fb9f4919c673
Reviewed-on: https://gerrit.instructure.com/47498
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-01-21 14:35:28 +00:00
Cody Cutrer b5860cb446 really fix re-queueing of sis jobs
Change-Id: I36c6f45796be4c470c0885ad7360fbfdcfe5e376
Reviewed-on: https://gerrit.instructure.com/47230
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-01-20 20:25:54 +00:00
Jayce Higgins 4e01d95a4f Displays last sync time in section drop down
Fixes: SIS-630

Test-Plan:
--With a post-grades-status generated for a section--
1.) Navigate to gradebook
2.) Open drop down
3.) Verify that "last sync: 'some-date'" is displaying
	next to the relevant sections

Change-Id: I861c1075862e5eaf2917719a2718d1fb237e2e17
Reviewed-on: https://gerrit.instructure.com/45929
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
QA-Review: Kausty Saxena <ksaxena@instructure.com>
Reviewed-by: Nick Houle <nhoule@instructure.com>
Product-Review: Nick Houle <nhoule@instructure.com>
2015-01-20 16:48:05 +00:00
Clay Diffrient 49df57f696 Adds translations to the syllabus page
fixes CNVS-17193

Test Plan:
   - Set to a different language
   - Go to the syllabus page
   - The "due by" should be translated.
   - The same should be true of the "to" between dates when you
     are seeing a range.

Change-Id: I65faed464df212ffa05474fe3f2407c5334958c6
Reviewed-on: https://gerrit.instructure.com/47375
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
2015-01-20 00:28:18 +00:00
Nathan Mills 8781949693 add tool consumer profile variable substitution
fixes PLAT-828

test-plan:
specs should pass

Change-Id: Id00395609939ce51bbbb7f17f38398bc48a95bb9
Reviewed-on: https://gerrit.instructure.com/47252
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2015-01-19 22:29:47 +00:00
Nathan Mills 571d9d1771 refactor variable substitutions
fixes PLAT-815

test-plan
regressions test lti1 variable substitutions
regression test lti1 sessionless varialbe substitutions

Change-Id: I6b57bff184b79a2b47b4d828aadfbf1831e11b1c
Reviewed-on: https://gerrit.instructure.com/46667
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
2015-01-19 21:02:39 +00:00
Joel Hough ca42fde4af allow course members to use course as conversation context
fixes CNVS-17919
fixes CNVS-18018

test plan
- on the account's permissions page, disable the "Send messages to
 individual course members" permission for students
- as a student in a course, send a conversation message to a
 teacher in the course
- ensure that the message is sent

- conclude the course
- send another message from the student to the teacher
- ensure the message is sent

Change-Id: I3987d568fe8406cefea318f26a4efd5156c86fd6
Reviewed-on: https://gerrit.instructure.com/47305
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2015-01-16 23:01:54 +00:00
Nathan Mills 8f41a86787 finish implementing tool settings
fixes PLAT-835

test-plan:
specs should pass

Change-Id: Ia3242a1424c5084930f73d3cfc8c7b05e6b712f8
Reviewed-on: https://gerrit.instructure.com/47327
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
2015-01-16 22:32:27 +00:00
Jeremy Stanley d9916a9543 terms of use/privacy policy endpoints and extension point
this commit adds terms_of_use_url and privacy_policy_url helpers
that can be customized by plugins.  it also provides controller
actions to redirect to these, so that custom URLs can be
computed on demand instead of on every page load

closes CNVS-17882

test plan:
 - without any authentication, /terms_of_use and /privacy_policy
   should redirect to the default documents on canvaslms.com
   (custom documents based on geographic location and account
   license type will come later.)

Change-Id: I72654168d244b5196f841e1a159c14c4c4b29cb3
Reviewed-on: https://gerrit.instructure.com/47331
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2015-01-16 22:09:37 +00:00
Michael Nomitch f6399e749e add message in empty outcomes dialog
fixes CNVS-7709

test plan:
  - in a course with no outcomes or outcome groups
  - go to the rubrics page
    - add a rubric and hit find outcome
    - you should see a message with a link to
      the outcomes page
  - go to the outcomes page
    - the message from above isnt displayed
  - add an outcomes
    - the rubrics find-outcome dialog no longer
      displays the message to the user
  - check anywhere else where you can add an outcome
    - things work as expected here
    - account level outcomes would be one such instance

Change-Id: Ied67a84513a9d7b1b497450caa8f341f95f87c65
Reviewed-on: https://gerrit.instructure.com/46358
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Reviewed-by: Matt Berns <mberns@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-01-16 21:53:18 +00:00
Dave Donahue ad4ba6482c sharding scope fix for enrollments#index API endpoint
fixes CNVS-17966

Notes:
This issue occurs when a user who does not have an association
with the course's shard tries to hit the enrollments API. The long-
winded test plan below is the shortest way I know of to recreate this
edge case.

Test plan:
1. Create a new root account through your site admin account, which
should be at /accounts/2 (this is important because we want to ensure
your site admin user does not have an association with the shard via
any enrollments). Name it cnvs17966.dev (and add an entry for it in
your hosts file first).
2. Create a new account admin user on the new account and set them
up with a password.
3. In a different session, sign in as the account admin user, and
create a course.
4. As the account admin, visit the course settings page.
5. Click into Sections, and then click the course name to view the
default section's current enrollments. You should see them.
6. Repeat steps 4 and 5 as your site admin user in the other session.
You should see the list of enrollments (1 teacher), rather than an empty list.

Change-Id: I15abb58d86ae771252b94a0d9ad29231dad72365
Reviewed-on: https://gerrit.instructure.com/47214
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2015-01-16 21:21:44 +00:00
James Williams 211e2073c7 fix rake db:initial_setup
test plan:
* re-create your test db using
RAILS_ENV=test rake db:initial_setup
* should work

Change-Id: Iec245880490a43f1749c68bd2cc8869c6aba4d96
Reviewed-on: https://gerrit.instructure.com/47310
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-01-16 20:04:47 +00:00
Eric Berry 8b9069e505 Fix style on add app form in app center
fixes PLAT-834

Test steps:
- The best app to test the form (has the most fields) is
  Blackboard Collaborate

Change-Id: I28ea6866fea7af357aac2958ec44f74f93f0eeb4
Reviewed-on: https://gerrit.instructure.com/47312
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
2015-01-16 18:57:17 +00:00
Nathan Mills 961556d582 initialize tool settings with tool proxy data
fixes PLAT-787

test-plan
*register the lti2 tool with custom tool setting data set
*launch the lti2 tool
*the tool settings should have the custom tool setting data you set at the tool proxy level

Change-Id: Ia3b45b34f6f1a621993c4cab9fb7cb2625e438e7
Reviewed-on: https://gerrit.instructure.com/45117
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
2015-01-16 18:51:31 +00:00
Strand McCutchen a3b50e9514 add import and export buttons to Gradebook toolbar UI
closes CNVS-17130

Test plan:
- Confirm that Gradebook toolbar resembles mockup.

Change-Id: Iaa092a45a8ba1ba2da69967b0fec2c99feb93fa8
Reviewed-on: https://gerrit.instructure.com/45587
Reviewed-by: Cameron Sutter <csutter@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Strand McCutchen <smccutchen@instructure.com>
Tested-by: Strand McCutchen <smccutchen@instructure.com>
2015-01-16 18:46:14 +00:00
Nathan Mills b5959a53f3 validate shared secret for tool proxies
fixes PLAT-829

test-plan:
specs should pass

Change-Id: Ie65f2619d7215008c9495e82da52b3b0a4d1a842
Reviewed-on: https://gerrit.instructure.com/47258
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
2015-01-16 18:33:23 +00:00
Clay Diffrient 1990e41019 Changes wording on usage rights
This commit modifies the wording shown on the restricted access dialog.
It also makes it so that the restricted access dialog is able to be submitted
without specifying a copyright holder.  It makes a small styling
change to fix spacing between the warning icon and the message text as
well.

fixes CNVS-18021
refs CNVS-18015

Test Plan:
   - Enable Usage Rights
   - Upload a file
   - Click to publish it.
   - The warning should say "Before publishing, you must set usage rights on your files."
   - The warning icon should be spaced away from the "B" in Before.
   - You should be able to publish the file without filling in the Copyright Holder field.

Change-Id: I0b0c7e97d13c05459516a34de7a4ad86818178d6
Reviewed-on: https://gerrit.instructure.com/47323
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-01-16 18:23:04 +00:00
Nathan Mills 2e16cd3b0a require logged in user for lti2 redirect page
fixes PLAT-830

test-plan:
you shouldn't be able to access the redirect page unless you are logged in

Change-Id: Ifdd4961d779de7d6d02419c37864cf817f3414ba
Reviewed-on: https://gerrit.instructure.com/47261
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
2015-01-16 18:21:56 +00:00