Commit Graph

26827 Commits

Author SHA1 Message Date
David Mirabile 25f971515a spec: refactor scheduler specs
Change-Id: I72f8019fe96b1c854ac2f016d1a40fc25882fbcb
Reviewed-on: https://gerrit.instructure.com/123019
Tested-by: Jenkins
Reviewed-by: David Tan <dtan@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-16 20:59:34 +00:00
Dave Donahue 56f100654a fix untranslated string for OQAAT warning
closes CNVS-37087

Test plan:
 1. Create a OQAAT quiz with `lock questions` set so the
    student cannot go back to a previous question.
 2. Add 1 or more questions
 3. Start the quiz
 4. See the alert in English, but since it's wrapped in a
    t block now, it will go through the translation service.

Change-Id: I269c83dfaee0292ef5e3df76c7deac2fe07a17f7
Reviewed-on: https://gerrit.instructure.com/122800
Tested-by: Jenkins
Reviewed-by: Ryan Taylor <rtaylor@instructure.com>
Reviewed-by: Davis Lynn McClellan <dmcclellan@instructure.com>
Product-Review: Dave Donahue <ddonahue@instructure.com>
QA-Review: Gentry Beckmann <gbeckmann@instructure.com>
2017-08-16 20:38:10 +00:00
Rob Orton 73a5d868c9 log failed enrollment removals from section importer
fixes CNVS-38665

test plan
 - import should work

Change-Id: I5e6cd86f37cf9c29c17702a59bbc54eec5c0edb5
Reviewed-on: https://gerrit.instructure.com/122722
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-16 20:15:12 +00:00
Cody Cutrer e0dd51faa6 explicitly don't verify LDAPS certificates
fixes CNVS-38593

an updated net-ldap gem changed these defaults

test plan:
 * do an LDAP test against an LDAP server that uses SSL
 * it should work

Change-Id: I9519033ee45cdceb7dda356a18c497c1615a091b
Reviewed-on: https://gerrit.instructure.com/122785
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-08-16 19:50:18 +00:00
James Williams a463c4fc23 don't create migration issues for unreplaced link placeholders
if we sanitized away a link then don't make a confusing
migration issue

closes #CNVS-38688

Change-Id: I2129af0b459db52130f9204aa5f0b92fadaf23d7
Reviewed-on: https://gerrit.instructure.com/122782
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-16 19:22:41 +00:00
James Williams efc777277d don't delete manually created module items on re-import
test plan:
* create a module in a blueprint course
* sync to an associated course
* add a module item in the associated course

* change the module name in the blueprint
* sync to the associated course
* the moddule items in the associated course
 should not have been deleted

closes #CNVS-38655

Change-Id: I98127f54f72042e8a69b4ecc06a472ea73239745
Reviewed-on: https://gerrit.instructure.com/122933
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-16 19:13:38 +00:00
Cameron Matheson 4d247b274c graphql course permissions
closes CNVS-38594

Test plan:
  query course permissions using the graphql api

Change-Id: I0b13f8e866ad6fd7c023349a6464b0e2385c0e90
Reviewed-on: https://gerrit.instructure.com/122350
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Collin Parrish <cparrish@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2017-08-16 18:21:06 +00:00
Jayce Higgins 65c4a02a59 Hide quizzes2_export feature in prod, but allow in other envs
Change-Id: I99f4a24b745a99a28ebf0ccf0314217f9aeec247
Fixes: CNVS-38691
Reviewed-on: https://gerrit.instructure.com/122797
Tested-by: Jenkins
Reviewed-by: Hannah Bottalla <hannah@instructure.com>
Product-Review: Hannah Bottalla <hannah@instructure.com>
QA-Review: Hannah Bottalla <hannah@instructure.com>
2017-08-16 17:13:43 +00:00
David Mirabile 56a44ec98f spec: add tutorial spec to test description toggle
Change-Id: I59af17f32dca02e668e9504a83592ec4ea867aa2
Reviewed-on: https://gerrit.instructure.com/122872
Tested-by: Jenkins
Reviewed-by: David Tan <dtan@instructure.com>
Reviewed-by: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: David Mirabile <dmirabile-c@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
2017-08-16 17:01:47 +00:00
Spencer Olson c6cfe273e9 spec: remove qunit only from spec file
test plan:
* ensure Jenkins passes

Change-Id: I7965c7c8ba07cf6a31a3be0261d97bedebd012e5
Reviewed-on: https://gerrit.instructure.com/122960
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Tested-by: Jenkins
Product-Review: Spencer Olson <solson@instructure.com>
QA-Review: Spencer Olson <solson@instructure.com>
2017-08-16 16:58:43 +00:00
Cody Cutrer 6deba9988b bump after_transaction_commit
fixes CNVS-38494

Change-Id: I929a87349374be4f2d66dd05d6f18736b470d40c
Reviewed-on: https://gerrit.instructure.com/122617
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-16 16:50:52 +00:00
August Thornton f2bc3687e9 convert params to "unsafe" hash before filtering
fixes PLAT-2770

test plan:
• Go to any account/course settings page
• Click on the Apps tab
• Click on any LTI that populates within the App Center (I use 3DGameLab)
• Click '+ Add App'
• Click the 'Add App' button in the window that appears
• Verify app is added successfully

Change-Id: I060ed314423c841ff5d8ef12c46f2377f31b58b1
Reviewed-on: https://gerrit.instructure.com/122918
Tested-by: Jenkins
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2017-08-16 16:50:40 +00:00
Chris Hart 2dba660305 Resolve brandable CSS TODOs: _dropdowns.scss
Fixes: CNVS-38647

Test plan:

- Code reviewer: confirm Canvas CSS and assets compile
  ok.

- All reviewers:

  - Go to Conversations and activate the Courses dropdown
    menu. Confirm that the background color for the :hover
    state is var(--ic-brand-primary):
    https://cl.ly/080C3V2R1z2y

Change-Id: I9d55b1e89c7b67a2fbf432ecdff1687d99193cf7
Reviewed-on: https://gerrit.instructure.com/122510
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-16 16:40:59 +00:00
Collin Parrish 49bdb7e55a test graphql in selenium ui tests
closes CNVS-38575

test plan:
	makes sure basic functionality
	works in student context cards ui
	using graphql

Change-Id: I6da7b0db57a9940ad839f1fa822e41644c0be743
Reviewed-on: https://gerrit.instructure.com/122222
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins
Product-Review: Collin Parrish <cparrish@instructure.com>
QA-Review: Collin Parrish <cparrish@instructure.com>
2017-08-16 16:39:15 +00:00
Pam Hiett 8b5f63c4f6 Resolve CSS TODOs: vendor/bootstrap/_mixins.scss
Fixes: CNVS-38648

test plan:
- as a user navigate to locoal canvas dashboard ... use the tab
  key to activate the "skip to content" button
  - the box shadow has been removed that was a carry over from
    bootstrap styles
- now as an admin navigate to the theme editor - click any of the
  themes to launch the editor
- navigate to the "watermarks & other images" section... the
  "select image" link/buttons have the updated var vs the
  "lighten" style
  example: https://screencast.com/t/F0A2OMuaG

Change-Id: If27e4d61e7a053c207780728a97967f9de63619a
Reviewed-on: https://gerrit.instructure.com/122619
Tested-by: Jenkins
Reviewed-by: Jennifer Stern <jstern@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
2017-08-16 16:28:55 +00:00
Tyler Pickett f319f1f77f Run some async callbacks in process during course imports
Fixes: CNVS-38676

This was causing a storm of jobs and tons of duplicate advisory locks
during the import process, both of these things are unnecessary since
we're already in a background job.

Test Plan:
- Course Content Migrations still work
- There should be fewer jobs spawned during content migrations/imports

Change-Id: Ia29e2d4ba00a3f982404b834061822cae32e5364
Reviewed-on: https://gerrit.instructure.com/122763
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Tyler Pickett <tpickett@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
2017-08-16 16:28:10 +00:00
Omar Khan 399414b3ec Run javascript tests in headless chrome
Test plan: docker-compose run --rm karma yarn test

Change-Id: I316d80e7a1b712b0dda91a390c4dddeb09b3e6fb
Reviewed-on: https://gerrit.instructure.com/122776
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2017-08-16 16:11:52 +00:00
Tyler Pickett 77869467b2 Stop submissions from circularly updating assignments
Fixes: CNVS-38667

When Assignment#update_submissions is being called it's triggering
Submission#update_assignment to be called without indicating that we
don't need to update the assignment again, this patch fixes that so the
assignment update won't be circular.

Test Plan:
- Stuff still works

Change-Id: I7deb87081725396fa3cfebda25605238b9614a57
Reviewed-on: https://gerrit.instructure.com/122624
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Tyler Pickett <tpickett@instructure.com>
2017-08-16 15:55:45 +00:00
Rob Orton 6c96c55667 typo
Change-Id: I2c462127007155b9fb0c75e3e1361274e2ed02b1
Reviewed-on: https://gerrit.instructure.com/122911
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-16 15:30:52 +00:00
Jeremy Neander ac154d2cad fix 404 when loading new gradebook with hidden columns
fixes GRADE-197

test plan:
* create a teacher notes column for gradebook
* hide the teacher notes column
* open the web console and reload gradebook
* ensure the custom column data request completes successfuly
  * it returns a 200 response, not a 404

Change-Id: I32ede1df6d95490963c9ac2c94652cb81c34e164
Reviewed-on: https://gerrit.instructure.com/122874
Reviewed-by: Spencer Olson <solson@instructure.com>
Tested-by: Jenkins
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-16 14:18:20 +00:00
Transifreq 989a6dd561 update da translation
Change-Id: I4dcda998690b0dbafc397bd12b27ffbb1efca6f2
2017-08-16 05:13:01 -06:00
Cody Cutrer 080c35e171 add another missing index supporting a foreign key
Change-Id: Ib57a09fe622314d5e717077e1f6ccefd9afe401b
Reviewed-on: https://gerrit.instructure.com/122778
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-15 22:18:44 +00:00
Brent Burgoyne 1fa616ad0f include user full name in recipient search api
closes CNVS-38670

test plan:
- perform a search with the recipient search api
  (/api/v1/search/recipients)
- result should include full_name for users

Change-Id: I1ac89ac35448bf3ca68b754ca5fefb794e97d4e3
Reviewed-on: https://gerrit.instructure.com/122709
Tested-by: Jenkins
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2017-08-15 22:10:58 +00:00
Jeremy Neander 74be89e10c replace effective due dates in old gradebook
closes GRADE-15

test plan:
* heavily smoke test Old Gradebook with grading periods

Change-Id: Idca8d0a448907b36216ded36d37a96d4bd6cccf6
Reviewed-on: https://gerrit.instructure.com/122661
Tested-by: Jenkins
Reviewed-by: Sheldon Leibole <sheldon@siimpl.io>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-15 21:55:49 +00:00
David Mirabile 5cc25ecae5 spec: add additional specs to tutorial specs
Change-Id: I46eaf15956910d0e4cde07258cceebb55b056eb2
Reviewed-on: https://gerrit.instructure.com/122816
Tested-by: Jenkins
Reviewed-by: David Tan <dtan@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-08-15 21:06:25 +00:00
James Williams c63feb096f api doc: fix blueprint restriction link on courses api
Change-Id: I5958c1e7c8980824c7c2625b86200751f88bd36b
Reviewed-on: https://gerrit.instructure.com/122828
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-15 19:56:44 +00:00
Jeremy Neander 978fb90b25 replace effective due dates call in SRGB
closes GRADE-132

test plan:
* heavy smoke test SRGB with grading periods, especially:
  * filtering assignments by grading periods
  * filtering assignment list by changing student
  * grade locking (closed grading period grade protection)

Change-Id: Iffbb784a91786d1a9cc013933c3c8fe85b90c4b5
Reviewed-on: https://gerrit.instructure.com/121872
Tested-by: Jenkins
Reviewed-by: Sheldon Leibole <sheldon@siimpl.io>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-08-15 18:52:11 +00:00
Rob Orton 17cf65636c add 'restrict_enrollments_to_section_dates' to section api
fixes gh-1095

test plan
 - api should have restrict_enrollments_to_section_dates

Change-Id: I4b3eb38bafefe09c1fbaccc95cd4450c425a821a
Reviewed-on: https://gerrit.instructure.com/122770
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2017-08-15 18:28:44 +00:00
Gary Mei 82027e1084 Update new gb history to follow designs
closes GRADE-166

Test Plan
- Use new gb history, all functionality should be the same as before
    this.
- Ensure this didn't add any issues that weren't already present.
- Current known issues are that you can search by an invalid date
    range. The Filter button is also not disabled when an invalid
    date is entered.

Change-Id: I72ba51f0c2b3c1e59076357b17e81b6946e7b9db
Reviewed-on: https://gerrit.instructure.com/122135
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Goodwin <mattg@instructure.com>
2017-08-15 18:03:50 +00:00
Jeremy Stanley 030c2f422f password reset tokens expire after two hours (configurable)
test plan:
 - click "Forgot password" on the login screen and enter
   a valid login for a user
 - the reset password link sent to the user should work
   as expected (you can use /users/X/messages as an admin
   in a separate browser to get the link for testing purposes)
   - after the password is reset, you should be returned to the
     login screen with a flash message indicating your password
     was reset.
 - click "Forgot password" again, but wait > 2 hours
   before trying to use the reset-password link
   (or change the timeout by using the console to, e.g., 5 minutes:
    Setting.set('password_reset_token_expiration_minutes', '5')
    Note that this expiration applies only to password resets
    requested after the setting is changed.)
 - you should get a message indicating the code is no longer
   valid

fixes CNVS-2757

Change-Id: I6c3beec9a5b59e089997c46d518645357eec3b08
Reviewed-on: https://gerrit.instructure.com/119868
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2017-08-15 17:08:19 +00:00
Chris Hart d29e3b0b4f Resolve brandable CSS TODOs: bootstrap/_variables.scss
Fixes: CNVS-38649

Test plan:

- Replaced the one place the $btnPrimaryBackgroundHighlight
  Sass variable was being used with the new CSS variable,
  --ic-link-color, then was able to delete the
  $btnPrimaryBackgroundHighlight variable altogether.

- Code reviewer and QA, please make sure Canvas' CSS compiles
  with no errors. The styles that are being touched here
  aren't being used within the app right now, so there is
  nothing to check in the browser.

Change-Id: Ia80da0d2b7f1e297abc603f363f0a1d31e68aee4
Reviewed-on: https://gerrit.instructure.com/122644
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-15 17:02:14 +00:00
Jeremy Putnam b69f8ae3b6 spec: add course people page student context card name check
Change-Id: Id102e8320b246d8573fed9c6c5fa0c00afd67e1e
Reviewed-on: https://gerrit.instructure.com/121642
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-15 16:03:30 +00:00
Simon Williams 3dadfdba88 add from_name to CommMessage api
closes CNVS-38354

test plan:
- hit the CommMessages api
- it should return `from` and `from_name`

Change-Id: Ie06a09e778a3f0098a1ae80cd5bfc237014715bb
Reviewed-on: https://gerrit.instructure.com/120316
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-08-15 15:47:22 +00:00
Jeremy Putnam 42fb9224fa spec: add course section page student context card name check
Change-Id: I39aeeb0b3e38617a0fbc84ea34fba92139dbeb2d
Reviewed-on: https://gerrit.instructure.com/121678
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-15 14:58:46 +00:00
Omar Khan d699152ae4 Don't use account_id in plugins controller spec
The column doesn't exist in vanilla canvas

Change-Id: I8566959a17fcfcadfa263f4e10ad333da3ddb964
Reviewed-on: https://gerrit.instructure.com/121053
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-15 14:16:18 +00:00
Transifreq c0a8b97f3f update da translation
Change-Id: Ib2589ffa3977adaadf3a3f32315f0eb13014d815
2017-08-15 05:13:09 -06:00
Simon Williams 48b208c743 mark content imports as expired after X days
closes CNVS-38163

test plan:
- run Setting.set('content_migrations_expire_after_days', '1')
- create some content imports if you don't already have any
- ContentMigration.where(id: ContentMigration.last.id).
    update_all(created_at: 2.days.ago)
- visit the course content import page
- it should show as unavailable

Change-Id: I0491a1f1e292c0d9ded2ca202bd2cd997839a4bf
Reviewed-on: https://gerrit.instructure.com/118714
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-08-15 03:29:19 +00:00
Gerrit Code Review 720097d648 Merge "Merge branch 'dev/grid-extraction-v2'" 2017-08-15 00:17:00 +00:00
Nathan Mills 8960204434 lti 2.1 certification changes
update the ims-lti gem with the new re-registration service name
remove the OAUTH2 algorithim for the security profile
support OAuth2 for re-registration

fixes PLAT-2721, PLAT-2722

test plan:
LTI2 launches should still work
re-registration should work with OAUTH2 now
the tool consumer profile shouldn't have an algoritim specified for
the OAUTH2 WS security profile

Change-Id: I00d3600da3296ab24d361c31b0599b93f96e715c
Reviewed-on: https://gerrit.instructure.com/118978
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
2017-08-15 00:03:45 +00:00
James Williams 1af5caec3a don't show "join this course" link if disallowed on account
test plan:
* create a course
* change the setting to allow a "Join this course" link
 and "include this course in the public course index"
* change the account settings to set "allow self-enrollment"
 to "never"
* the "join this course" link should not be shown on
 the course home page

close #CNVS-38524

Change-Id: I6f935efe63c39f56e51daccfbd045d058fe20862
Reviewed-on: https://gerrit.instructure.com/122291
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-14 20:30:49 +00:00
Simon Williams 3f1c585a2f shorten list of tags to rewrite to api urls
there is a measurable cost associated to this step of api content
transformation, so only run it on types of url attributes that might
actually need to be rewritten (ignore mathml href's)

fixes CNVS-38442

test plan:
- create a submission with a lot of <p> tags
- request it from the API
- performance should be better
- now create a link/image to something root-relative in canvas
- request it from the api
- it should come back as absolute

Change-Id: I21fc42db25e84e70a0d19db7dc271cfd46801ecb
Reviewed-on: https://gerrit.instructure.com/122400
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-08-14 20:06:57 +00:00
Cody Cutrer 2a11facc7b pass --frozen-lockfile for yarn install during build process
Change-Id: I495d02544e43ac721346e4556140874f600d06c3
Reviewed-on: https://gerrit.instructure.com/122662
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-08-14 18:58:44 +00:00
Derek Bender 4ec005d23e update README for docker known issues
Change-Id: I4a30c225b190c3a2ca0d9181150ca1fe4b584dfb
Reviewed-on: https://gerrit.instructure.com/122656
Reviewed-by: Neil Gupta <ngupta@instructure.com>
Tested-by: Jenkins
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
2017-08-14 18:43:47 +00:00
James Williams b7ab72ceeb master courses: descriptions with file links shouldn't break
test plan:
* in a blueprint course create an assignment, discussion and
a quiz all with a link to a file in their description
* lock content for all of them
* sync to a child course
* in the child course, should be able to edit dates without
getting an error

close #CNVS-38520

Change-Id: I0eb7331094871d8e2698ee1357fa2c0c16f3bd46
Reviewed-on: https://gerrit.instructure.com/122384
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-14 17:05:49 +00:00
Pam Hiett 557a1688af Resolve CSS TODOs: _buttons.scss
Fixes: CNVS-38643

test plan:
- as an admin navigate to an account and select "themes" from the
  sub-nav (choose any of the default themes)
- within the themes preview pane on the right hand side there view
  the "secondary" button example... when in normal contrast the
  background and text color should be using brand variables...
  now exit theme editor and as the same user turn on HC and
  navigate back into the theme editor (you will get a warning
  that you cannot preview... no worries) within the preview
  pane inspect the same "secondary" button and it should now
  be using hex colors for the background and text color
  example: https://screencast.com/t/5NtBwIOgWr

Change-Id: I85cfd8e629e5be5d3759e506a93013c49f7678ed
Reviewed-on: https://gerrit.instructure.com/122522
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-14 17:00:53 +00:00
Pam Hiett b01e7e7c55 Resolve CSS TODOs: _ic-super-toggle.scss
Fixes: CNVS-38646

test plan:
- as an admin navigate to the account theme editor
- select *any* of the default themes
- within the preview pane of theme editor - scroll down to
  "switch-style checkbox"
- the focus state has been updated - example of new look:
  https://screencast.com/t/IM2oRSLdEpO

Change-Id: Ifaa47fa3b5dae931b4587b654853a4f6e0347bfc
Reviewed-on: https://gerrit.instructure.com/122498
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-14 17:00:46 +00:00
Pam Hiett 9165c0a0ff Resolve CSS TODOs: _ic-range-input.scss
Fixes: CNVS-38645

test plan:
- as an admin navigate to the account theme editor
- select *any* of the default themes
- select the "watermakr and other images" section
- the watermark opacity slider uses the "range-input"
  styles... move the slide back and forth to see the
  updated focus & active styles

  example of new styles: https://screencast.com/t/tlnqb5eN

Change-Id: I58bcba9d1c62f79697a8b6c8323df681e7e893f6
Reviewed-on: https://gerrit.instructure.com/122493
Tested-by: Jenkins
Reviewed-by: Chris Hart <chart@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
2017-08-14 17:00:36 +00:00
Chris Hart 9c544bfc5d Fix missing peer review reminder button icon
Fixes: CNVS-38371

Test plan:
- As a teacher/admin, create a course assignment or
  discussion that has peer reviews
- As a student in that same course, complete the
  assignment
- As a teacher/admin, go to the assignment, then click
  `Peer Reviews` in the right sidebar
- Assign a second student to peer review the assignment
  completed by the first student
- Reload the page, then hover over the incomplete peer
  review under the second student's name
- Confirm there is a bell/alert button now showing to
  remind the student he/she needs to complete the
  peer review:

  https://cl.ly/2P033s2w3L2O

Change-Id: I123be5c4bd9001e89a53c24a2924d5e2adbb0920
Reviewed-on: https://gerrit.instructure.com/122016
Tested-by: Jenkins
Reviewed-by: Stephen Jensen <sejensen@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
2017-08-14 17:00:04 +00:00
Chris Hart b039529663 Resolve brandable CSS TODOs: _ic-forms.scss
Fixes: CNVS-38644

Test plan:

- Code reviewer: confirm Canvas CSS and assets compile
  ok.

- All reviewers:

  - Confirm that in normal contrast, the newer Canvas
    CSS form inputs have the following :focus state
    (see /styleguide):
    https://cl.ly/3B3j1I3M1I1H

  - Confirm that in HIGH contrast, the newer Canvas
    CSS form inputs have the following :focus state
    (see /styleguide):
    https://cl.ly/0a473P412824

Change-Id: Iaa791c20f71fa4ce2f7b8ffdcd4eac3665f71768
Reviewed-on: https://gerrit.instructure.com/122495
Tested-by: Jenkins
Reviewed-by: Pam Hiett <phiett@instructure.com>
QA-Review: Dan Sasaki <dsasaki@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
2017-08-14 16:59:50 +00:00
James Williams 1c516e9eb7 master courses: allow generated quiz questions when locked
test plan:
* create a question bank in a blueprint course
 with a multiple choice question
* create a quiz with a quiz group linked to
 the question bank
* lock the quiz
* sync to an associated course
* should be able to preview and take the quiz
 and have answers scored

closes #CNVS-38629

Change-Id: Iab770823411ad68dcf293ba2dc53c08bdce729f0
Reviewed-on: https://gerrit.instructure.com/122571
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: David Mirabile <dmirabile-c@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-08-14 16:12:06 +00:00