Commit Graph

21620 Commits

Author SHA1 Message Date
James Williams 892307a80d don't allow rubric title suffix to bypass length validation
closes #CNVS-30700

Change-Id: Ied13bd9462eca40ec992eaa1425378ea93cd4d6c
Reviewed-on: https://gerrit.instructure.com/86683
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-08-03 12:39:59 +00:00
Alex Boyd 697a1c4562 point index_trgm_users_name_active_only at the right column
fixes CNVS-30740

Change-Id: I2463a0add13cead70f89524132b6b6eac640e945
Reviewed-on: https://gerrit.instructure.com/86769
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Alex Boyd <aboyd@instructure.com>
QA-Review: Alex Boyd <aboyd@instructure.com>
Tested-by: Jenkins
2016-08-03 03:32:23 +00:00
Benjamin Porter 5a975d407f Include pdfjs in preferred_plugins array
Instead of sending a separate param to canvadocs for pdfjs as
a preferred plugin, just put it in the preferred_plugins array (which
used to be called preferred_renders)

Refs CNVS-30582

Test Plan:

    - This is very difficult to test manually, particularly without
      changing any code.  The reason for this is that canvadocs doesn't
      currently do anything with the pdfjs preferred plugin so you can't
      just check for that behavior.  However, this is something you can
      do even tho it isn't ideal (and this is how I tested this patch in
      development):
      - get canvas working with a canvadocs instance on which you can
        modify code.  By modifying the canvadocs instead of the canvas,
        the integrity of this patch is maintained for test purposes.
      - In the canvadocs session controller
        (app/controllers/session_controller.js), add a log statement to
        display what comes in in the body of the request.  Something
        like:
        - console.log('Request body: ')
        - console.dir(req.body)
      - Submit an assignment to a course as a student.
      - As a teacher, open speedgrader from that assignment.  This will
        cause a new canvadocs viewing session to be created.
      - In the console output of the canvadocs instance, see that the
        body did not include a preferred_plugin of pdfjs.
      - Toggle the feature flag to enable new annotations.
      - Repeat opening speedgrader but this time observe that the body
        includes pdfjs in the list of preferred_plugins.

Change-Id: Ie3e16e1331fcdd757e96888f033e8341e7d6a0bc
Reviewed-on: https://gerrit.instructure.com/86549
Tested-by: Jenkins
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>
2016-08-03 03:07:50 +00:00
Alex Ortiz-Rosado 3d5e6e4cfc Spec: Move outcomes specs to their own directory.
Test Plan:
 - Pass Jenkins

Change-Id: I22b2f78f7c100f49c624787a0fc0b83616b1603d
Reviewed-on: https://gerrit.instructure.com/86619
Tested-by: Jenkins
Reviewed-by: Matt Berns <mberns@instructure.com>
Product-Review: Alex Ortiz-Rosado <aortiz@instructure.com>
QA-Review: Alex Ortiz-Rosado <aortiz@instructure.com>
2016-08-02 22:22:36 +00:00
Cody Cutrer a8e4ff4dea search common accounts more exhaustively for user permissions
fixes CNVS-30666

Change-Id: I63a64c4798ef156339ec4a952faa6866fa38d95f
Reviewed-on: https://gerrit.instructure.com/86428
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-08-02 20:36:26 +00:00
Cody Cutrer 36fe264507 don't bother caching a constant for feature flags
refs CNVS-30659

Change-Id: If90aedf26994f0012fa1efebf875451779c2cc97
Reviewed-on: https://gerrit.instructure.com/86712
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-08-02 20:25:43 +00:00
Clay Diffrient 0668a4ea52 Make uploads via upload dialog work
closes CNVS-28647

Test Plan:
  - Enable course images feature flag
  - Go to the course settings
  - Open the change image modal
  - Click/Use keyboard to activate the "browse your computer"
    link
  - A file upload dialog should appear.
  - Uploading a file should close the modal and update
    the image.
  - Save the course settings and the image should persist

Change-Id: I3bd701ad282ef7c891201fe0ddee8037591a85f0
Reviewed-on: https://gerrit.instructure.com/77196
Reviewed-by: Matt Zabriskie <mzabriskie@instructure.com>
Tested-by: Jenkins
QA-Review: Pierce Arner <pierce@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
2016-08-02 19:10:46 +00:00
Alex Boyd 540ec880ac add trigram user indexes restricted to active users only
Change-Id: I03b0564b143148fca35062dc925999367f265bdf
Reviewed-on: https://gerrit.instructure.com/86550
Tested-by: Jenkins
Reviewed-by: Rosser Schwarz <rschwarz@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Alex Boyd <aboyd@instructure.com>
QA-Review: Alex Boyd <aboyd@instructure.com>
2016-08-02 18:41:06 +00:00
Pam Hiett a8d684ae0a replace "ALT" icon in speedgrader header and rce
Fixes: CNVS-30674

test plan:
- make sure the icon font updates locally
- as a teacher/admin
- navigate to speedgrader to ensure the "ALT" has been replaced
  with a "keyboard"
- next navigate to a quiz or an assignment and in the edit view
  the keyboard shortcut icon should be back to the "icon-info"
  (it will be updated in a future commit as far as placement
  and aligning with the updated keyboard look)

Change-Id: I85541a8f0858a1a22d798003e38e7145016ef9db
Reviewed-on: https://gerrit.instructure.com/86524
Tested-by: Jenkins
Reviewed-by: Colleen Palmer <colleen@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
QA-Review: Pierce Arner <pierce@instructure.com>
2016-08-02 18:21:18 +00:00
Ben Young 18af33a308 allow teachers to set lti submission type when grading
Refs PFS-4941

Test plan:
- Create an assignment in a course with an active student
- As a teacher, use submissions update endpoint to assign
    a submission type of 'basic_lti_launch' and url to student
- Verify submission has been updated with correct submission type and url
- Create another assignment with any online submission types
- As a student, submit to the assignment
- As a teacher, use the submissions update endpoint to attempt to
    assign a submission type of 'basic_lti_launch' and url
    for student
- Verify submission type used by student remains, and changes
    attempted by teacher were not applied

Change-Id: I2bd7f3345df06135cd0328fc87826563b2481bad
Reviewed-on: https://gerrit.instructure.com/86183
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Christi Wruck
2016-08-02 17:59:34 +00:00
Deepeeca Soundarrajan c870e081f5 spec: Add specs for groups page
Test plan:
  passes Jenkins

Change-Id: I0406428065803dc8403f298f472a6a5f180b9699
Reviewed-on: https://gerrit.instructure.com/86386
Tested-by: Jenkins
Reviewed-by: Gentry Beckmann <gbeckmann@instructure.com>
Product-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
2016-08-02 15:53:48 +00:00
James Williams 0bf0041957 fix attempts to update in slave for enrollment state
initially found because of attempts to touch the user but
realized saving would likely fail as well

closes #CNVS-30711

Change-Id: I474a2a7eac78ba75b2e76124d6b6f25ae532b076
Reviewed-on: https://gerrit.instructure.com/86657
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-08-02 15:22:03 +00:00
James Williams a4f7dc86a1 conditional release content migration service
test plan:
* make sure canvas is configured with a
 conditional release service with g/85046 merged or checked out
* create assignments in a course with conditional content
* after copying the course, or exporting/importing the course,
 the new assignments should have conditional content

closes #CNVS-30371 #CYOE-235

Change-Id: I42693f2d12185f5c7f665d303baf938ad4af08ad
Reviewed-on: https://gerrit.instructure.com/85108
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Christian Prescott <cprescott@instructure.com>
QA-Review: Alex Morris <amorris@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2016-08-02 15:11:13 +00:00
James Williams d086e37945 bump moodle2cc
test plan:
* import the moodle package referenced in the ticket
* it should work

closes #CNVS-30501

Change-Id: I74a35417a0baff5e7da02eae7e89d533cd4a537a
Reviewed-on: https://gerrit.instructure.com/86367
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2016-08-02 12:47:24 +00:00
James Williams 8539a6b44b allow course admins without manage rights to preview quizzes
test plan:
* create a custom teacher role with "Manage assignments/quizzes"
 disabled
* a teacher with that role should be able to see and preview
 a quiz

closes #CNVS-30574

Change-Id: Ib036b2f352c63c63fc4454e08d80d21f34415ce0
Reviewed-on: https://gerrit.instructure.com/86119
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2016-08-02 12:47:16 +00:00
Clay Diffrient 1772d171c0 Make local file uploads work via drag-n-drop
refs CNVS-28647

Test Plan:
  - Enable course images feature flag
  - Go to course settings
  - Click the "Change Image" button
  - Drag an image file to the drag-n-drop zone
  - The file will upload and the modal will close
  - The course image setting will now show the new
    image.
  - Save the course settings
  - The new image should persist.

Change-Id: I9922d3ede6fdd17d7503f8de78035245decfa320
Reviewed-on: https://gerrit.instructure.com/77177
Tested-by: Jenkins
Reviewed-by: Matt Zabriskie <mzabriskie@instructure.com>
QA-Review: Pierce Arner <pierce@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
2016-08-01 21:19:05 +00:00
Ryan Shaw a3342e5429 include siteadmin css/js always if set in newUI
fixes: CNVS-30679

in new UI, if you had custom CSS/JS for siteadmin
theme, but you didn't create any themes for your
root accounts or child accounts. when you loaded
a page, it would not include the site admin's custom
css/js

test plan:

* make sure no brand configs are applied to the root
account or the sub account you are looking at
* create a theme for the site admin that has custom
  css/js.
* load a page
* it should include the css/js for that theme

this should have already worked, but good to confirm
that it still does:
* now, with that theme applied to site_admin,
  make a theme for your root and child accounts
  and give them some custom css/js too
* load a page
* it should include js/css from
    first, the site admin account
    second, the root account
    last, the child account

Change-Id: I65e676b9b015959995d205e949021ac1c7211381
Reviewed-on: https://gerrit.instructure.com/86544
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2016-08-01 21:08:13 +00:00
Simon Williams 5d34165b2e Revert "stop wrapping our custom js loading in a require block"
This reverts commit 78268a8821.

fixes CNVS-30696

test plan:
- add a custom account js include
- make sure it loads properly all the time

Change-Id: Ie708c17c7d27c6caaf46a79df115557737701286
Reviewed-on: https://gerrit.instructure.com/86596
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
2016-08-01 20:56:33 +00:00
Clay Diffrient 48229cdd21 Make course settings page show course images that are set
closes CNVS-28646

Test Plan:
 - Enable course images feature flag
 - Set a course image in Canvas, currently only via API these
   instructions should work:
   Send a PUT request to /api/v1/courses/XX containing
   course[image_url]=https://farm2.staticflickr.com/1467/26130879670_eb41e73f3c_z.jpg
  - Go to the course settings page, you should see an image there :)

Change-Id: I7ef6f6e3b69c418b7d1ae868e672486a2de0c873
Reviewed-on: https://gerrit.instructure.com/77020
Product-Review: Colleen Palmer <colleen@instructure.com>
Tested-by: Jenkins
Reviewed-by: Matt Zabriskie <mzabriskie@instructure.com>
QA-Review: Pierce Arner <pierce@instructure.com>
2016-08-01 20:41:24 +00:00
Ben Rinaca 59ddd854a6 Deterministically get a submission for a user
fixes CNVS-30098

The course/:course_id/quizzes/:quiz_id/submissions api returns
different things in different cases and the mobile teams want a way to
be able to easily get the submission for the current user so they don't
have to do client-side filtering on all of the apps. Let's add that as
course/:course_id/quizzes/:quiz_id/submission that'll only ever give
any one submission for you.

Also update the docs for the existing API so it is more clear what it
does.

test plan:
- request the new API as a student without a quiz submission and verify
  you are returned an empty set of quiz submissions
- request the new API as a student with a quiz submission that is not
  yet submitted and verify that you are returned a single quiz
  submission with workflow_state = untaken
- reuqest the new API as a student with a quiz submission that is
  submitted and verify that you are returned a single quiz submission
  with workfow_state = complete
- request the new API as a student with a quiz submission that has many
  submitted attempts and verify that you are returned a single quiz
  submission with workflow_state = complete and attempt number is the
  latest attempt
- request the new API as a teacher or admin and verify that you are
  returned an empty set of quiz submissions
- request the new API as a teacher or admin who is also a student with a
  quiz submission and verify that you are returned only your one quiz
  submission

Change-Id: Ib364e9c4be0f196c10892dafe5bad75c86acbdbc
Reviewed-on: https://gerrit.instructure.com/83846
Reviewed-by: Davis Lynn McClellan <dmcclellan@instructure.com>
Tested-by: Jenkins
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Brandon Pluim <bpluim@instructure.com>
2016-08-01 20:19:45 +00:00
Jeremy Stanley d70578b337 show date overrides in modules in courses with one section
test plan:
 - have a course with only one section
 - create an assignment and set up per-student overrides
 - add the assignment to a module
 - ensure that, as a teacher, the modules page shows
   "Multiple Due Dates" for the assignment

fixes CNVS-30620

Change-Id: I8244cac632511fcb789673270e98afc68b0378ef
Reviewed-on: https://gerrit.instructure.com/86447
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2016-08-01 18:31:43 +00:00
gbeckmann 3a2a69a56f Spec: fix speedgrader spec failing in chrome
Change-Id: I587d35c25546106a5d09aff6960794552da99886
Reviewed-on: https://gerrit.instructure.com/86528
Tested-by: Jenkins
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
Product-Review: Gentry Beckmann <gbeckmann@instructure.com>
QA-Review: Gentry Beckmann <gbeckmann@instructure.com>
2016-08-01 15:32:02 +00:00
gbeckmann 44be85b769 Spec: add grading standard page link spec
add spec to test link to grading standard page from terms page

Change-Id: Ib092d0f5242accc2f8fe87faaaf71e9ee8769d8c
Reviewed-on: https://gerrit.instructure.com/86474
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Reviewed-by: KC Naegle <knaegle@instructure.com>
Product-Review: KC Naegle <knaegle@instructure.com>
2016-08-01 15:02:10 +00:00
Jeremy Stanley eabf2561cb add course_format column to courses.csv SIS import
test plan:
 - add a "course_format" column to courses.csv
 - put "on_campus", "online", and "blended" in rows
 - perform a SIS import
 - ensure in course settings that the setting was
   imported properly
 - ensure the setting is updated after a re-import

closes CNVS-30561

Change-Id: I0153c91c897cdffeb9021b65127006961989494e
Reviewed-on: https://gerrit.instructure.com/85967
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2016-08-01 14:50:55 +00:00
James Williams 61b1e0635f replace some EnrollmentDateBuilder#preload with preload_states
once all of the enrollment states have been calculated,
we probably won't need all the dates to know what our current
state is

Change-Id: I489c43d4daeea5c431f468cbcf920d34a878e2b1
Reviewed-on: https://gerrit.instructure.com/83878
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-08-01 13:59:54 +00:00
KC Naegle 696abb0b76 spec: split big mgp gradebook dropdown spec
Change-Id: I73dc71fe60bbfd1d7baa88fc68086a64a66b8dc3
Reviewed-on: https://gerrit.instructure.com/86100
Tested-by: Jenkins
Reviewed-by: Amber Taniuchi <amber@instructure.com>
Product-Review: Amber Taniuchi <amber@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
2016-07-29 22:46:50 +00:00
KC Naegle 8bffd2b85d spec: add grading period
Change-Id: I6bede0a694e5ee8a5d6e39bba298db400f745c2a
Reviewed-on: https://gerrit.instructure.com/86213
Tested-by: Jenkins
Reviewed-by: Gentry Beckmann <gbeckmann@instructure.com>
Product-Review: Gentry Beckmann <gbeckmann@instructure.com>
QA-Review: Gentry Beckmann <gbeckmann@instructure.com>
2016-07-29 22:46:19 +00:00
Benjamin Porter 7fa948227d Add some helpful info to the docker development doc
Add some documentation for Docker for Mac now that it is out of beta and
is available in a stable form.  Also add some info on dory for linux.

Test Plan:

    None.  Documentation only.

Change-Id: I38cee842dcc7a8fa24a1606d5fd684777b8c9690
Reviewed-on: https://gerrit.instructure.com/86507
Tested-by: Jenkins
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Andy VanWagoner <andy@instructure.com>
Reviewed-by: Andy VanWagoner <andy@instructure.com>
2016-07-29 21:47:49 +00:00
Clay Diffrient 70a52f5982 spec: convert coffeescript EditConferenceViewSpec to javascript
With two files and only one small spec in coffeescript, this commit
unifies everything under just the javascript version and removes the
coffeescript.

Change-Id: I4b4dd43a10e297ab79d0d6c39450d5ea12c5cf6f
Reviewed-on: https://gerrit.instructure.com/86358
Tested-by: Jenkins
Reviewed-by: Matthew Sessions <msessions@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
2016-07-29 20:37:00 +00:00
Clay Diffrient 37fddd1ed0 Make title show when the new/edit conferences dialog appears
closes CNVS-30441

Test Plan:
  - Enable conferences
  - Go to conferences
  - Click the "+ Conferences" button
  - "New Conference" should be displayed in the title bar of the modal
  - Edit the collaboration you've just added
  - "Edit 'your collaboration title'" should be displayed in the title bar
  - A screenreader should also read these properly

Change-Id: If8cc4abd7117b065bc633c20a3b49d691b659b67
Reviewed-on: https://gerrit.instructure.com/86337
Reviewed-by: Matthew Sessions <msessions@instructure.com>
Tested-by: Jenkins
QA-Review: David Tan <dtan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2016-07-29 20:32:31 +00:00
Jeremy Stanley 9b4cf48c5f API to move events between calendars
test plan:
 - render docs and notice calendar_event[context_code] in
   the "Update a calendar event" action
 - exercise this option to move events between calendars
   (course / group / user)
 - ensure you get an appropriate error if you attempt to
   move a section-specific event or a Scheduler appointment

closes CNVS-30524

Change-Id: I4bb2820bc5f0507324f3f314afb2945042f30161
Reviewed-on: https://gerrit.instructure.com/85766
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2016-07-29 19:49:53 +00:00
Michael Brewer-Davis 9ab530eb04 add domain to cyoe jwt
supports cors in cyoe

refs: CYOE-245

Test plan:
1.  Parse CYOE jwt, verify that domain is included in the
    main jwt (previously only in the embedded canvas jwt)

Change-Id: I5a9949dd01271322cbd6c6f0819ea5d63a7222a0
Reviewed-on: https://gerrit.instructure.com/86172
Tested-by: Jenkins
QA-Review: Alex Morris <amorris@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2016-07-29 18:30:48 +00:00
Alex Boyd e3b8a2843a Allow recurring calendar events on user calendars
Fixes CNVS-30503

Test plan:
 - Enable the Recurring Calendar Events feature flag on an account
 - Masquerade as a user in that account
 - Go to the calendar
 - Click the + button
 - Make sure the user's personal calendar is selected in the dropdown
 - Click "More Options"
 - Make sure a "Repeat" checkbox shows up

Change-Id: Iff9c9600a309d1bb78c47369b0d8c9da5b89d7ae
Reviewed-on: https://gerrit.instructure.com/85684
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Alex Boyd <aboyd@instructure.com>
2016-07-29 15:58:59 +00:00
James Williams ba4ca4ca7c prevent workflow error with content export progress
refs #CNVS-30511

Change-Id: Ia75f7265c3771a318e99548d45ff2bac696fa02c
Reviewed-on: https://gerrit.instructure.com/86346
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-07-29 15:32:32 +00:00
Transifreq bce8eb1a12 update nn translation
Change-Id: If6d2034621d0da10d29fd780a15a0556da6ec1db
2016-07-29 06:23:40 -06:00
Simon Williams 1b5cf86c68 hide sidebar correctly on syllabus home page edit
fixes CNVS-30486

test plan:
- enable the rich content editor and sidebar feature flag
- set the syllabus to the course home page
- edit the syllabus from the home page
- the sidebar should correctly toggle to the content editor sidebar

Change-Id: I5c8cd71979336b9e9fc3e900013970ecace2c829
Reviewed-on: https://gerrit.instructure.com/85726
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2016-07-29 03:22:53 +00:00
Jacob Fugal a15e1c2fce wrap oauth/oauth2 login redirects in delegated uri
fixes CNVS-28806

Change-Id: I890371f0f65499d4be09f7a5576139e6f71519f6
Reviewed-on: https://gerrit.instructure.com/83251
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins
2016-07-28 21:40:14 +00:00
Joel Hough b6d06102bb select event_id param event after loading all calendar events
fixes CNVS-30455

test plan
- create a calendar event
- navigate to /calendar?event_id=1234 using the id of the event
 you created instead of 1234
- ensure that the event detail tooltip doesn't jump to the top
 left of the window

no automated tests because this is a horrible frontend bug to do
with positioning and it would be a sin to write a selenium spec
for it.

Change-Id: Ic16bd769bc845768e484f2b677c14fc03b2bbfb8
Reviewed-on: https://gerrit.instructure.com/86239
Tested-by: Jenkins
Reviewed-by: Matthew Sessions <msessions@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
2016-07-28 18:32:16 +00:00
Derek Bender eaf1fb1db0 fixup aria-label escaping in gradebook
fixes: CNVS-30540

test plan:
  - the aria-label for tool-tips in gradebook are no
    longer incorrectly htmlEscaped

Change-Id: I3a78e91c96f652b5f6d4acfab1efb91684cf15be
Reviewed-on: https://gerrit.instructure.com/85890
Reviewed-by: Nicholas Pitrak <npitrak@instructure.com>
Tested-by: Jenkins
QA-Review: Amber Taniuchi <amber@instructure.com>
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-07-28 18:04:24 +00:00
Spencer Olson dcf034b7a3 add 'multiple_grading_periods_enabled' to course json
when 'current_grading_period_scores' are requested from
the courses API, there will now be a
'multiple_grading_periods_enabled' key returned which
indicates whether or not the course has the multiple
grading periods feature enabled.

closes CNVS-30327

test plan:
- in a course with multiple grading periods enabled,
  hit the courses api index with the
  current_grading_period_scores flag. for example:

    GET api/v1/courses/2?include[]=current_grading_period_scores

- verify the response has a 'multiple_grading_periods_enabled'
  key, and verify the value is true
- disable the multiple grading periods feature for the course
- hit the courses api index with the current_grading_period_scores
  flag again
- verify the response has a 'multiple_grading_periods_enabled'
  key, and verify the value is false
- hit the courses api index without the current_grading_period_scores
  flag. for example:

    GET api/v1/courses/2

- verify the response does not have a
  'multiple_grading_periods_enabled' key

Change-Id: I244aadb6fa9ad86f9cd866a3790501f447bd5037
Reviewed-on: https://gerrit.instructure.com/85496
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-07-28 17:44:52 +00:00
Cameron Matheson 7426e748db mgp grade export report
closes CNVS-25155

Test plan:
  * set up grading periods
  * run the "MGP Grade Export" report
    * try it with all terms and a specific term
  * make sure the grading period grades are correct

Change-Id: Id81615396ccd8aa917e382724e33bc488dec8b93
Reviewed-on: https://gerrit.instructure.com/84003
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Christi Wruck
2016-07-28 16:38:32 +00:00
Transifreq 93139c4b04 update tr translation
Change-Id: Ib74c431624aaedce00be860d7605aa7ec50b478d
2016-07-28 06:24:55 -06:00
Transifreq 7d5c21bac3 update ko translation
Change-Id: Ia576bdb9177bf67311f1b199ec269c29d8d6ced2
2016-07-28 06:23:05 -06:00
Transifreq 45a56c32d0 update he translation
Change-Id: Icfd3b824fceddfc03e979b803c34c710b1a982c3
2016-07-28 06:21:14 -06:00
Transifreq 0f21451d22 update fa translation
Change-Id: I99be1a6822739cfdf857d5c52b3e20cd540737f7
2016-07-28 06:20:16 -06:00
Transifreq 02431f1106 update zh-Hant translation
Change-Id: I9b6ae3df510b4fac9ba3634228c4941d409d11f0
2016-07-28 05:35:09 -06:00
Transifreq 5c9396645d update zh-Hans translation
Change-Id: I8bf747faf9c78c3f1bdd10f6baa5c73d18804374
2016-07-28 05:34:04 -06:00
Transifreq 9f82ff1e4d update ja translation
Change-Id: I6da5a872a1aed86d929edc6abbf6d3979077d691
2016-07-28 05:25:27 -06:00
Transifreq b77d3ae077 update es translation
Change-Id: I0c304b8825785667b33949709a6ef3f464c12cb4
2016-07-28 05:23:23 -06:00
Cody Cutrer 49ee1a33aa allow multiple redirect URIs
fixes CNVS-30433

and match them exactly

test plan:
 * edit an existing developer key
 * it should list both a legacy redirect URI, and a place
   to put multiple redirect URIs
 * add some URIs to it and save
 * reload the page, and edit again
 * they should be there
 * add a new developer key
 * it should not have a place to put legacy redirect URI
 * save, refresh, edit, and it still shouldn't

Change-Id: Ie61c9b4026ca675df8f64d660480e52fafff0c57
Reviewed-on: https://gerrit.instructure.com/76990
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-07-28 01:07:58 +00:00