Commit Graph

42166 Commits

Author SHA1 Message Date
Rob Orton f87d440fc9 send messages when report is actually done
test plan
 - specs should pass
 - parallel reports should run without extra messages

fixes FOO-984

Change-Id: Idde458386b32d269bc4c134495ec7a0dccfa6f62
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252048
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2020-11-06 21:07:08 +00:00
Ed Schiebel 4ad1524db3 Apply MathJax to equations in Discussion replies
closes LS-1595
flag=new_math_equation_handling

Most RCE content is processed by UserContent.escape in the
canvas backend on its way to the browser, and that is where
most equation images are replaced with their LaTex for MathJax
processing.  The flow is different for Discussions whose replies
follow a different path. This change replaces the image with LaTex
in the same place in the browser as where the hidden mathml was
previously injected into the DOM.

test plan:
  - in a discusion, add a reply
  - use the Equation toolbar button to insert some math
  > expect the equation image
  - save by clicking Done
  > expect the image to be replaced with MaxJax typeset content
    (right click and you'll get the mathjax menu)
  - edit the reply
  > expect the equation image in the RCE
  - edit and add some inline math (e.g. $$y = x^2$$)
  - save
  > expect both the original image and the inline equation to
    be typeset by MathJax

Change-Id: Icedcbbf3b2f084b1a9c254ec2a070b31c35ffed9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251979
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-11-06 21:01:12 +00:00
Davis Hyer 8b9edfff0f add compose modal footer buttons
fixes VICE-859
flag=react_inbox

test plan:
  - check out storybook, it's pretty neato

qa risk: low

Change-Id: Iac853bea2be12d34f675408d904883f222a5c957
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252000
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
QA-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
2020-11-06 20:47:52 +00:00
Ethan Vizitei f9803fdc96 prevent spurious error reports
refs FOO-1178
flag=none

TEST PLAN:
  1) Originality Reports still get copied out to group
     submissions
  2) error reports/sentry errors don't get filed
     when a job runs to copy an originality report
     for a test student that got reset before it could run

Change-Id: Iea21ef828e54ac0d42921f9b6f33072e6b2676c0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252155
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-11-06 20:09:12 +00:00
Ethan Vizitei dbd705e5b5 improve error reporting for canvadocs integration
Change-Id: I7f104bec7a149d6a40372884442002901818d02b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252157
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-11-06 20:08:55 +00:00
Jacob Burroughs 4a205e2589 Require terms of service acceptance for the oauth flow
fixes FOO-334

test plan:
- Follow the ticket directions
- You can do a manual oauth (e.g. http://localhost:3000/login/oauth2/auth?client_id=10000000000001&response_type=code&redirect_uri=https://sso.canvaslms.com/canvas/login)
  instead of using the app (after configuring a developer key)

Change-Id: If2af49fa23c66bf9232774085fd0f679147a003f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251987
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2020-11-06 19:03:42 +00:00
Jackson Howe 1f9a2357b6 Fix highlight color of insert table picker in rce
When inserting a table into RCE, you can click a grid to determine
size of new table. Using KO-navigation, clicking on the insert
table button highlighted the background of the grid picker causing
bad contrast. This commit removes the background color of the table
insert grid, keeping the contrast ratio good.

fixes LS-1582
flag=rce_enhancements

Test plan:
 - In RCE, use KO-navigation
 - Navigate to the toolbar, click Table icon, click the top 'Table'
   option, then use arrows to select table size
 - Expect the inclued cells to be a light blue and the not included
   cells to be white
 - Repeat, but access the insert grid from the 'Insert' menubar
   option

Change-Id: Ie3a500fcf101615f0b7fd55ed63364ff342606b1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251917
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
2020-11-06 18:13:30 +00:00
Aaron Ogata 468671bd10 remove need for api_scope_mapper.rb to be committed
refs DE-362

Change-Id: I222120ad51421fa690c053d9c06a5ef0642f2c5b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252033
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2020-11-06 17:50:59 +00:00
Cody Cutrer 5ccdcd19ef chain &. in invalidatebuiltinrolecaches migration
Change-Id: Ia9fa63754fc312727f34d80b3d4f101472c7047c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251659
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-11-06 17:24:59 +00:00
Cody Cutrer ecced1edee iconv isn't actually used anymore
Change-Id: I71f96b565c7004e80e6852c62056eb06c08f6463
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251674
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-11-06 17:24:42 +00:00
Ed Schiebel f078a5e1f1 Fix CORS request for equation image
closes LS-1599
flag=none

A recent update does a preemptive fetch of the equation image to ensure
it can be returned. We did not have the necessary incantation to
properly make the CORS request. While chrome and ff were OK with
the request headers, safari was not and rejected the request with
the message "Cannot use wildcard in Access-Control-Allow-Origin
when credentials flag is true."

test plan:
  - in safari, clear your cache (or create a brand new equation)
  - in the RCE, use the equation editor to create an equation
  - click "Insert Equation"
  > expect to see the equation image in the RCE

Change-Id: If8d1f6b72741b2943faf251be5f04320157b337f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252115
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-11-06 17:09:54 +00:00
Rob Orton 6f802e0cd5 respect include_deleted for enrollments
test plan
 - have sis_pseudonym on enrollment
 - delete it
 - it should work as expected... 
 - just specs should pass

refs FOO-694
flag = none

Change-Id: I85120b065a2a29b7128c63aef9aa621c6fa77acc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252146
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2020-11-06 17:06:18 +00:00
Kai Bjorkman 7a70b60858 spec: E2E selenium tests for FGOGH feature
had to allow Auditors table to read from active record
due to Jenkins still reading from cassandra

closes EVAL-1237
flags=final_grade_override_in_gradebook_history

Test Plan:
-specs pass

Change-Id: Ia8da7f67d43f48a2a59fcbc58bb75e58c53afd36
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251682
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
2020-11-06 16:14:45 +00:00
Ethan Vizitei 4e4fe733c1 sis_pseudonym looks for sis_user_id
closes FOO-694
flag = none

TEST PLAN:
  1) create a user with 2 pseudonyms, a and b.
     (a having a sis_user_id, b having none)
  2) make an enrollment record for that user in a course,
     and point it's sis_pseudonym_id at pseudonym a
  3) check the SisPseudonym for that user/course
     and it should be "a"
  4) nil out the sis_user_id on a, and put it into
     the sis_user_id on b (save both records)
  5) check the SisPseudonym for that user/coures
     and it should now be "b"

Change-Id: I2d72f2e93d212339b2ef9093bd18434ccdbed143
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251998
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2020-11-06 15:37:08 +00:00
Ethan Vizitei 1ed8ad8ab2 spec: coverage for diffing csv with nil column
refs FOO-890

Change-Id: I09778f86c99f93023816e877f5f57dd371389536
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252038
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 15:13:01 +00:00
Jenkins 65ab86bef9 update zh-Hant translation
Change-Id: Ib34b6c2627eea2c9ec3906a37f1d5657a796face
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252084
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:51:11 +00:00
Jenkins 607e2acc82 update zh-Hans translation
Change-Id: I27af9bc96324554c598bc22c9c8aa745fda5930a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252083
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:50:48 +00:00
Jenkins 4402305838 update sv translation
Change-Id: Ib64e55099a8d9abe45839b30177434838bbcb5dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252082
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:50:11 +00:00
Jenkins 3cc4d9858a update ru translation
Change-Id: I52fbf3caad0d89b8909f9d5492751e1abd126f67
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252081
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:49:50 +00:00
Jenkins 2b12b0a1af update pt-BR translation
Change-Id: I37a3016328e3966a9627bb4a3d018cab6dac97d1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252080
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:49:29 +00:00
Jenkins 0d4d272072 update pt translation
Change-Id: I41a85953afb3234fdbdc99aeca6f2510d37832e6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252079
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:49:08 +00:00
Jenkins 3f8379e0f1 update pl translation
Change-Id: Ib81ca3fc75097896de136647b84fbd67460e0645
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252078
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:48:48 +00:00
Jenkins e932e7adce update nl translation
Change-Id: Ifb87c236224097c470ff8e5f67ce172f0e1f0166
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252077
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:48:26 +00:00
Jenkins 535e340e61 update nb translation
Change-Id: I349fa1f1e2a856b6cc9fdf194d456ffba3ba1c8e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252076
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:47:52 +00:00
Jenkins 9aaf7ec626 update mi translation
Change-Id: I0975469cae0a880595259982f98db8736328362d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252075
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:47:32 +00:00
Jenkins 6d6be73c9b update ja translation
Change-Id: If20ddeac687906950cb4bab341a8fd25fbaf643f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252074
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:47:11 +00:00
Jenkins f01b12af4e update it translation
Change-Id: I9ccf68897b9fe5d64c291abf9a8a45ee3dce22f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252073
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:46:48 +00:00
Jenkins 20b5a1e8fc update is translation
Change-Id: I21d40dbe56c6e9d0a55a1a7d470f2d3e4a410681
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252072
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:46:29 +00:00
Jenkins 3235068ced update ht translation
Change-Id: Ia7bbd1cae63f7d2a3e850f4e0d6721b28b801caa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252071
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:46:10 +00:00
Jenkins 2b4ea84a2d update fr-CA translation
Change-Id: Icf098f746e321f21585ae87720c82a764cd98d84
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252070
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:45:50 +00:00
Jenkins 9b543bcd52 update fr translation
Change-Id: I71c6b34cc4d2cdada6afe5cbf2d9004e1425539f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252069
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:45:31 +00:00
Jenkins 83000bde2f update fi translation
Change-Id: I2ec9a8d7e2d0dff5daf5f9638d23c6ba19eeed35
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252068
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:45:10 +00:00
Jenkins 777097f616 update es translation
Change-Id: I6f13dda51f25adf62ba0901d9de3543c609bd933
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252067
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:44:52 +00:00
Jenkins e51b8d5131 update en-GB translation
Change-Id: Iea786d219f69a90173fd0422562c5f576a7671d3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252065
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:44:21 +00:00
Jenkins 60d56510e3 update en-CA translation
Change-Id: I4e689adc1c18d392a49aed3263ce6c8b62a4030b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252064
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:44:01 +00:00
Jenkins 78459d4904 update en-AU translation
Change-Id: Ic83c801532edb1ce58c58122b682c11d7e83e02a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252062
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:43:31 +00:00
Jenkins e0f72d50e7 update de translation
Change-Id: Ib6e18c1ed15fff6d1a1bb9ccdb844061bef9c7a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252061
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:43:10 +00:00
Jenkins 36453ce8d4 update da translation
Change-Id: I92aab373f653678a14ad2d57fb93a39ca0d9cefb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252060
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:42:37 +00:00
Jenkins 346943e72a update cy translation
Change-Id: I852617c4445f50a3b454ff727751c0ca5d3f730d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252059
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:42:17 +00:00
Jenkins 5be4f33099 update ca translation
Change-Id: Iccacdd690bfc59293d3f942caf0da7b2155741d0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252058
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:41:58 +00:00
Jenkins a1742351a0 update ar translation
Change-Id: Ied1a9a99b24362cf2184828b2c30e3cda92e7219
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252057
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 05:41:41 +00:00
Jenkins bbdbc96a85 [i18n] Update package translations
Change-Id: I321c6b91ccb40e0af22ca742773e3447714ba8cf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252054
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-06 04:49:45 +00:00
Jeremy Stanley b89b804864 fix mastery paths bounds in locales with decimal commas
(or other separators)

test plan:
*before pulling down this patch set*, reproduce the bug.
 - this requires setting up I18n locally:
   1. rake 18n:generate_js
   2. RAILS_LOAD_ALL_LOCALES=true USE_OPTIMIZED_JS=true yarn run webpack
   3. RAILS_LOAD_ALL_LOCALES=true bundle exec rails server
 - create a course and set its language to Portuguese
 - enable Mastery Paths feature in the course or its account
 - create at least two assignments, set one of them as a trigger
   assignment and add the other to a mastery path
 - save the trigger assignment
 - edit the assignment and change a cutoff value to a fractional
   number, using a decimal comma (e.g., "7,5"), which should
   be displayed as "7,5 pts"
 - try to save the assignment. this will fail with a 400 error.

*pull down the patchset and re-run webpack*

 - reload the assignment page
 - attempt the edit again
 - this time it should save

flag = conditional_release

fixes LS-1547

Change-Id: Ie7b1a0b1dcef6cfddde2a64e5be83b85ab1ac854
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250906
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
2020-11-05 23:41:03 +00:00
Cody Cutrer 020f3ef050 fix root account cacher request cache caching only using local ids
fixes FOO-1163

test plan:
 * have a user with pseudonyms on two accounts with the same local id, on
   different shards
 * go to the user's page (/users/:id)
 * it should correctly name both accounts

Change-Id: Ib5dfb77163a013deb0029dc311b26b1b9424f76c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252039
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-11-05 22:53:22 +00:00
Ethan Vizitei fbec0f0f4d flaky-spec: use set equality when not asserting order
closes SOS-1808
flag=none

TEST PLAN:
  1) specs should still pass

Change-Id: Ibced0f58fc63c35b8c30b3ff5afee06d9b3948c0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252036
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-11-05 22:47:01 +00:00
Ryan Norton e65bff5ecc skip flaky variable_expander spec
flag = none
refs SOS-1808

Change-Id: Ib1bc1633c09cc0448559b6a397c358f6f6a02659
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252027
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
2020-11-05 21:42:22 +00:00
Ethan Vizitei 564e4dc7b7 avoid exploding on csv files with trailing commas
closes FOO-890

TEST PLAN:
  1) provide a csv file to sis imports with trailing
     csvs and diffing enabled
  2) it doesn't break

Change-Id: If5ac926cf7933116eac18b72100a2a86fb629ace
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/252016
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2020-11-05 21:02:36 +00:00
Charley Kline c730122179 Fix up <Select> in gradebook history for InstUI 7
Closes FOO-1107
flag=none

Another update to a component using features in the version 6
<Select> component. CanvasAsyncSelect seemed to work pretty
nicely, although it needed a couple of features added as well
to round out the functionality.

Test plan:
* Go to courses/:id/gradebook/history
* The filter boxes should work like they always have

Change-Id: I3cd015a4edac4fa608d01158f9f320642f78a144
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250903
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2020-11-05 20:29:24 +00:00
Mark Valentine 12eb84db7b add enrollment filtering to assignment_group_grades endpoint
flag = none

refs: PFS-16842

Test Plan:
http://localhost:3000/graphiql

In a course with multiple enrollments and at least one
  assignment group, verify the following graphql queries
  work:

1) Existing endpoint (grades for all enrollments):
(paste this into the graphiql endpoint)
query MyQuery {
  assignmentGroup(id: 1) {
    gradesConnection {
      nodes {
        enrollment {
          _id
          user {
            _id
          }
        }
        state
        unpostedCurrentScore
        currentScore
      }
    }
  }
}

2) Filtered endpoint (grades for selected enrollments):
query MyQuery {
  assignmentGroup(id: 1) {
    gradesConnection(filter: {enrollmentIds: [2]}) {
      nodes {
        enrollment {
          _id
          user {
            _id
          }
        }
        state
        unpostedCurrentScore
        currentScore
      }
    }
  }
}

Change-Id: If9f13cdb110b56c14aa0e854deff338dcb5f05cc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251473
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Spencer Last <slast@instructure.com>
Reviewed-by: Wagner Goncalves <wagner.goncalves@instructure.com>
Reviewed-by: Ethan Knapp <eknapp@instructure.com>
QA-Review: Marisa Jense <mjense@instructure.com>
Product-Review: Mark Valentine <mvalentine@instructure.com>
2020-11-05 20:01:13 +00:00
Rob Orton 2c73162b30 conversations have not included submissions 4ever
... or at least 6 years

still maintaining the shape since it is passed as an empty array from
the controller

Change-Id: I773694a06f3ddbd65ab22c8db52e1cd0445ee1b8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250502
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2020-11-05 17:39:39 +00:00