Commit Graph

36547 Commits

Author SHA1 Message Date
Jeremy Neander b7bafa5fa3 [ci-coverage] spec: shim location access in speedgrader specs
Change-Id: Idb06809d503ab89434c7e27821ff8a0f45054ce8
Reviewed-on: https://gerrit.instructure.com/207186
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
2019-08-28 19:54:41 +00:00
Jeremy Putnam 9fb7257a79 spec: unskip multiple question type test
Change-Id: I5a7975b26b0dd75ecae73eb5ed3fc60e7309e30d
closes: COREFE-234
Reviewed-on: https://gerrit.instructure.com/207136
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-28 18:52:19 +00:00
Jeremy Putnam 9ae0b0f581 spec: unskip tests in groups_shared_examples
Change-Id: I120febb7f767b8dba16222024cad3481ef73d818
closes: COREFE-235
Reviewed-on: https://gerrit.instructure.com/207138
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-28 18:51:58 +00:00
James Butters 28f144cf8f spec: publish test results from gems running rspec
Change-Id: Ia2457bf89c27538612d0f42eaf92447b0cf23150
refs: CORE-3254
Reviewed-on: https://gerrit.instructure.com/207148
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-08-28 18:45:17 +00:00
Aaron Griffin 8ad72a6f1c Add numberHelper support for 'e' notation
Javascript's parseFloat supports this natively, so we can handle it if
all else fails.

Test Plan:
- As a teacher, create a quiz with a numeric question
- Enter `3e4` as an answer
- On blur, see it replaced with `3000`

Closes QO-512

Change-Id: Ia7c7e196ed0baa302fc6b6f79eda611955f75d2b
Reviewed-on: https://gerrit.instructure.com/206463
Tested-by: Jenkins
Product-Review: Kevin Dougherty III <jdougherty@instructure.com>
Reviewed-by: Connor Williams <cowilliams@instructure.com>
QA-Review: David Tan <dtan@instructure.com>
2019-08-28 17:05:22 +00:00
Pat Renner 2378207a89 Ensure lowest rating range updates when total points change
Fixes bug where lowest rating range would not scale when adjusting
total points. Also fixes a bug where changing a rubric's total points
and resetting to the initial value would not scale points evenly.

Fixes OUT-3074, OUT-3239

Test plan:
- Create a ranged rubric with ratings 100-75, 75-50, 50-0.
- Update total points in the rubric to 200.
- Ensure lowest range scales from 100-0.
- After saving, change total points to 0 for the same rubric.
- Reset rubric total points to 200.
- Ensure each range scales evenly and adjusts from 0. New values
should be 200-100, 100-0, 0.
- Ensure ratings display properly in other languages (one that
uses colons instead of decimal points, for example).

Change-Id: Iddc2078e49cf1202dcbf111c0deeece8949ea464
Reviewed-on: https://gerrit.instructure.com/205295
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Michael Brewer-Davis <mbd@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2019-08-28 16:49:07 +00:00
Jeremy Putnam 59c823c28a spec: unskip new page test
Change-Id: I53e4d29bf307a3a25a127bb0f01b68be0943a024
refs: COREFE-227
Reviewed-on: https://gerrit.instructure.com/206561
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-28 16:33:09 +00:00
Mysti Lilla 46496a0077 Run object search on master on unique error retry
fixes ADMIN-2841
flag = none

Test plan
- Specs pass

Change-Id: I4ea12bc2bc67f6ed682d2b8d05b0dad3e4dadcd5
Reviewed-on: https://gerrit.instructure.com/206816
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-28 16:13:21 +00:00
James Williams 7be4bb885c use enrollment type in row class instead of role name
keeps selenium selectors from breaking

closes #ADMIN-2848

Change-Id: I5bfb15df6a1754d1bcdd468491e611216fa9477e
Reviewed-on: https://gerrit.instructure.com/206456
Tested-by: Jenkins
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
2019-08-28 15:58:01 +00:00
Spencer Olson 5f2c8e5d15 allow filtering calendar_events_api#user_index by submission_type
Adds submission_types and exclude_submission_types params to
calendar_events_api#user_index.

closes CAT-2923

Test Plan:
1. Verify the submission_types and exclude_submission_types
   params work as intended when calling calendar_events_api#user_index.

Change-Id: I667b3cfd190d33c50f4e2b62fab1ee2af5925c41
Reviewed-on: https://gerrit.instructure.com/206731
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Nick Pitrak <npitrak@instructure.com>
QA-Review: Nick Pitrak <npitrak@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2019-08-28 15:56:36 +00:00
Rex Fleischer 4ace8eb2cb add first part for migrating feature overrides to settings
fixes: ADMIN-2836

feature = none

test-plan:
passes jenkins. we cannot manually test this functionality until
it's hooked up with tickets that use this

Change-Id: I57a42da130ea6d00f5dd8ad3edf3d4e1b311e3ac
Reviewed-on: https://gerrit.instructure.com/205848
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Tested-by: Jenkins
QA-Review: Rex Fleischer <rfleischer@instructure.com>
Product-Review: Rex Fleischer <rfleischer@instructure.com>
2019-08-28 15:29:40 +00:00
Rex Fleischer 71df8c6e19 add SiteAdmin as a valid level for feature applies_to
fixes: ADMIN-2843

flag=none

Test-Plan:
- ensure the test ff can be toggled
- ensure the test ff can only show in site admin

Change-Id: I354f3a296c393b2e73c0487bff6fc10247f0fe9e
Reviewed-on: https://gerrit.instructure.com/206698
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Rex Fleischer <rfleischer@instructure.com>
2019-08-28 14:54:43 +00:00
James Williams b268187496 generate selective content local identifiers on correct shard
trying to do a cross-shard course copy from a course that
 has old exports tries to use old local identifiers but
 was generating them on the wrong shard

closes #ADMIN-2849

Change-Id: I4039a1a5f4bf10521d96e06da1d907b0fe14710a
Reviewed-on: https://gerrit.instructure.com/206800
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-08-28 12:21:11 +00:00
Jenkins 5ec5b87f63 update nn translation
Change-Id: I904844358ad9a446665bd17302ff2c0c6fce53d5
Reviewed-on: https://gerrit.instructure.com/207105
Tested-by: Jenkins
2019-08-28 05:56:16 +00:00
Rob Orton 9351a90b8d don't allow merging a fake user
fixes CORE-3283

test plan
 - try to merge fake user
 - it will fail
 - specs should pass

Change-Id: I214990fa285080f41d5e76b785cc34978dc81e7f
Reviewed-on: https://gerrit.instructure.com/207058
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-28 00:32:35 +00:00
Ryan Shaw e782fb7012 filter non-actionable console logs everywhere else too
I did this first for canvas’s jest tests, but this does it for
karma/qUnit, canvas-rce, canvas-planner and dev mode too.

test plan:
* run `yarn test`
* you should see a lot less react deprecation messages

Change-Id: I5f5cee08d705b749526be87fd79cfc937c015145
Reviewed-on: https://gerrit.instructure.com/206879
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-27 19:54:09 +00:00
Marc Phillips 4fae26529c Add Data Services event subscription destroy
closes PLAT-4819

Test Plan:
 n/a

Change-Id: Ib5661b85af4e68048d44742f9ec8d273c79008b2
Reviewed-on: https://gerrit.instructure.com/206519
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
2019-08-27 17:54:21 +00:00
Xander Moffatt 352d132257 add data services index action
closes PLAT-4744

Test Plan:
 - see that the index action returns a list

Change-Id: I92cc07c5476c7dd48202f38b62e09df6aa591b62
Reviewed-on: https://gerrit.instructure.com/206435
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-08-27 17:54:04 +00:00
Ed Schiebel ae81fee438 Support User and Course documents in the rce
Images are still course only. Will be addressed in the text ticket

closes COREFE-204

test plan:
  - have a course with some files
  - have a teacher and a student with personal files

  - go to the course as a teacher
  > expect rce Documents toolbar button menu to
    show Upload, Course Documents, and My Documents
  - upload document(s)
  > expect it to succeed
  > expect the new files to appear in the Course Documents
    tray
  > expect the files to appear in the course's files folder
    (/courses/:id/files)

  - select My Documents from the toolbar menu
  > expect my documents to be shown in the tray
  - use the filter to switch to Course Documents
  > expect course documents to be shown in the tray
  - repeat, starting with Course documents and flipping to My documents

  - go to the course as a student
  > expect rce Documents toolbar button menus to
    show Upload and My Documents only
  - upload document(s)
  > expect it to succeed
  > expect the new files to appear in the user's file page's
    My Files (/files).
  > do NOT expect the files to show up in the course's Files page
    (/courses/:id/files)

Change-Id: I279e46ef422a8895e1f38688d98ceabfc5f9ce88
Reviewed-on: https://gerrit.instructure.com/205359
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-08-27 17:45:57 +00:00
James Williams de1e957944 add singleton to role_override downstream cache clear job
Change-Id: Icb82453081986645af91e3175dc3ee166b604fc9
Reviewed-on: https://gerrit.instructure.com/206908
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-27 17:19:00 +00:00
Cameron Matheson 883c6d8925 upgrade graphiql
Test plan: graphiql works

flag = none

Change-Id: Ia8bd7100024cab45746a27f370d5423e6c5fa9e6
Reviewed-on: https://gerrit.instructure.com/206853
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-27 15:26:45 +00:00
Adrian Packel 65d57b5888 Don't replace old-quiz submissions in SpeedGrader
When a teacher updates a quiz score in SpeedGrader and we subsequently
re-fetch submission data, merge the fetched data into the existing
submission object for the student by calling setOrUpdateSubmission,
rather than just setting the student's submission to point to the new
object.  The latter approach leaves references to the outdated
submission data in place elsewhere, which could result in the un-updated
score erroneously being displayed after some actions (e.g.,
posting/hiding grades).

fixes GRADE-2367

Test plan:
- Have a course with New Gradebook and Post Polices
- Create a graded quiz with at least one question
- Set the quiz to be manually posted
- As a student, take the quiz
- As a teacher, open the submitted quiz in SpeedGrader
  - Change the score to one or more questions and click "Update Scores"
  - On submitting, the updated score should be displayed in the grade
    input on the right-hand side
  - Post grades for the quiz
  - Confirm that the grade input does *not* revert to the submission's
    pre-update score, but instead keeps displaying its current value
  - Hide grades for the quiz
  - Confirm that the input once again does not revert

Change-Id: I01cd58445929e7dbafbb2d41209aaa8c88e6cada
Reviewed-on: https://gerrit.instructure.com/206288
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Jeremy Neander <jneander@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
2019-08-27 15:09:57 +00:00
Marc Phillips f2e646b556 Set internal flag for Data Services api
refs PLAT-4819

Test Plan:
 n/a

Change-Id: I3ff7a704aafcd10ce707efbea22927f5d151f073
Reviewed-on: https://gerrit.instructure.com/206852
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-08-27 15:09:02 +00:00
Ryan Shaw 9d54094803 upgrade @testing-library npm deps
Change-Id: I5438f3895173d4b2b417835c6ac937dc65d160d3
Reviewed-on: https://gerrit.instructure.com/205774
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-27 14:49:48 +00:00
Jenkins 77ea6b6867 update tr translation
Change-Id: I1781574f1a8cb3d4797528a4d309686c3b4fd0bc
Reviewed-on: https://gerrit.instructure.com/206890
Tested-by: Jenkins
2019-08-27 05:56:51 +00:00
Jenkins aa7fa4447a update nn translation
Change-Id: I7fd8bd812b71e666270dd9c5cfb020103a306226
Reviewed-on: https://gerrit.instructure.com/206889
Tested-by: Jenkins
2019-08-27 05:56:16 +00:00
Jenkins 5ee15a283e update ko translation
Change-Id: I0bca33f11bc92f4ae3b533ed178d14d9ce0a124f
Reviewed-on: https://gerrit.instructure.com/206888
Tested-by: Jenkins
2019-08-27 05:55:35 +00:00
Jenkins 0e137b2bcb update hy translation
Change-Id: I3c866d348a9580c4282989becf4c8a8068febd07
Reviewed-on: https://gerrit.instructure.com/206887
Tested-by: Jenkins
2019-08-27 05:55:05 +00:00
Jenkins da0b402c40 update hu translation
Change-Id: I83b7d8fc99eb64b6bb698da7502adf06f54027c8
Reviewed-on: https://gerrit.instructure.com/206886
Tested-by: Jenkins
2019-08-27 05:54:28 +00:00
Jenkins 6df939d765 update he translation
Change-Id: I7e921ef669aec1fc180390a0fbc260312082c8c9
Reviewed-on: https://gerrit.instructure.com/206885
Tested-by: Jenkins
2019-08-27 05:53:49 +00:00
Jenkins 0bcca0a71b update fa translation
Change-Id: Iff2512899beefc172765d603e549852ea368e535
Reviewed-on: https://gerrit.instructure.com/206884
Tested-by: Jenkins
2019-08-27 05:53:08 +00:00
Jenkins 1ad1ec8a24 update el translation
Change-Id: I049b715bc44b5b6e2e574e6f7ace588d1c823b51
Reviewed-on: https://gerrit.instructure.com/206883
Tested-by: Jenkins
2019-08-27 05:52:27 +00:00
Ryan Shaw 78d5f6094f attempt #2 to try to get master js build working
my last thing fixed it in one spot but it fails in another now

lets see if we just give it more memory if that will work

Change-Id: Ia4a5aef21f3a07ac2d383682de1cfc4fe2d71f73
Reviewed-on: https://gerrit.instructure.com/206869
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-27 00:47:39 +00:00
Ryan Shaw 9284d36869 fix JavaScript master build
fixes: COREFE-229

2 things:
1. there was a problem with deprecated.test.js where node would
   run out of memory
2. When raven went to log stuff it would die because it would try
   to use window.fetch, but that is just a mocked function in jest

Change-Id: Ib8a4de3605606a9bf0496634f93bfed3731a5d1a
Reviewed-on: https://gerrit.instructure.com/206857
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 23:36:30 +00:00
Ben Nelson ff2055d08e upgrade react-apollo to 3.x.x
closes COMMS-2316

TEST PLAN
-------------------------------
all tests pass

Change-Id: I0c270bb7a8d5dfa166641648841e619a1a21c0f4
Reviewed-on: https://gerrit.instructure.com/206348
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
Tested-by: Jenkins
QA-Review: Ben Nelson <bnelson@instructure.com>
Product-Review: Ben Nelson <bnelson@instructure.com>
2019-08-26 23:28:25 +00:00
Ryan Shaw 5bc9df8692 spec: fix a validateDOMNesting warning
Test plan:
* yarn jest app/jsx/developer_keys/__tests__/CustomizationOption.test.js
You should not see:
Warning: validateDOMNesting(...): <tr> cannot appear as a child of <div>
        in tr (created by CustomizationOption)
        in CustomizationOption (created by WrapperComponent)
        in WrapperComponent

Change-Id: I9a16a01c7d4323bce09aaa17c1b8cda681231e7d
Reviewed-on: https://gerrit.instructure.com/206830
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 22:56:57 +00:00
Marc Phillips a01a549b4c Add update to LTI Data Services
closes PLAT-4763

Test Plan:
 it updates the subscription

Change-Id: I80289d2bea6c88b70726718cec7b9087e4879aa9
Reviewed-on: https://gerrit.instructure.com/206505
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-08-26 22:21:46 +00:00
Marc Phillips 1f2394e982 Add subscription show to LTI DataServices
closes PLAT-4761

Test Plan:
 - see that a call to this endpoint will show a sub

Change-Id: Ifc299aebe5cfbadaf82a1970f75ad182ffa31b29
Reviewed-on: https://gerrit.instructure.com/206489
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
Tested-by: Jenkins
QA-Review: Marc Phillips <mphillips@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-08-26 22:21:25 +00:00
Ryan Shaw 78a25bf4e8 [codemod] convert functions to fat arrows
This is the result of running:

jscodeshift -t ../js-codemod/transforms/arrow-function.js .

see: https://github.com/cpojer/js-codemod#arrow-function

Transforms callbacks only when it can guarantee it won't break this 
context in the function. 
Also transforms function() { }.bind(this) calls to () => {}.

jscodeshift -t js-codemod/transforms/arrow-function.js <file>


Change-Id: I04d20c818002b3dce5a43d8e91f01d904f966706
Reviewed-on: https://gerrit.instructure.com/205785
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 22:20:33 +00:00
Ryan Shaw 1d3c17ee78 fix async functions that aren’t or are confusing
In order to help track down some of the build flakiness in the js
build, to be able to reason better about the asynchrony going on,
I went through and made functions that weren’t really intended to return
a promise not `async` and made it clear what promise we are returning
when we have a promise that does something like 
`return Promise.all([foo, bar, baz])`

So for example:

Instead of doing:
async function foo () {
  return Promise.all([fetchThing(), fetchOtherThing()])
}
Just remove  the “async” part and do
function foo () {
  return Promise.all([fetchThing(), fetchOtherThing()])
}

if you want to leave the “async” part on the function you could also do:
async function foo () {
  return await Promise.all([fetchThing(), fetchOtherThing()])
}

Change-Id: Iff050350e28d5dbff0b939b244efec3b2b400be3
Reviewed-on: https://gerrit.instructure.com/206447
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 22:20:04 +00:00
Ryan Shaw cfb60be2da Filter out unactionable console messages
Also, fix some


Test plan:
* run `yarn jest`
* you should see less of those react 16.9.x lifestyle deprecations
  In the console output

Change-Id: Ic63e977fe8067756d0a276e316b23dab004da94f
Reviewed-on: https://gerrit.instructure.com/206813
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 22:17:54 +00:00
Steven Burnett 30021d4180 cleanup media integration with a2 student
fixes COMMS-2293

Test Plan:
** this requires notorious to test.  If you have questions on how
  to get that set up check the meeseeks startup guide
- as a student with a2 on go to a media type submission assignment
- click on the "add media recording" button
- notice you get 2 tabs record and browse
- add either a video or record one of your pretty face
- save
- notice it shows up in the dom centered and styled well
- party as you can rewatch yourself multiple times

Change-Id: I434fdc02ebce1dc63bf53aace638788439ac1029
Reviewed-on: https://gerrit.instructure.com/206103
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
Tested-by: Jenkins
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2019-08-26 21:59:39 +00:00
Landon Gilbert-Bland c1899a05d1 Ensure submit button in A2 can only be pressed once
Test Plan:
  * Create an assignment
  * Submit the assignment, and keep clicking the submit button
  * Notice that the submit button is disabled after the first click, and
    only one new submission is created

fixes COMMS-2317

flag = assignments_2

Change-Id: Iddd63b71d20b9ea3f2c9bcf7a17503918cca5dfe
Reviewed-on: https://gerrit.instructure.com/206218
Tested-by: Jenkins
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2019-08-26 21:59:15 +00:00
Robert Lamb f48744cfbb spec: remove 'master' fallback & use PATCHSET_TAG
For New Jenkins builds, don't fallback to pulling the image from
master if the patchset image isn't available.  We don't want the
tests to pass against the wrong image.

Use PATCHSET_TAG instead of re-creating the starlord url.

Change-Id: Id77e4110f597308064922c1bb37d03b520a4d6b9
Reviewed-on: https://gerrit.instructure.com/206742
Tested-by: Jenkins
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-08-26 20:52:29 +00:00
Cameron Matheson f944d51e0b pre-build graphql schema non-harmfully
Executing a graphql query was a poor way to pre-build the schema (it
would try to start a transaction and set statement timeouts). This just
builds the schema and will never issue a query.

Change-Id: I23a9eeff394fec68b65f7f24b42e3942f70f50a3
Reviewed-on: https://gerrit.instructure.com/206768
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2019-08-26 20:04:22 +00:00
Carl Kibler d23e13a0b5 fix icon wrapping in new course menu
fixes ADMIN-2845
flag=a11y_left_menu

test plan:
 - Enable 'Accessible Sidebar Menu' flag in site admin
 - in a course, disable Announcements so show icon shows up, then
   navigate to Announcements page. Link & icon should be on
   same line

Change-Id: I3edac4999affac17c8256b071e917756f97f030c
Reviewed-on: https://gerrit.instructure.com/206085
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Daniel Sasaki <dsasaki@instructure.com>
Product-Review: Carl Kibler <ckibler@instructure.com>
2019-08-26 19:43:28 +00:00
Rob Orton 1fac78417e keep api errors consistent
fixes CORE-3257

test plan
 - specs should pass

Change-Id: I56a1e7b02b84a063b9816556d163bb3e247f8d73
Reviewed-on: https://gerrit.instructure.com/206616
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-26 19:25:44 +00:00
Rob Orton c691ec57df move update outside of main process method
this allows this to be overwritten easier

refs CORE-3276

test plan
 - specs should pass

Change-Id: Ia149c35ab23ac7432a2e481f8b88d660d8e7fb13
Reviewed-on: https://gerrit.instructure.com/206627
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-26 19:25:11 +00:00
Rob Orton afc4e4c6f5 set workflow_state to merging for new user_merges
also update the updated_at to get elapsed time of user merge

Change-Id: I699365cbba2530bd6a5eab4439704b1adeecaa13
Reviewed-on: https://gerrit.instructure.com/198715
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-26 19:24:57 +00:00
Weston Dransfield da7a26af2d Compact live event payload
fixes PLAT-4773

Test Plan:
- Verify the new "compact_live_event_payloads"
  release flag is visible in the root account and
  defaults to "off"
- Enable the feature flag
- Verify null values are removed from live event
  payloads
Change-Id: I8f91ead101fa3cd81fe8553f7f8ff6e94b294128
Reviewed-on: https://gerrit.instructure.com/206307
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
Tested-by: Jenkins
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Oxana Jurosevic
2019-08-26 19:24:30 +00:00