Commit Graph

40244 Commits

Author SHA1 Message Date
Davis Hyer 1be8227b97 add base trophy case page
refs VICE-574
flag=trophy_case

test plan:
  ** WITHOUT enabling trophy_case flag **
  - open the user profile tab
    - there should be no link to the trophy case page
  ** WITH enabling trophy_case flag **
  - open the user profile tab
    - there should be a link to the trophy case page
    - clicking the link should take you to /trophy_case

qa risk: low

Change-Id: I3b3ade661b509a2fc42f6ccf532cd4dcff7ceb3d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240870
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
QA-Review: Matthew Lemon <mlemon@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2020-06-24 21:04:09 +00:00
Ethan Vizitei 58f188a064 connection-light find_in_batches strategy
Change-Id: If069b0dedd6209016a17b3b7963ca855b670b8c8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/241048
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-06-24 20:21:04 +00:00
Jeffrey Johnson ff76bc756d Updating Keyboard Shortcut Modal trigger to alt+f8 fixes VICE-552
Test plan
- Pull down change for testing
- Open a course with announcement or discussions
- Open an announcement or discussion
- Tab through page to see Shortcut announcement with Alt + F8 shortcut
- Alt + F8 should open shortcut modal

Expect
- Shortcut text to state Alt + F8
- Alt + F8 should open Keyboard shortcut modal
- Shift + ? should no longer open Keyboard shortcut modal

Change-Id: I04773894cb596d4c5dc66a0d972de2dbb6e1df2a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240661
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Daniel Sasaki <dsasaki@instructure.com>
2020-06-24 18:34:39 +00:00
Cody Cutrer 23f02efeff reload dynamic_settings.yml on HUP
Change-Id: I832ab48389d54abc2ea4162a1d5a0d0e00c20ce7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240959
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
2020-06-24 17:13:36 +00:00
Keith T. Garner c04f5e0970 add sisId fields to graphql and allow searching
This allows reporting of sis_source_id/sis_user_id as sisId on various
objects in graphql: account, assignmentGroup, assignment, course,
groupSet, group, section, term, and user. For top level searchable
objects (account, assignment, assignmentGroup, course, term) you can
search by either the _id or the sisId. If both are supplied to a query,
an error is returned.

closes PLAT-5272

test plan:
 - Seed your canvas instances with at least one of each type above that
   has a source_source_id (or in the case of user,
   user.pseudonym.sis_user_id)
 - As a user with either read_sis or manage_sis permissions:
   - Perform queries in graphql using those sisIds that were set for
     account, assignment, assignmentGroup, course, term.
   - Note that the queries return the correct objects
   - Perform searches that return the list of objects in the commit
     description and return the sisId
   - Note that the quieries return the correct sisIds
 - As a user without read_sis nor manage_sis permissions:
   - Perform searches that return the list of objects in the commit
     description and return the sisId
   - Note that the sisIds are returned as null

Change-Id: Id549ea93ff770cd29b227607973835266196a704
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/236718
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Karl Lloyd <karl@instructure.com>
2020-06-24 17:09:50 +00:00
Jenkins cdca89d9fc update mi translation
Change-Id: I7a213d6883c61fbf86dd7dc03cef80dad276482e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/241043
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-24 15:12:41 +00:00
Jeremy Stanley 766f24b963 remove unused code
Change-Id: I686fe02bf60aac4835b11fe1e6096b398b4962ab
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240901
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Williams <jamesw@instructure.com>
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2020-06-23 23:30:37 +00:00
Aaron Ogata db6da7986f only pull selenium images if needed
Change-Id: I3d534cec5e9bacde5f8989d254b95354eb540a19
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240826
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2020-06-23 22:47:09 +00:00
Davis Hyer 1d56586a20 add trophy_case feature flag
flag=trophy_case

also updates team file to new name

test plan:
  - n/a

qa risk: low

Change-Id: I463f27792aa8ec6912bbd280d8070125f23a48a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240850
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
QA-Review: Matthew Lemon <mlemon@instructure.com>
Product-Review: Matthew Lemon <mlemon@instructure.com>
2020-06-23 20:50:57 +00:00
Matthew Lemon c7247d3efd ensure that root_account_ids are sorted
fixes VICE-575
flag=none

/ ---- ---- \
| Test Plan |
\ ---- ---- /

- specs pass
- create a conversation
- add some additional root account ids to it
- verify that the root_account_ids are sorted

Change-Id: I3b603ae6a9b390cb22b8acb6517db8fefa69c812
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240965
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-23 20:49:41 +00:00
Ethan Vizitei d8aa101fab auditors migration handle missing courses
refs CNVS-48876
flag = none

TEST PLAN:
  1) run auditors repairing
  2) no course job errors out with failed FK check

Change-Id: I7bf569c810e48939fca4a54d7a93860d4129b183
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240939
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-06-23 17:43:59 +00:00
Mysti Lilla b8dc8380d3 Create submission subscriptions on plagiarism tools
closes PLAT-5765
flag=none

Test plan
- When you create a plagiarism tool
  (tool that has the similarity detection
  placement) it should create and save
  a live events subscription id on the
  tool
- The subscription should have an associated
  integration id created with it

Change-Id: Ia6d29c61f25fddaea46478469bdd668e7aa39509
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/239210
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
2020-06-22 23:03:30 +00:00
Aaron Ogata 619a2d76c0 spec: wait for student context tray spinner to disappear
Fix the root issue behind the flakey spec, but it still fails FSC due to the spec taking too long. Skipping test and leaving this to LS-849 to fix.

refs CCI-375, LS-849

flag = none

Change-Id: Ie7b20483bfafa2a84f22da78988d6879c9691833
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240689
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2020-06-22 18:58:43 +00:00
Ethan Vizitei f93a737510 don't schedule off-shard accounts
Change-Id: Icf6a4301c6bcda7accf30c60696e93af77eb2a24
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240828
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-06-22 17:48:43 +00:00
Cody Cutrer 2104f18723 bump switchman
Change-Id: I338233b47d41f0fd64726d4f1457ffa0acc9aa2c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240627
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-06-22 16:23:44 +00:00
Cody Cutrer e45056f453 make web-app-manifest/manifest.json dynamic
fixes USERS-364

so that branded icons are properly shown

test plan:
 * use the theme editor and upload a custom icon for Mobile
   Homescreen Icon
 * on an Android device, bookmark the canvas website to your homescreen
 * you should see your custom icon

NOTE: because this uses the existing brand config variable, apple and
android will now share an icon, whereas they have differed in the past

Change-Id: Ibb1e6da5a42dae630a04651071618b2504a7f3ce
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/229636
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Jonathan Fenton <jfenton@instructure.com>
2020-06-22 16:22:59 +00:00
Cody Cutrer 2ffd2cecca better region selection logic for migrations
allow a list of regions, as well as negating the option

Change-Id: Ic306c1999854f94bdfd8a9257735eb16525ed6f3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240535
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-06-22 16:11:25 +00:00
Derek Bender c3c4f6bf9a Spec: Improve build config calls
Without this change we were calling the same config functions
over and over and that was muddying up the logs and didn't
seem especially fast either due to the load() in the
underlying function.

Change-Id: Ia37869ca84604ec2723212d1be46a446f57a1a6e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240190
Reviewed-by: James Butters <jbutters@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2020-06-22 12:57:59 +00:00
Derek Bender 1cabb02b1c spec: improve rspec-tests.sh
Change-Id: Ic7af36d9d18aa94e83d2efdbdeaf8c8f35b90aa2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240311
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-06-22 12:57:36 +00:00
Ethan Vizitei b54209319b auditors migration handle missing users
refs CNVS-48876
flag = none

TEST PLAN:
  1) run auditors repairing
  2) no job errors out with failed FK check

Change-Id: I6ca783a0966325bee82d91e0b5bf1190f017fa40
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240805
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-06-21 14:57:27 +00:00
Jenkins 1ed0bcac56 update zh-Hant translation
Change-Id: I26b4e099d25e9cacb6e6099bf2182763eba53661
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240778
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 06:00:29 +00:00
Jenkins fa0197faf0 update zh-Hans translation
Change-Id: I1f484e34f96a9fcaf4d8916f1ca3c8219bf02e81
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240777
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 06:00:05 +00:00
Jenkins d1b1091608 update sv-x-k12 translation
Change-Id: Ib92c9070a423254d26fe9479b7c9bbed49db12db
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240776
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:59:41 +00:00
Jenkins c59b7a1c32 update sv translation
Change-Id: Id34f85e0e7905e78db9a0064d6eaac6757a21451
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240775
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:59:23 +00:00
Jenkins 4491e143c4 update ru translation
Change-Id: I10d429ba9d5f22c13cf8c9acf1cd49e30f124c89
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240774
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:59:02 +00:00
Jenkins d7de797c92 update pt-BR translation
Change-Id: Ia3d73b5861fc0e05d8ad90cc96700bc3aca97652
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240773
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:58:40 +00:00
Jenkins 416536fb9e update pt translation
Change-Id: I06d8167a6b49891c1e4e4995ed53fb8c68a871c6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240772
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:58:19 +00:00
Jenkins c9999ae872 update pl translation
Change-Id: I3cf9a66039f7372c7ff4cb763bcf735e24858f6b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240771
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:57:59 +00:00
Jenkins 048bdbd851 update nl translation
Change-Id: I4450de2d6d1a9997baf6947e6499dddfcf7e3f76
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240770
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:57:38 +00:00
Jenkins 68660eabbe update nb-x-k12 translation
Change-Id: I2f14d544802e4a77c21c4cd6b39a21344cdc804e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240769
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:57:18 +00:00
Jenkins e95a0ac3eb update nb translation
Change-Id: I677cd6d4a8e4fad28aba87410fd8a256ef6306de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240768
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:57:00 +00:00
Jenkins c3c5eeaab6 update ja translation
Change-Id: Ie75c3ae60b2c2f53218399c9c49939c51940212d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240767
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:56:24 +00:00
Jenkins 28ba3cc0b3 update it translation
Change-Id: I951be0d58c22e6647897ceb4fe650d556cb1152e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240766
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:56:00 +00:00
Jenkins 2ab71f88c7 update is translation
Change-Id: I8d039a4c23a0a0bab22752923e8c91b62745ef4a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240765
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:55:42 +00:00
Jenkins 79ebe3d971 update ht translation
Change-Id: I73d5141c4b02d9aabc51432f207d8fc7efabce19
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240764
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:55:23 +00:00
Jenkins c4428ad797 update fr-CA translation
Change-Id: Icc9151ef61b82b5fb92052f834884d2218bf252a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240763
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:55:04 +00:00
Jenkins f6d58b6e0a update fr translation
Change-Id: I606de75934dff79d9cc9b98bb8a61397ed07e330
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240762
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:54:43 +00:00
Jenkins f0f6b3c30b update fi translation
Change-Id: I3c405e2f581f52c2a7bb904875d0622e27f52c9d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240761
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:54:22 +00:00
Jenkins a7b1c38a51 update es translation
Change-Id: Id055ac9573d4d9db4447e9c1118145321d249527
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240760
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:54:05 +00:00
Jenkins fae35c1c80 update en-GB translation
Change-Id: If33ad07d4204a97a8053e5e9a253f1ab7fa101dd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240758
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:53:33 +00:00
Jenkins 2fb2e39223 update en-CA translation
Change-Id: I100e783f6f39b76a1a88032a1adca22d4fac3ae2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240757
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:53:13 +00:00
Jenkins e2fb44fdbf update en-AU translation
Change-Id: I4a4fc1e5ebf0447c53715ab7db11ff5fdfb37616
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240756
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:52:55 +00:00
Jenkins 33593723b5 update de translation
Change-Id: I9635295bff15020ffa9a794c154c3aa9fd2ecfa7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240755
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:52:35 +00:00
Jenkins a666dee309 update da-x-k12 translation
Change-Id: Ib3ebb2b7369a68dd982dd94fde20d0fda511e34f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240754
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:52:15 +00:00
Jenkins 1f2b65182d update da translation
Change-Id: I4e64189aa47d8c8a3a542eb1e210b89ceb86066f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240753
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:51:57 +00:00
Jenkins beadac49a0 update cy translation
Change-Id: Id4fc567785b6d6027986d40b4f59b1768b3d2853
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240752
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:51:37 +00:00
Jenkins cd28ace77f update ar translation
Change-Id: I2eea0eacfbe36b2cdb83df41321e27270f8926cc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240751
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 05:51:18 +00:00
Jenkins a5e23bbccb [i18n] Update package translations
Change-Id: Iab727965cd51fe71dff6513631d71b44143f9ec4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240750
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-20 04:54:45 +00:00
Matthew Lemon 2d5c43101c set root_account on communication_channels
fixes VICE-338
flag=none

/ ---- ---- \
| Test Plan |
\ ---- ---- /

- specs pass
- Create a pseudonym for a user and a communication channel
- Open your rails console and grab the communication channel
  - cc = CommunicationChannel.last
- Verify that the root_account_id is set on the communication channel
  and that it matches the pseudonym account
  - cc.root_account_id

Change-Id: I7bf7979779577b9fa0372ce6c8b00913ad41809c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/239316
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2020-06-19 23:40:07 +00:00
Matthew Lemon ec8040c720 update root_account_ids on conversations tables
fixes VICE-341
flag=none

/ ---- ---- \
| Test Plan |
\ ---- ---- /

- Create a conversation
- Grab that conversation and add another root account id to it
  - c = Conversation.last
  - c.root_account_ids = [1,2] # assumes normal account and site admin
  - c.save!
- Check that the conversation participants root_account_ids now includes
  the added root_account_id
  - c.conversation_participants.first.root_account_ids
- Check that the conversation messages root_account_ids now includes the
  added root_account_id
  - c.conversation_messages.first.root_account_ids
- Check that the conversation message participants root_account_ids now
  includes the added root_account_id
  - c.conversation_message_participants.first.root_account_ids

Change-Id: I949bd25001d18303d6e79bd07dc7d3494166b84c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240730
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-06-19 23:39:34 +00:00