Commit Graph

4293 Commits

Author SHA1 Message Date
Colleen Palmer e84bd4dd80 Revert and bring InstIcons into Canvas
closes: CNVS-32953

This commit re-introduces Instructure Icons into Canvas.
Due to the range in aesthetic impact of including both line
and solid icons, the change is expansive and will be refined
in subsequent commits. The purpose of this commit is to:

- Make InstIcons available in Canvas allowing the use of the
  react components

- Replace the current icon font with the new InstIcons font

- Allow for use of both 'Line' and 'Solid' icon variants

- Update the styleguide to reference the InstIcons github
  documentation for examples

- Remove font custom from Canvas

Icons changed to line versions in Canvas:
- icon-compose (view on Dashboard card)
- icon-info (view on global notification)

- Updated icons to be larger for better visibility
  (our old font was using a small font size)

- Updated font-size is now relative vs fixed, so better a11y

Test Plan:

- On compiling, icons in Canvas should now be changed to the
  corresponding Instructure Icons as can be seen here
  http://instructure.github.io/instructure-icons/

- The icon default displaying in Canvas should be solid icons.
  If the variant "icon-Line" is added to an icon's css class,
  it should display as line. For example, in the case of
  <i class="icon-edit"></i>, adding
  <i class="icon-edit icon-Line"></i> would result in a line
  version of the edit icon displaying

- As a developer, you should be able to use InstUI react icons

- The rake task `bundle exec rake icons:compile` should no
  longer exist

- The styleguide should no longer display example icons, but
  should now include a link to the Instructure Icons github
  documentation

Change-Id: I9780332de9fdf937b35caabadc2b2ee615892a43
Reviewed-on: https://gerrit.instructure.com/94175
Reviewed-by: Pam Hiett <phiett@instructure.com>
QA-Review: Dan Sasaki
Tested-by: Jenkins
Product-Review: Kyle Follett <kfollett@instructure.com>
2016-11-29 20:52:54 +00:00
wdransfield d66e35e4d1 Create OrginalityReport Api Show endpoint
Fixes PLAT-1908

Test Plan:
- Create an originality report and note the
  id. Also note the assignmet id for the
  associated attachment's assignment.
- Do a GET request to /api/v1/assignments/
  <assignmnet_id>/originality_report/
  <originality_report_id>
- Verify the specified originality report
  is returned in the response body.

Change-Id: Icf584ed00305de8d78134ef85fca4e6003735f3e
Reviewed-on: https://gerrit.instructure.com/94739
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Tested-by: Jenkins
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2016-11-29 19:54:08 +00:00
wdransfield 9d3f47b6c6 Create originality report update endpoint
Fixes PLAT-1907

Test Plan:
- Create an originality report and note the
  id. Also note the assignmet id for the
  associated attachment's assignment.
- Do a PUT request to /api/v1/assignments/
  <assignmnet_id>/submissions/:submission_id/
  originality_report/<originality_report_id>
  with the following
  in the body:
    {
     "originality_report": {
       "originality_score": 0.3
      }
    }
- Verify the originality report's
  originality score is updated
  accordingly.
- Repeat the request with:
  - 'originality_report_file_id'
  - 'originality_report_url'
  - 'originality_report_lti_url'
  and verify the report is updated
  accordingly. Note that 'originality_report_file_id''
  will require a valid attachment id.
- Attempt to update multiple values
  at once and verify the report is
  updated correctly.
- Verify the action does not allow setting
  the originality_score to a number not in th
  0..1 range.

Change-Id: I8ef00fd60c34e3bb79c6c531e002d4cab132ae2c
Reviewed-on: https://gerrit.instructure.com/94714
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Tested-by: Jenkins
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2016-11-29 19:37:40 +00:00
wdransfield e3de0ea462 Create OriginalityReport Api Create endpoint
Fixes: PLAT-1906

Test Plan:
- Create a new assignment with submission type
  online with file upload.
- As a student submit a document as a
  submission for the assignment and get
  the Attachment id from the submission.
- Make a post request to
  "/api/v1/assignments
  /:assignment_id/submissions/:submission_id/originality_report" with
  the following param in the body:
    "originality_report": {
       "external_tool_id":<id of the tool you installed>,
       "originality_score": <any value between 0 and 1>
    }
- Verify a new OriginalityReport is created.
- Verify create action fails if not all required
  params are given
- Verify create action sets optional params correctly.
- Verify the action requires all specified resources
  exists (file_id, and originality_score).
- Verify the action does not allow creating a tool with an
  originality_score not in the 0..1 range.
- Verify the action requires the attachment to be
  part of the submission.
- verify the action requires the submission to be
  part of the assignment.

Change-Id: Id5b0b61d399e4330c8c815bd4715735907f7cc6b

Create OriginalityReport Api Create endpoint

Fixes: PLAT-1906

Test Plan:
- Create a new assignment with submission type
  online with file upload.
- As a student submit a document as a
  submission for the assignment and get
  the Attachment id from the submission.
- Make a post request to
  "/api/v1/assignments
  /:assignment_id/submissions/:submission_id/originality_report" with
  the following param in the body:
    "originality_report": {
       "external_tool_id":<id of the tool you installed>,
       "originality_score": <any value between 0 and 1>
    }
- Verify a new OriginalityReport is created.
- Verify create action fails if not all required
  params are given
- Verify create action sets optional params correctly
- Verify the action requires all specified resources
  exists (file_id, and originality_score).
- Verify the action does not allow creating a tool with an
  originality_score not in the 0..1 range.
- Verify the action requires the attachment to be
  part of the submission.
- verify the action requires the submission to be
  part of the assignment.

Change-Id: Id5b0b61d399e4330c8c815bd4715735907f7cc6b
Reviewed-on: https://gerrit.instructure.com/94476
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2016-11-29 19:17:51 +00:00
Transifreq bc31b6da9e update tr translation
Change-Id: I87a99a8819ef1a9d4b6b222b66cabbbc7bb7c54a
2016-11-26 06:09:21 -07:00
Transifreq 33af6514ab update fr-CA translation
Change-Id: Idffd029890ea6cbec98ec664aa59443a6424eff9
2016-11-24 05:23:43 -07:00
Cody Cutrer d8070128c2 add fr-CA
fixes CNVS-33525

Change-Id: Ib367aa590b350412bc86e6132194f059e7661154
Reviewed-on: https://gerrit.instructure.com/96026
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2016-11-23 20:29:07 +00:00
Cody Cutrer 7f2a5bad93 fix update/delete_all with joins in Rails 5
Change-Id: I7765cce5f633277dddbf491913ab9062e4106000
Reviewed-on: https://gerrit.instructure.com/95668
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-11-23 16:12:42 +00:00
Matthew Sessions 1ddb0b7276 Add endpoint to restore deleted conversations
Fixes CNVS-30796

Test Plan:
  - With the id of a conversation_message and the
    user_id and the conversation_id
  - Hit PUT /api/v1/conversations/restore and include
    user_id=<user_id> and
    message_id=<conversation_message_id> and
    conversation_id=<conversation_id>
  - After the response returns go to the UI and you
    should see the conversation/message reappear in
    the UI

Change-Id: I4d5858de716c87c72cf99a382c7205056d614f24
Reviewed-on: https://gerrit.instructure.com/87406
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: David Tan <dtan@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2016-11-23 14:07:05 +00:00
Keith Garner b2e0eca8c4 add crocodoc support week helper endpoint for support
An endpoint has been added for site-admins to be able to resubmit broken
crocodoc documents to crocodoc. It can look at a whole school's
documents that are in an error state or a specific

fixes CNVS-33022

test plan:
 - access /api/v1/support_helpers/crocodoc/shard to make sure it kicks
   off a new shard fixer job. It should send you a success email.
 - access
   /api/v1/support_helpers/crocodoc/submission?assignment_id=5&user_id=6
   to make sure it kicks off a new shard fixer job. It should send you a
   success email.
 - make sure that endpoint is only accessible when you are logged in as
   a site admin user

Change-Id: I607260434eddb44e1e92ffba9254553363908d81
Reviewed-on: https://gerrit.instructure.com/93840
Tested-by: Jenkins
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-11-22 17:34:02 +00:00
Transifreq 5bf94bbdbf update pt translation
Change-Id: I4c11b4fa0cb56f55e1ba0e26740c7db93ae81f7d
2016-11-22 05:28:51 -07:00
Cody Cutrer 0c77ea4a0c fix ActiveModel::BetterErrors for Rails 5
Change-Id: I96c6b50850dfcee5072616c54f2a9207734de069
Reviewed-on: https://gerrit.instructure.com/95669
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-11-21 23:18:59 +00:00
Cody Cutrer 286893049c fix PostgreSQLAdapter#indexes in Rails 5
see 6d62502523

Change-Id: I94610ca5bc5235f7d8c3d2b73e9f429f681a8eee
Reviewed-on: https://gerrit.instructure.com/95667
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-21 21:15:21 +00:00
Clay Diffrient 0fb027ba2f Add server side persistence to dashboard movement
closes CNVS-32614

Test Plan:
  - Enable dashboard card reordering
  - Move dashcards around via drag n drop
  - Refresh the page
  - Cards should maintain the positions you moved them
    to

Change-Id: I4c465b50698c4cc46e9a9418b8f62e137e2519cf
Reviewed-on: https://gerrit.instructure.com/92748
Tested-by: Jenkins
Reviewed-by: Felix Milea-Ciobanu <fmileaciobanu@instructure.com>
QA-Review: David Tan <dtan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2016-11-21 20:53:43 +00:00
Cody Cutrer abed5fc15c a few minor Rails 5 fixes
Change-Id: I6236c2bc4ce31fbcf501dcf16ad537e56a2a555a
Reviewed-on: https://gerrit.instructure.com/95674
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-21 17:23:15 +00:00
Transifreq 0b14be209f update nl translation
Change-Id: If9f6c2e7685138c59f3ff5165d5686e4b42a434c
2016-11-20 05:24:04 -07:00
Transifreq 0af89591c4 update mi translation
Change-Id: I40b6074bef6f940eb6586e973f34420144badfc1
2016-11-20 05:22:00 -07:00
Transifreq aa542ca7eb update fr translation
Change-Id: I98bdd47caf0782010a4f1c0e60191f34ed0ef627
2016-11-20 05:19:53 -07:00
Transifreq 7851f7f30e update zh-Hant translation
Change-Id: I35efa4075e619858ccd8a3a2b852856dce82f9d0
2016-11-18 16:34:12 -07:00
Transifreq 8d73a2b2d9 update zh-Hans translation
Change-Id: Id4df1eb49d7493ec627bcd409d5d5665655774cd
2016-11-18 16:32:54 -07:00
Transifreq 7fb9568633 update sv translation
Change-Id: I54f408c60a76a236f1e840438ba32acdd7855b2f
2016-11-18 16:31:37 -07:00
Transifreq 98b13907fa update ru translation
Change-Id: I49365a91f1987cde88e187ec43b0f779c14706b0
2016-11-18 16:30:23 -07:00
Transifreq ef1ed242df update pt-BR translation
Change-Id: Ibeba39ce46674067c7bf0bb4fc827fa04599b86b
2016-11-18 16:29:00 -07:00
Transifreq 46e6c05176 update pt translation
Change-Id: Ic6d5fa1e120a856d6ed19582816541435bdcbd9e
2016-11-18 16:27:50 -07:00
Transifreq 6cb15413f0 update pl translation
Change-Id: Idb2b4c978b90c1675254d0aaa6ddf10442ca089c
2016-11-18 16:26:39 -07:00
Transifreq 20fc52b919 update nl translation
Change-Id: Ib81836ee8ad6631888938a983dc7bce18dcec517
2016-11-18 16:25:27 -07:00
Transifreq 2cb605d3be update nb translation
Change-Id: Icf6f1f19638a4216355fc604c8f36a8e37e21171
2016-11-18 16:24:15 -07:00
Transifreq 5922892096 update mi translation
Change-Id: I9396c3d97213af61807231ffab59e96b5b11fe4c
2016-11-18 16:23:01 -07:00
Transifreq f3b24c6b03 update fr translation
Change-Id: Id17611a1b1bdce83c5aa81b21074e088392d1cd5
2016-11-18 16:20:40 -07:00
Transifreq 9685621a26 update es translation
Change-Id: Iab4523b4893119d936ff4ad566885b4afb5a437c
2016-11-18 16:19:21 -07:00
Transifreq 9a5a0d3da4 update en-GB translation
Change-Id: Ia425a80cf5b02acafa7bf365b6f2684df41e816f
2016-11-18 16:17:47 -07:00
Transifreq 1ec7b20043 update en-AU translation
Change-Id: I3f651e2a44a34e655d4db61eb691fc5f5cbdb6a6
2016-11-18 16:16:24 -07:00
Transifreq c4677bc356 update de translation
Change-Id: I0842ec0d6319871b76ca28963eb3c3d22c413ca9
2016-11-18 16:15:00 -07:00
Transifreq 9e7266537d update da translation
Change-Id: I85d328f568587b5a6058f69d7bca319be8bd736b
2016-11-18 16:13:39 -07:00
Transifreq a3fdac1d99 update ar translation
Change-Id: Iaa0c5c3369b6df99355ac1b2d11f6b9ff814aba1
2016-11-18 16:12:22 -07:00
Cody Cutrer bcba550d6a convert i18n_extract gem to prepend instead of alias_method_chain
refs CNVS-33377

Change-Id: I549f1fff6fda20a8f9c7c1cc3fb694635b7b2eb8
Reviewed-on: https://gerrit.instructure.com/95501
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-18 16:37:27 +00:00
James Williams f22e8b3f47 master courses: create master content tags
gives a place for us to keep track of changed items for now
(and soon the restrictions for content after copy)

closes #MC-7

Change-Id: I7bbd6e371528a06ea93181b0f4d91f451ae99d52
Reviewed-on: https://gerrit.instructure.com/95502
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-11-18 15:38:57 +00:00
Transifreq a28726065e update zh-Hant translation
Change-Id: I6155cb40fbebcf48d338eb121a8f095e7f445362
2016-11-18 05:35:25 -07:00
Transifreq dc50fdff71 update zh-Hans translation
Change-Id: I886132526a0d5462c6e76f9955d68a62389bfd53
2016-11-18 05:34:09 -07:00
Transifreq bafeb318e6 update nl translation
Change-Id: Idf25d1bb9ce8fdb88ccd418a6ad7ff12f7c905f8
2016-11-18 05:27:45 -07:00
Transifreq b35b685204 update nb translation
Change-Id: Iebf671bbede726422776e3ee90eab258ed04eee6
2016-11-18 05:26:33 -07:00
Cody Cutrer 884534ffa5 Rails 5: fix Rails version migration deprecation warning
also pins all migrations to Rails 4.2 semantics

Change-Id: I386566f7a1f3e3e8aa31675f467c87c443457aee
Reviewed-on: https://gerrit.instructure.com/95571
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-17 23:46:22 +00:00
Cody Cutrer 5e0d346fa6 Rails 5: put RequestThrottle in the right place
ParamsParser isn't used in Rails 5 anymore (I think they just moved
it out middleware)

Change-Id: I5efb9cb779e6bd9863fd4093629b9415174269ff
Reviewed-on: https://gerrit.instructure.com/95546
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-11-17 23:20:25 +00:00
Cody Cutrer 67bbe8ca1e Rails 5: add temporary shim to ignore attr_accessible
Change-Id: I77062891eb47aa60f4038b51dfd57f1a63f8be69
Reviewed-on: https://gerrit.instructure.com/95540
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-17 23:20:05 +00:00
Cody Cutrer 4570e1e322 Rails 5: no need to set money precision
they raised minimum postgres to 8.3, and changed the code to assume
the higher precision

Change-Id: I8f12004bb098da5f3f37ebf48708f3ee18833a21
Reviewed-on: https://gerrit.instructure.com/95545
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-11-17 22:53:12 +00:00
Cody Cutrer 2513b2de82 don't configure protected attributes in Rails 5
it doesn't even exist

Change-Id: I68e34ae15c935a7b27ee1112a3af9f292e3a0bb4
Reviewed-on: https://gerrit.instructure.com/95531
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-11-17 22:52:13 +00:00
Transifreq 70ad7bdd5e update zh-Hant translation
Change-Id: Ifa196b97a3f7a320593c428e2b0ce69710cbb43d
2016-11-17 05:36:24 -07:00
Transifreq 08d22427fb update zh-Hans translation
Change-Id: I81a1bff0486ef1ba6a68fc20a68bb1072da7110e
2016-11-17 05:35:01 -07:00
Transifreq 85cd46e8ab update sv translation
Change-Id: Ic1246eb294f29f30f2e6e1eef8465d6071185dc4
2016-11-17 05:33:45 -07:00
Transifreq 773c212660 update nl translation
Change-Id: I280558f07677895e13508db2a43805769d13eadd
2016-11-17 05:28:07 -07:00