Commit Graph

5361 Commits

Author SHA1 Message Date
Transifreq 0e8d9aae6d update tr translation
Change-Id: If4ab670c89314ed24386f530ef74fad25e64e6ed
2018-02-22 06:08:58 -07:00
Transifreq 2245d35a96 update sv translation
Change-Id: I0d88eaa0c71657b12eea97987f7d5f05ca5094c1
2018-02-22 05:39:37 -07:00
Marc Alan Phillips 953f6fbfd3 Add Results Services Endpoints
Create endpoints for the results service, using new api
namespace for controllers and serializers. Also introduce
the services directory in the root of the app folder.

closes PLAT-3007

Test Plan:
 - Create a line item and add some scores
 - Query for the results using the result endpoint
   - Should return a paginated list
 - Query for a result with a user_id in mind
        - Use both lti_user_id and user_id
        - Should return a single result object
          of the user
- Find a result by the id of the result

Change-Id: I5af4b679bcecfc0deef2876a897bc93d739057b6
Reviewed-on: https://gerrit.instructure.com/138870
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Marc Alan Phillips <mphillips@instructure.com>
QA-Review: Marc Alan Phillips <mphillips@instructure.com>
2018-02-21 22:24:24 +00:00
Cody Cutrer 723e49ebf6 exclude certain types from OID loading
we don't use ranges, enums, or domains, so don't use slow queries
to find out about them

Change-Id: I3ce8ba7cdfe3f489df393bc41ae7af775b922df7
Reviewed-on: https://gerrit.instructure.com/141536
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-02-21 20:51:09 +00:00
Jeremy Stanley 118c552002 allow unicode characters submission zip files
test plan:
 - have an assignment that accepts file uploads
 - have a student with non-ASCII characters in the name
   (e.g., accented or Japanese, etc.)
 - submit as the student
 - as the teacher, on the assignment page right sidebar,
   download submissions (ensure jobs are running)
 - the non-ASCII characters should not be filtered out
   of the student's name in the filename

notes:
 - spaces and commas and hyphens, etc., will still
   be filtered out of names; this was done for
   other reasons and has not changed. the difference
   is we use [[:word:]] instead of \w, which includes
   word-like Unicode general categories and not just
   alphanumerics
 - windows explorer prior to windows 8 does not
   properly support unicode filenames in zip files.
   there's not much we can do about this, other than to
   suggest using a third-party zip program that does.
   (ASCII filenames are still handled correctly)
 - the student's name is not included if anonymous grading
   is turned on

fixes ADMIN-770

Change-Id: I1cb06a4277ee330e02dabab1d7d7cae01d80822a
Reviewed-on: https://gerrit.instructure.com/140996
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
Tested-by: Jenkins
QA-Review: Jon Willesen <jonw+gerrit@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2018-02-21 16:08:36 +00:00
Transifreq 0afe524e9d update nn translation
Change-Id: Ic3df20ea06ebc1d17b4e4eb956d10adfd412e82b
2018-02-21 06:09:21 -07:00
Transifreq 74858ca92f update ko translation
Change-Id: Idc316717e3cb20a7a5b5aa218f72c26f6c58da21
2018-02-21 06:08:20 -07:00
Cody Cutrer 761723cdad move TypeMapInitializerExtension earlier in the boot process
so that the connection to the default shard catches it. also
stop using the Rails 4 location of it

Change-Id: Iec213127458d77d12b98fd9a8f02fec7f74f1cc4
Reviewed-on: https://gerrit.instructure.com/141434
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-02-21 00:03:55 +00:00
Transifreq 9e9d0947a4 update tr translation
Change-Id: I8052c1a17027fea66c7758159dd41d93c9cebdd3
2018-02-20 05:58:33 -07:00
Transifreq 4e445c846d update is translation
Change-Id: I91d1850b9cf9dff2ba4fadca7102ff1518ad3e21
2018-02-20 05:22:23 -07:00
Transifreq fce955e4eb update tr translation
Change-Id: I4726d8e94d586bb42410acbd4f1f4bfa6eed7ec1
2018-02-18 06:03:00 -07:00
Transifreq 385097c415 update nn translation
Change-Id: I7718bc8acd34f53877d109b7fbfab89be572ac88
2018-02-17 06:03:56 -07:00
Transifreq eb51e6b954 update zh-Hant translation
Change-Id: I7a8d092ef5b6a7eaf65306febe75b8df24303e3c
2018-02-17 05:47:39 -07:00
Transifreq 02c3b4be41 update zh-Hans translation
Change-Id: Ice858516c89b1ac596a620bd01cc34e1cc1cd890
2018-02-17 05:46:26 -07:00
Transifreq 2f2f069018 update sv translation
Change-Id: I722c1804c0546b3d46b5c637b3e5bee6784fc590
2018-02-17 05:45:12 -07:00
Transifreq 405c5c9cae update ru translation
Change-Id: Iabf4ebd609f24d1c411fc2198cc8a642c47cf3dd
2018-02-17 05:44:07 -07:00
Transifreq 1d81cc79e2 update pt-BR translation
Change-Id: I3a47c1c18d7af046e9ff90ea9ee13fdfe550f4b9
2018-02-17 05:42:59 -07:00
Transifreq 5cbf198405 update pt translation
Change-Id: I00bf8337b4758afc627e51749ec33e3a7de978e7
2018-02-17 05:41:55 -07:00
Transifreq 586b0adb20 update pl translation
Change-Id: I8b8f50506af235812846fe0c82f0fe500662cb9e
2018-02-17 05:40:51 -07:00
Transifreq 823b3ecdff update nl translation
Change-Id: I520f98a2f4e568d2be2854be7d0f7b704a3793fa
2018-02-17 05:39:45 -07:00
Transifreq 2760820825 update nb translation
Change-Id: I9a4e523b9756afa43837bc0d2512f642a0303957
2018-02-17 05:38:39 -07:00
Transifreq 13f1b00506 update mi translation
Change-Id: Idebdf6dd0662a3ccb729c42b3b28fc64c4bb301a
2018-02-17 05:37:31 -07:00
Transifreq 8691a4c979 update ja translation
Change-Id: I3762c5d5b7b051f393410739ff0c284ab8014a58
2018-02-17 05:36:20 -07:00
Transifreq 803c9f92d5 update it translation
Change-Id: I4779334eb708620983d6a3bd0bb3838452e23e4a
2018-02-17 05:35:07 -07:00
Transifreq f39ee561d5 update ht translation
Change-Id: I9a5d5638ffff6922b25930e2baa666fe7b5ff5a2
2018-02-17 05:33:24 -07:00
Transifreq 5d3c949f3a update fr-CA translation
Change-Id: I716c6947f2be6fc6a5fe5e87e0ff6a25776eddc2
2018-02-17 05:32:25 -07:00
Transifreq de9f0e30d8 update fr translation
Change-Id: Ia13941a2e934c5c5a3696b98db5f2bcf58a11de6
2018-02-17 05:31:23 -07:00
Transifreq 9ba6fc66cd update es translation
Change-Id: Ic74970fc442bebc9f00b6cd662a3549b21e0a8b8
2018-02-17 05:30:19 -07:00
Transifreq 1a26c53e0b update en-GB translation
Change-Id: I7b4361483e716e52ec4aa13b7b18e4999858132e
2018-02-17 05:27:50 -07:00
Transifreq cc0116dd43 update en-CA translation
Change-Id: I1f6c1ab0bec5dafeea5ed834c7f65b4f690f6589
2018-02-17 05:26:49 -07:00
Transifreq d81f3dddbc update en-AU translation
Change-Id: I8abdae7c3b849c3fb59f838c8a560337ff2f7cf1
2018-02-17 05:25:52 -07:00
Transifreq 45754fe4fb update de translation
Change-Id: Ic7a5e1160666815ce3aea86932a0514365cd16c9
2018-02-17 05:24:50 -07:00
Transifreq 141876bb6f update da translation
Change-Id: If0867318b09f8e8c7c2bb8fde853728d8555915d
2018-02-17 05:23:46 -07:00
Transifreq 6a49e23fc9 update ar translation
Change-Id: I306174c72f94e8d3d94fa46817a2805bd56c4277
2018-02-17 05:22:44 -07:00
Transifreq 4aeb1882a8 update nn translation
Change-Id: Ib9e6c333b8ad7f706e7b9bbe3b04f5e96194036f
2018-02-16 05:57:15 -07:00
Transifreq 58394bbb31 update en-GB translation
Change-Id: I26b4f16318cebe875504638aaf94dc526998bb10
2018-02-16 05:27:50 -07:00
Marc Alan Phillips bbd453ad75 Add scores endpoint
closes PLAT-3008

Test Plan:
 - Create a line item (both assignment and nonassignment)
 - Create a user
 - For the assignment lineitem, the submission should be
   updated when FullyGraded or PendingManual is passed
   with a score. This should show in the gradebook
 - The nonassignment lineitem should not update the
   submission even if there are scores. These
   should only be found in the console

Change-Id: Ie8b65b475f00f364fb78f1d5fe4c1cdd84548472
Reviewed-on: https://gerrit.instructure.com/139469
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Marc Alan Phillips <mphillips@instructure.com>
QA-Review: Marc Alan Phillips <mphillips@instructure.com>
2018-02-15 22:51:19 +00:00
Cody Cutrer c68bfe4e5a detect transactions in dev for find_in_batches_with_temp_table
Change-Id: I1f7a3185c8146ae45aeec416c9403881d9f3f210
Reviewed-on: https://gerrit.instructure.com/141101
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-02-15 20:28:34 +00:00
Ryan Shaw 637b8b756d [eslint] have --fix add copyright header for you
Test plan:
* Run eslint —fix against a file that doesn’t have a copyright header
  (Eg: eslint --fix app/coffeescripts/AssignmentDetailsDialog.js )
* it should add the copyright header for you
* run eslint on a file that already has a proper copyright header
* it should not duplicate it

Change-Id: I0bc05b6cc267fb74909f7a0fe0e93ecda1e2136e
Reviewed-on: https://gerrit.instructure.com/140757
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2018-02-15 20:01:41 +00:00
Transifreq 1dd364c68f update ko translation
Change-Id: Icc542fc20c29ff978f6a72f23df29b8f9fee56aa
2018-02-14 05:52:15 -07:00
wdransfield e654115588 Link Item Index Endpoint
Closes PLAT-3005

Test Plan:
- Verify the line item index endpoint
  returns all line items in the specified
  course.
- Verify that the endpoint is paginated
- Verify the endpoint allow querying by the following
  params:
    * tag
    * resource_id
    * lti_link_id (filters line items by Lti::ResourceLink)

Change-Id: I52565f3bf8972fda0c62c4aa38c07bb44aa34ea8
Reviewed-on: https://gerrit.instructure.com/140543
Tested-by: Jenkins
Reviewed-by: Marc Alan Phillips <mphillips@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2018-02-13 21:13:01 +00:00
Transifreq 64769533ec update ko translation
Change-Id: I31fe10837a247b844014835e8b7a0135adf5b650
2018-02-13 06:01:12 -07:00
Cody Cutrer 80613cfcba add explain(analyze: true) support
also, allow explain to take a block, so you can run it for any query
(i.e. User.explain { something_complicated.count })

Change-Id: Ie724215ed1f1a45e7bec49a6deb960d09876bf03
Reviewed-on: https://gerrit.instructure.com/140615
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-02-12 19:46:46 +00:00
James Williams fc2dcc16e1 fix account notifications API documentation
only works for current user - user_id field is ignored

closes #ADMIN-711

Change-Id: I6f783a19bafbcd830fbab918782b1aa3591735d9
Reviewed-on: https://gerrit.instructure.com/139875
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2018-02-12 13:32:33 +00:00
Transifreq 0bcfe8da7a update nn translation
Change-Id: I8e98e17fff7a43a4536db492932eea668e6b012a
2018-02-06 14:38:27 -07:00
Transifreq 2bd0cafa74 update fa translation
Change-Id: Ib2977de00d83fbc27d586699ca0146cc00a55710
2018-02-06 14:34:33 -07:00
Transifreq e3e93d97a0 update ja translation
Change-Id: Ie2f109c72c103160c506eb7575a5668c0aa4aefe
2018-02-06 14:06:18 -07:00
wdransfield e580e068ca Line Item Controller (sans index)
Closes PLAT-3004

Test Plan:
CREATE
- Attempt to create a new Line Item using the create
  endpont. Verify the following params are required:
    - scoreMaximum
    - label
- Verify a new line item is returned and properly serialized.
  example:
  {
    "id" : <line item show/update endpoint>
    "scoreMaximum" : 60,
    "label" : "Chapter 5 Test",
    "resourceId" : "quiz-231",
    "tag" : "grade"
  }
- Verify the create endpoint allows setting the
  following optional params:
    - resourceId
    - tag
    - ltiLinkId (Must be the `resource_link_id` of
      an Lti::ResourceLink. This resource link must
      already have one line item associated with it.)
- Verify a Line Item cannot be created for an Lti::ResourceLink
  that does not already have at least one Line Item associated
  with it already.
- Verify a Line Item may be created for an Lti::ResourceLink if
  it already has at least one Line Item associated with it.
- Verify that creating a Line Item _without_ specifying an
  `ltiLinkId` creates a line item and a new assignment specified
  with the line item. The new assignment should have the following:
    - context: context of the new line item
    - name: label of the new line item
    - point_possible: the score maximum of the new line item
    - submission_types: none

UPDATE
- Verify the following attributes may be updated:
  - scoreMaximum
  - label
  - resourceId
  - tag
- Verify that the ltiLinkId may not be updated
- Verify that updating the Line Item label also
  updates the assignment title in the following cases:
    - when the line item has no associate Lti::ResourceLink
    - when the Lti::ResourceLink associated with the Line Item
      only has one line item (the one being updated)
- Verify the update response is properly serialized (see
  example in CREATE).

SHOW
- Verify the show endpoint allows retrieving the Line Item.
- Verify the endpoint responds with 404 if the Line Item
  does not exist.
- Verify the endpoint responds with a 404 if the Line Item
  exists but is in a different course than the one specified
  as a parameter.

DESTROY
- Verify the endpoint responds with 404s in the same instances
  as the show endpoint.
- Verify the endpoint does not allow destroying a Line Item
  when it is the first line item created chronologically
  for its associate Lti::ResourceLink
- Verify the endpoint allows destroying line items.

Change-Id: Iaf26e6addd1e3fe38c5fb76db33fed41a069e7c9
Reviewed-on: https://gerrit.instructure.com/138831
Tested-by: Jenkins
Reviewed-by: Marc Alan Phillips <mphillips@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2018-02-06 17:34:58 +00:00
Cody Cutrer 09fd728969 allow aliases for locale names coming from browsers
fixes gh-1167

and set them up for the chinese variants

test plan:
 * change your browser language to Chinese (Traditional)
 * ensure your account and user don't override the language
   (both set to System Default)
 * inspect your web request, make sure the accept-language includes
   zh-TW
 * you should see Canvas in traditional chinese, not simplified
   chinese

Change-Id: Id09e9b348c18195809b96138d081c246c080fa29
Reviewed-on: https://gerrit.instructure.com/133838
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
Tested-by: Jenkins
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2018-02-05 19:52:03 +00:00
Transifreq 77e11f8a4e update ko translation
Change-Id: Ifb07fc621affa3c90ee730e5b48bc4f5ad6ada00
2018-02-02 05:59:10 -07:00