Commit Graph

40234 Commits

Author SHA1 Message Date
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
Mysti Lilla d5ddea29b1 Add associated_integration_id to plagiarism live events
closes PLAT-5766
flag=none

Test plan
- Planning to test this on beta once it's there
  as that will be easier than trying to test it
  locally
- We'll want to install a fresh Plagiarism tool
  at an account
- Verify that the plagiarism subscription IS receiving
  events for assignments that are linked to the tool
- Verify that the plagiarism subscription IS NOT receiving
  events for assignments that are not linked to the
  tool
- Verify that regular subscriptions are still receiving
  events for both linked and non-linked assignments

Change-Id: I59a1f5f6d1c061dfcd50c1efa2788173875d2231
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240369
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Guymon <mguymon@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
2020-06-19 20:27:27 +00:00
Matthew Lemon d4c4a58f74 set root_account_id on calendar_events
fixes VICE-337
flag=none

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

- Create a calendar event
- Open your rails console and grab that event
  - ce = CalendarEvent.last
- Verify that the calendar event has the `root_account_id` set

Change-Id: Idb170103a71711dd87d37fe77968b89986f1965c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240639
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2020-06-19 19:16:46 +00:00
Ed Schiebel 65de2ba0fa Guard against no @current_user in fullstory code snippet
Under some circumstances I cannot reproduct, the fullstory snippet
gets loaded when there is no @current_user defined, which blows up
the call to FS.identify(@current_user.global_id) preventing the user
from loading the login page. This PS adds a guard
so that we don't load the snipped if there is no user.

We think it may be caused when the session times out rather than actively
logging out?

closes LS-1145
flag=enable_fullstory

test plan:
  - do whatever Robin did to make it happen and see that it doesn't?

Change-Id: Id1722a63befceee36d3c40dd1b1305ea931ed06f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240647
QA-Review: Robin Kuss <rkuss@instructure.com>
Reviewed-by: James Williams <jamesw@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-06-19 18:45:27 +00:00
Drake Harper 8183d4f112 Add informative text to past global announcements
Test plan:
-verify informative text is shown on both tabs in global announcements

closes VICE-555

flag=past_announcements

Change-Id: Ic70b9f6d7abb9fd0c44f53a086669a6f5c2e00a3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240421
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Laura Leavitt <lleavitt@instructure.com>
2020-06-19 16:55:57 +00:00
James Williams 56effa3991 implement conditional release assignment releasing on grading
test plan:
* enable the native conditional editor (see plan for g/239985)
* set up a course some assignments assigned to "Mastery Paths"
 so they're only visible to students with overrides
* use the editor to create a trigger assignment that can
 release the hidden assignments
* as a student, submit to the trigger assignment
* as a teacher, grade the trigger assignment with a
score that will release a hidden assignment
* as the student, confirm that the newly released assignment
 is visible

closes #LS-1062

Change-Id: Id17a06807c8c668ec95c86acc6f95846c5394efc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240338
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2020-06-19 16:46:52 +00:00
Charley Kline 01d434fab0 Fix up some <Table> usage to comply with InstUI 7.0
Refs USERS-624
flag=none

A bunch of calls to the InstUI <Table> component are
still using "plain old HTML" <tr> <th> <td> etc inside
them, which is a no-no as of InstUI 7.0. This commit
addresses some of them (about half, I think).

Testing this is mostly a matter of observing the affected
displays in the UI and making sure they still look normal.
Note that some subtle changes to the UI may have occurred
due to the InstUI Canvas theme being used rather than the
original Canvas CSS, but everything in here looks just
fine to my eye.

Test plan:
* all tests pass
* The "act as" modal dialog still looks good
* Adding people to courses (duplicate section, missing
  people section, and the "people ready list") still
  all looks good
* Developer key table still looks good

Change-Id: I20d2c0c88d9050eb73be33e8c26c951a90bc6160
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240161
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2020-06-19 15:00:01 +00:00
Jackson Howe f0b8f0ab2c Change 'view feed' link in calendar to make more accessible
In the calendar feed modal (on /calendar), there is a link to view the
calendar feed. This link is ambiguous to SR-only users, so this commit
changes the link text to make its purpose more clear.

Fixes LS-1134
flag=none

Test plan:
 - Go to /calendar
 - Click 'Calendar Feed' in right sidebar
 - Link should say 'Click to view Calendar Feed'

Change-Id: I61eff0594655b092e866ed82fd88c0e92f7f7ba6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240517
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2020-06-19 14:57:58 +00:00
Jeremy Stanley af6a38619c add progress bar for content migration uploads
test plan:
 - you should see a progress bar appear while
   uploading a file for a content migration
   (zip, common cartridge, etc.).
 - the spinner should not appear when a
   progress bar is present
 - the spinner should still show up for migrations
   that do not involve an upload (e.g., course copy)
 - if you attempt to upload a file that would exceed
   your quota, the progress bar should not remain visible
   and the submit button should not stay "Uploading..."
 - if you complete a migration upload and start another,
   you should not briefly see a 100% progress bar
   appear before going back to 0 and starting again
 - if you attempt to start a migration that requires an
   upload without actually choosing a file to upload,
   you should get an appropriate error and the
   "Uploading..." message should not persist

closes LA-1112

flag = none

Change-Id: I632885b1b8cf257f087cda9577867e2a21840785
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/239555
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
2020-06-19 05:30:56 +00:00
August Thornton 50d042af15 accept the last page view send beacon request
Page view interaction is capped to a minimum of 5 seconds to a
maximum of 10 minutes or 600 seconds.

If self.interaction_seconds(or an instantiated PageView object) is nil
we will default to 5 seconds

If seconds > 5 we'll return the interaction_seconds to the UI
else we'll return the string '--' in place of interaction_seconds

In application controller we do a before_action `set_page_view`
if it's a user request and the request method is GET. We do an
after_action `log_page_view` if it's not a user request, but Javascript.
We explicitly look for `is request.xhr?` before logging the page view
and interaction seconds. For us to log the last page view without it
getting cancelled on page unload is by firing off a `sendBeacon()`
HTTP request. For this request to make it through the `log_page_view`
method we need to identify it by the proper response format and make the
strict XHR check be an OR.

fixes USERS-14
flag = none

Test plan:
* turn on page views
* go to a page and sit there for more than 30 seconds
* clear your rails log and your browser log
* click to go to a new page
* you should see a request in your browser Network log to
  page_views/xxxx-xxxx-xxx-xx-xxx?page_view_token=xxxx
* look at your rails server logs, you should see something like:
  Processing by PageViewsController#update as */*
  Parameters: {"interaction_seconds"=>"1005”, …
  ”id"=>"36bcbd62-3a11-44bc-8dd2-69410050ff74"}
* as an Admin check that user's page views and verify in the
  Time column an integer representing seconds of page interaction
  is logged for the proper route used to test

Change-Id: I972011058201997661a83c1b9365f5971e0ca72f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240128
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
2020-06-19 00:17:37 +00:00
Jacob Burroughs 8e9cac93eb Make account registration work for keyboard only
Change-Id: Iaa882c863e1ea540bc1cd6a61313507cccfea741
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240098
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2020-06-18 22:17:11 +00:00