Commit Graph

26579 Commits

Author SHA1 Message Date
James Williams b8eb9b04d2 call translated license names in a lambda
Change-Id: Ibdbca9847de64e79f472df8d3ff886e3b9c4a4ba
Reviewed-on: https://gerrit.instructure.com/122503
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-14 13:03:04 +00:00
Rob Orton 570d1b32a3 use distinct instead of uniq
refs CNVS-38622

Change-Id: I4b25d337f79a81a0a2829eea05d0690252fd620c
Reviewed-on: https://gerrit.instructure.com/122560
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2017-08-13 23:05:48 +00:00
Cody Cutrer 132f414813 rails 5: only include well-known zones in the US time zone list
refs CNVS-38321

test plan:
 * go to account settings
 * open the time zone dropdown
 * there shouldn't be a bunch of zones at the top without translations

Change-Id: Ib3d641f641c0773e510eb36f3e85fba3c257a036
Reviewed-on: https://gerrit.instructure.com/122163
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-12 14:06:53 +00:00
Cody Cutrer 32b0d11466 rails 5: add zurich to en.yml
it's a new named time zone

fixes CNVS-38321

Change-Id: Ie5424a164ad3e67d34a20c5d33850efb8c2886ec
Reviewed-on: https://gerrit.instructure.com/122177
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-12 14:06:31 +00:00
Transifreq b57439843b update zh-Hans translation
Change-Id: I59b7dcd19b3d13d9fcf1e08ebf02a56f1cc68127
2017-08-12 05:28:46 -06:00
Han Yan 9aef896a9b Not Published label on quiz creation receives focus
closes QUIZ-2232

test plan:
- As a teacher, navigate to the Assignments page of a course
- Click on the "+Quiz/Test" button
- Tab to the cog menu in the top right corner
- "Not Published" label should not be tabbed

Change-Id: Icb00788f0df73b59819e6c09bdd66dfc0041d628
Reviewed-on: https://gerrit.instructure.com/121847
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
QA-Review: Omar Khan <okhan@instructure.com>
Product-Review: Han Yan <hyan@instructure.com>
2017-08-12 03:33:43 +00:00
Augusto Callejas 3e88137fd5 Bump academic_benchmarks version
closes OUT-1431

notes:
  this upgrade is necessary to avoid imports from failing on Rails 5.

test plan:
  - confirm that importing standards from Academic Benchmarks v3 succeeds

Change-Id: I8daac14a2ec6100d5cc97d5a76433808d742bc44
Reviewed-on: https://gerrit.instructure.com/122487
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Andrew Porter <hporter-c@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2017-08-11 22:02:21 +00:00
James Williams c5d2e625db create wiki pages directly on contexts
Change-Id: I2139b75e78b02fba2232cc78ccce527b20eea3da
Reviewed-on: https://gerrit.instructure.com/122325
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 20:46:17 +00:00
James Williams 858f509d54 spec: don't recreate roles on every spec
also remove a method that doesn't do anything

should make things faster maybe?

Change-Id: Ie3849b6faa539317338c6f55a0f7be86b8a20c3d
Reviewed-on: https://gerrit.instructure.com/122440
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 20:34:30 +00:00
Andrew Katsanevas a0757c75ed add a role filter to User Search
add the ability to select a role in User Search and
only see users enrolled as that role
closes CNVS-33428

test plan:
- turn on Account Course and User Search feature flag
- go to /accounts/1/search/people
- make sure the new role selector works
- make sure the correct users show up
- make sure keyboard navigation/a11y are good

Change-Id: Ib0620deb4618e06ce202ab41981e1301b3c8d256
Reviewed-on: https://gerrit.instructure.com/119365
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Andrew Katsanevas <akatsanevas@instructure.com>
2017-08-11 20:05:21 +00:00
hh- 13aa70758d spec: 3263155 complete item
Change-Id: Ifc4c26a888759f849cb1175efa98b6aa53eca791
Reviewed-on: https://gerrit.instructure.com/119640
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-11 19:41:07 +00:00
Simon Williams 94e3190f8b don't explode announcements when request format is */*
the issue is that our js_env helper short circuits if request.type.html?
is false, which apparently it is for */*, even though respond_to then
resolves it to html.

fixes CNVS-38332

test plan:
- request the announcements index page, passing a */* accept header
- it should respond without error

Change-Id: Ib9e2f48b5ff6419a1de5ef2af76b30a54b5c92db
Reviewed-on: https://gerrit.instructure.com/120096
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-08-11 18:11:08 +00:00
Rob Orton f5d19cb690 use distinct instead of uniq
fixes CNVS-38622

Change-Id: Ic024761a34dea2b1e3eeaea9cb03eaeffa127bb4
Reviewed-on: https://gerrit.instructure.com/122372
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2017-08-11 17:53:21 +00:00
Jon Jensen 9a3ad8aa94 spec: don't let parallel workers stomp each others' cassandras
at some point we started loading/caching the cassandra config before
forking, which made every worker share the same keyspaces, causing
various specs to fail during the initial run

test plan:
* the build should be more stable

Change-Id: I804178152c165d72f3665ce1103c8af4736a9aa6
Reviewed-on: https://gerrit.instructure.com/122252
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-11 17:46:19 +00:00
Jon Jensen 2a93fa8a91 spec: fix brittle spec
Change-Id: I93e7764dc0a400ab0e422b824c6cb954dc135351
Reviewed-on: https://gerrit.instructure.com/122466
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-11 17:45:52 +00:00
James Williams 4b9838eba0 preload content tags in course progress
Change-Id: Ic66c2b859214bc9ab3f09f873f4deb2deab2637f
Reviewed-on: https://gerrit.instructure.com/122131
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-11 17:45:47 +00:00
Simon Williams f9d0cb4e7e optimize scheduler notifications
don't need to serialize a whole user AR object just for a name

closes CNVS-38377

test plan: make sure all scheduler notifications from appointment groups
still work

Change-Id: Ie2343b90ec189ca30ce9ae2f9dd35a529e57d9ff
Reviewed-on: https://gerrit.instructure.com/120519
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
2017-08-11 17:41:54 +00:00
Ed Schiebel ff9e6c10db Fix discussion index page icons
fixes: CNVS-38329

test plan:
  - create a master course with a discussion and sync to a child course
  - go to the master course discussions page
  > expect the lock, publich and subscribe buttons to be on a single
  > line
  - go to the child course's discussions page
  > ditto

Change-Id: I5b0109f25776bc7cca5c238399391e34ba1d5e2c
Reviewed-on: https://gerrit.instructure.com/120080
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
Tested-by: Jenkins
2017-08-11 15:35:04 +00:00
Cameron Matheson e083044059 graphql: make submission connection student ids non-nullable
Change-Id: I41196db448735c0df515d24bd3328523c96f24cb
Reviewed-on: https://gerrit.instructure.com/122349
Tested-by: Jenkins
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
2017-08-10 20:39:48 +00:00
Cameron Matheson 1606e9558b update graphiql
Change-Id: Ib5f5152ed915918ab95efe0fdf1fc93b8ca12eb9
Reviewed-on: https://gerrit.instructure.com/122348
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
2017-08-10 20:37:39 +00:00
Neil Gupta 6a7d79f063 add external tool url to submission json
fixes GRADE-75

test plan:
* Create a Quizzes.Next quiz
* Complete the quiz as 2 different students
* As the teacher, access the quiz in speed grader
* Adjust the fudge points for the first student
* Navigate to the second student and then back to the first student
* The quiz should still be visible

Change-Id: I4cd9d743f8a2c0c5b511f8f5615c8ed0edc81991
Reviewed-on: https://gerrit.instructure.com/122041
Reviewed-by: Brian Park <brian@siimpl.io>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Tested-by: Jenkins
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-10 20:11:50 +00:00
James Williams 6c7502e933 rails 5.1: fix migrations
Change-Id: I9a8764caf8e6d435a79b1b61db5526258ace63a2
Reviewed-on: https://gerrit.instructure.com/122358
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-10 19:54:01 +00:00
Jeremy Putnam bc3c5f7d95 spec: add student context card student avatar check
Change-Id: Iaabddc7a6a2ae95f7c1959c0f13c10ca9dbfe803
Reviewed-on: https://gerrit.instructure.com/120734
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Tucker McKnight <tmcknight@instructure.com>
2017-08-10 19:29:44 +00:00
Simon Williams 9a49b30067 a few more optimizations to CourseProgress#to_json
this will help speed up ContextModuleProgression#evaluate a bit more.

test plan: basic regression test of evaluate (tests should pass)

Change-Id: Id85c6c182a59b4f6afeb91e6a52137fd75d9518d
Reviewed-on: https://gerrit.instructure.com/122169
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2017-08-10 17:26:40 +00:00
hh- be94169429 spec: C927788 don't mark valid link as invalid
Change-Id: I7356030404414be737c21d319e985bc9b5068be0
Reviewed-on: https://gerrit.instructure.com/122249
Tested-by: Jenkins
Reviewed-by: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-10 16:46:47 +00:00
David Mirabile 3c5ea89b89 spec: add additional specs to the planner specs
update: code review
update: add a force click function to the code
update: update the comments on the force click function

Change-Id: I6a7b2a631a6039cf86d721310038a76a2e72c17f
Reviewed-on: https://gerrit.instructure.com/121602
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-09 22:37:00 +00:00
Ryan Shaw d6e594ae2c Generate css, json & js files for themes on build
Closes: CNVS-38601


This change makes it so if you have a database 
connection, it will look at the db for the brand_configs
that exist there and generate them all when you 
compile_assets. It should prevent people in dev 
mode from getting the vanilla white page
that you get when you get a 404 for the css file
That has all of your brand_configs css variables.


Test plan:
* set up a custom theme for yourself in canvas
* rm -rf public/dist
* check this out
* run bin/rake canvas:compile_assets
* load a page, 
* you should not get a 404 for a css file or js file
  with your brand_variables
* the page should be themed and not be a vanilla white page 

Change-Id: I796ac99c06aafe5d7d229e457988094a7b48e8bd
Reviewed-on: https://gerrit.instructure.com/122155
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2017-08-09 22:11:43 +00:00
Andrew Butterfield ba453e2deb Add show action for grading standards api
This came out of hack night at InstCon

Test plan:
* Create a grading standard via the api
* Using the id that is returned from that request retrieve the grading
  standard using the following endpoint:
  /api/v1/courses/:course_id/grading_standards/:grading_standard_id
* Try and retrieve a grading standard with an id that doesn't exist
* Ensure that you get a 404
* Try to retrieve a grading standard with a user that doesn't have
  permission to do that in the context
* Ensure that you get a permission related response

Change-Id: Id7f5652c9735078c4d7a29f3c3e6790eb51e7311
Reviewed-on: https://gerrit.instructure.com/120685
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-09 21:58:42 +00:00
James Williams 7ec22a0289 bump rails 5.1
Change-Id: Id0e0ad36c03cb52eb9ec158318a456386b169679
Reviewed-on: https://gerrit.instructure.com/122209
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 20:52:53 +00:00
Cody Cutrer c3c8c10360 try to explain the opaqueness of upload_params better
closes CNVS-37422

Change-Id: I3965d69e1382adc2f887ccc035777a2c3251bf65
Reviewed-on: https://gerrit.instructure.com/122181
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-09 19:30:08 +00:00
Pam Hiett 3d81df8a0b fix right-side "to do" links not underlining in HC
Fixes: CNVS-38514

test plan:
- as a user navigate to dashboard
- if *not* HC ensure the "To Do" links are not underlined by
  default.... but do underline upon hover
- now go to user settings and turn on HC to ensure the same
  links are now underlined by default and do not upon hover
- lastly, turn off HC mode for user settings but turn on
  "underline links" to ensure the same "To Do" links
  underline properly

Change-Id: Ic181a8067bd2abf5ca194314e0e0347ef6663427
Reviewed-on: https://gerrit.instructure.com/121806
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Stephen Jensen <sejensen@instructure.com>
2017-08-09 19:22:59 +00:00
Gary Mei ceece49b18 spec: Add missing specs for AssignmentApi
refs GRADE-134

Change-Id: Idb1ff5ffee77bda4525e3d3b55874bdf34f0d6d5
Reviewed-on: https://gerrit.instructure.com/122141
Reviewed-by: Derek Bender <djbender@instructure.com>
Product-Review: Gary Mei <gmei@instructure.com>
QA-Review: Gary Mei <gmei@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Tested-by: Jenkins
2017-08-09 17:58:16 +00:00
Cody Cutrer 6ddafb386b fix explicit pseudonym<->auth provider linking for LDAP
Change-Id: Ic7a9d0e511ec93ebd0550aeb6c4d5d3290db47c4
Reviewed-on: https://gerrit.instructure.com/121948
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-09 17:28:21 +00:00
Brian Park b4d8da3246 apply late policy in gradezilla frontend on change
closes: GRADE-133

Test Plan:
1. Navigate to gradezilla
2. Change some late policy values in settings cog menu
3. Observe that upon clicking 'Update' in the menu,
   all late and missing assignments are updated to show
   the new grades.
    - Late submission deductions are applied when enabled
    - Late submission deductions are updated when penalty
       value is changed
    - Late submission deductions persist when late
        deductions are turned off
    - Missing submission grades populated when policy set
       - Does not affect existing grades!
    - Missing submission grades unchanged when policy unset
    - Submissions in closed grading periods are unaffected
      by any late or missing policy changes

Change-Id: I6d0f759a1653ab58a749a9d7b0b95eff453a432c
Reviewed-on: https://gerrit.instructure.com/119148
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-09 17:27:05 +00:00
Brian Park 8d72bb26f1 fix regraded submissions not getting late policy applied
fixes: GRADE-3

depends-on: GRADE-133

Test Plan:
1. As teacher/admin, navigate to Gradezilla
2. Set up a late policy
3. Find or locate a late submission
4. Grade the late submission
  - Observe late penalty is applied
5. Re-grade the submission as its adjusted grade, e.g.:
  - 90/100 is penalized to 80/100
  - submission is regraded as 80/100
6. Observe the late deduction is applied to the new grade
7. Repeat 3-6 with SpeedGrader, Submission Details Page

Change-Id: I392e5adeeef9354f7a8953f267d13b984b048530
Reviewed-on: https://gerrit.instructure.com/121200
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-09 17:27:02 +00:00
James Williams 45147e0911 bypass the wiki model as much as possible for wiki_pages
Change-Id: I60ec3b519219fcb5256a132c05f63538600df73f
Reviewed-on: https://gerrit.instructure.com/121760
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 16:09:06 +00:00
James Williams 39412c857e master courses: avoid unnecessary child tag creation errors
use content_tag_for on creation so we can populate the
@content_tag_index for reuse in the migration

closes #CNVS-38017

Change-Id: Ia1b9fd773f55b4e3dcd068c740896ff0ec6d43e0
Reviewed-on: https://gerrit.instructure.com/122108
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 15:29:39 +00:00
Derek Bender a0abc70cc4 replace data with attr for string IDs
this was caused by jquery's data() function converting strings to
integers. e.g. "01" -> 1

fixes: GRADE-169

test plan:
- Given an assignment created with an override
- When clicking save after editing the title of the assignment
- Then the assignment is saved and there are no javascript
errors in the console

Change-Id: Idf8f41b72488edf5c76fd201fa1c4fa922ee1446
Reviewed-on: https://gerrit.instructure.com/121879
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-09 15:21:43 +00:00
Derek Bender 6f476aa6b3 proxy images in test to avoid 404s
Change-Id: Ia65dac38d7cae6dfc6bab04f6dce8bbc856e84a4
Reviewed-on: https://gerrit.instructure.com/122087
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-08-09 15:12:35 +00:00
Omar Khan 36c714c7a6 Add Module#class_name
This method is already defined by YARD, but we don't include YARD in our
production dependencies, so we have to reimplement it.

Test plan: check that production builds work

Change-Id: I1dc383b8ca5414a57151ac409795e53932f9cd8a
Reviewed-on: https://gerrit.instructure.com/122078
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
2017-08-09 14:58:45 +00:00
James Williams 3fd266c774 fix n+1 loading of module object visibility in course progress
Change-Id: Ic20d7c2c814217ff777427f4e3da6a82d5ea5c0d
Reviewed-on: https://gerrit.instructure.com/122113
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-08-09 14:43:29 +00:00
Rob Orton 0b49859e60 allow importer to continue on failure
also include the user in the error for observing self

fixes CNVS-38574

test plan
 - user observer importer should work

Change-Id: I27e3b79076724eba2bff61bc74d4018e782e319a
Reviewed-on: https://gerrit.instructure.com/122059
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2017-08-09 03:01:26 +00:00
Cody Cutrer 329930ea08 return canvas and LDAP users to their login screen when logging out
fixes CNVS-38441

test plan:
 * configure CAS as a primary auth provider
 * add and login as a Canvas auth user
 * when you logout, it should return you to /login/canvas, not to the
   CAS server

Change-Id: I9d839b7efdc81f307adfbd6d3c128faee64361d4
Reviewed-on: https://gerrit.instructure.com/121054
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-08 21:25:44 +00:00
Cody Cutrer b65b4ba7aa complete the oauth flow when logged in via a session token
fixes CNVS-38458

Change-Id: Iea165f46c2f6f0214011262761fd67c40c67f7d7
Reviewed-on: https://gerrit.instructure.com/121825
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-08 21:25:38 +00:00
Andrew Katsanevas 82ade33181 fix oauth2 screen user link to open new tab
On the OAuth2 screen, make user profile link
open in new tab, rather than within the iframe.
closes CNVS-37023

test plan:
- create a developer key
- go to /login/oauth2/auth?client_id=<your_dev_key_id>&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob
- click the "You are authorizing this app as <user_link>"
- make sure it opens in a new tab

Change-Id: Ic9e8997c922024167e649dd20a3308f5f2fdeaf0
Reviewed-on: https://gerrit.instructure.com/121631
Tested-by: Jenkins
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2017-08-08 20:31:55 +00:00
Cody Cutrer 353bf2ec16 add first class support for the UK Federation
fixes CNVS-38446

refactor InCommon to be a common base class for both, and in our
special casing of InCommon refactor to iterate the children
classes

test plan:
 * add a SAML config with either InCommon or UK Federation special
   metadata URIs, and a valid entity ID for a school that's part of
   one or the other
 * the rest of the metadata should populate without error

Change-Id: Ie2d37e942cc35333ee16d1f0b3cbb2dc81f53767
Reviewed-on: https://gerrit.instructure.com/121421
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-08 20:26:52 +00:00
Mysti Sadler fd6495fd87 Add new_activity tag to planner item json
refs FALCOR-544
refs FALCOR-539

Test plan
- Create some grading items and some discussions/announcements
- Ensure they are not showing up with the new_activity flag
- in the API yet
- Ensure they do not show new_activity for submissions
- Grade or add feedback to the grading items
- Reply to the discussion/announcements
- Ensure that the api now does show new_activity

Change-Id: I8cf448c3296c21057aba9a9006b8efd8044986bd
Reviewed-on: https://gerrit.instructure.com/120658
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: Christi Wruck
2017-08-08 20:18:12 +00:00
Sheldon Leibole 996f2e054b clean up late policies ui
closes: CNVS-38205

Test Plan

1. Create a course with at least one student and assignment.
2. Set the assignment due date to some time in the past.
3. Submit the assignment as the student.
4. Grade the assignment as the teacher.
5. Navigate to gradezilla.
6. Open the subission details tray.
7. Verify that "Late Penalty: <penaltiy>"
   and "Final Grade: <final grade>" are stacked
   on top of each other.
8. Switch to individual view gradebook.
9. Select the student and the assignment.
10. Under "Grading" verify that the
    input with "(out of <total>)", "Late Penalty <penalty>",
    and "Final Grade <final grade>" are stacked on
    top of each other

Change-Id: I087a2ce489938a995c3edde6c494edd93680b157
Reviewed-on: https://gerrit.instructure.com/119973
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-08 16:37:06 +00:00
Transifreq ba6598c9e6 update da translation
Change-Id: I4bbd5f21b0df1f7f62179651d7e7035a002f7a2f
2017-08-08 05:12:38 -06:00
Ryan Shaw 5ee5019492 More conversions of sass vars to css vars
Closes: CNVS-38435

Test plan:

* check the places where these variables are used
* they should look exactly how they did before
* especially test these things in high contrast mode

Change-Id: Idfb5a9f240d2710af1891eeb8a478678ac4c38bd
Reviewed-on: https://gerrit.instructure.com/120896
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2017-08-07 22:23:29 +00:00