Go to file
Ed Schiebel 044846ef96 Refactor in preparation for publishing canvas-media on npm
closes MAT-108
flag=none

Primary changes revolved around getting canvas-media to talk to RCS
instead of directly to canvas. This necessitated passing more
info from canvas -> rce -> canvas-media so it can connect.

In the process, merged the 2 functions that uploaded closed captions
into one.

the change in root.js that lazy loads tinyRCE is to get the
canvas-rce bundle size below size limits, which it blew
after a rebase.

test plan:
  This should work with you config/dynamic_settings.yml
  development.config.canvas.rich-content-service.app-host
  value = 'http://host:port'
  or simply 'host:port'

  - in the RCE, upload a video with closed caption
    using the Media > Upload/Record command.
  > expect the video to show up with CC
  - edit the captions in the video options tray
  > expect the captions to be updated
  > bonus result: no console warning about missing file.name
    prop from ClosedCaptionPanel

  - in the RCE, open Upload Document and select
    a video.
  > expect the video to upload an show up.

  - create a media recording type assignment
  - enable the "Assignment Enhancements - Student" feature
  - as a student, visit the assignment
  - click the "Recort/Upload" button
  > expect the video upload and CC feature to work as expected
  > bonus fix: the CCs should be at the bottom of the video

Change-Id: I7b574bb67998072324954a6b481e0c4d3b3251de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/264109
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeff Largent <jeff.largent@instructure.com>
QA-Review: Jeff Largent <jeff.largent@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2021-05-07 21:13:06 +00:00
.github update github pr auto-assignees 2020-09-24 20:00:41 +00:00
.storybook Storybook config fixes 2021-04-23 19:46:51 +00:00
Gemfile.d bump rails 2021-05-05 20:35:53 +00:00
app Allow settings MSFT sync availability in root account 2021-05-07 18:41:05 +00:00
bin add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
build fix parameter name linter issues 2021-05-07 14:27:56 +00:00
config update nn translation 2021-05-07 05:58:40 +00:00
db/migrate create notification preferences for mentions 2021-05-05 19:02:14 +00:00
doc Fix the location of the LTI privacy_level key in docs 2021-05-04 17:59:40 +00:00
docker-compose include debug output for pulsar bootstrap script 2021-05-03 19:39:53 +00:00
engines add frozen_string_literal comment to engines and gems 2021-03-30 18:14:15 +00:00
frontend_build add WEBPACK_ANALYSIS and WEBPACK_PEDANTIC flags 2021-05-05 19:59:46 +00:00
gems add backend permission changes for manage courses granulars 2021-04-30 21:29:00 +00:00
hooks fix pre-commit hook with unfixable eslint error 2018-11-27 23:28:12 +00:00
jest Adds K-5 schedule tab jump to navigation button 2021-04-21 18:19:45 +00:00
lib Show admin consent link in account settings 2021-05-06 15:39:22 +00:00
log Update parallel_runtime_rspec.log from build 209 2021-05-05 14:44:33 +00:00
packages Refactor in preparation for publishing canvas-media on npm 2021-05-07 21:13:06 +00:00
public free dinosaur from surrounding text 2021-04-19 19:50:05 +00:00
script add telemetry support for zsh 2021-05-03 16:37:09 +00:00
spec Fix inline previews for legacy file links 2021-05-07 20:02:58 +00:00
tmp Alpine canvas-lms based image 2020-07-15 17:21:56 +00:00
ui Refactor in preparation for publishing canvas-media on npm 2021-05-07 21:13:06 +00:00
.codeclimate.yml disable ESLint in code climate 2017-02-14 17:47:39 +00:00
.dive-ci Spec: Add dive build 2020-03-26 14:52:06 +00:00
.dockerignore modernize canvas_quizzes 2021-01-14 22:45:10 +00:00
.editorconfig Add EditorConfig configuration file to help maintain code style 2016-11-15 20:08:55 +00:00
.eslintignore add WEBPACK_ANALYSIS and WEBPACK_PEDANTIC flags 2021-05-05 19:59:46 +00:00
.eslintrc.js rename some things 2021-04-06 01:12:49 +00:00
.gitignore add support for mutagen setup and update. 2021-04-27 19:46:36 +00:00
.gitmessage prepend some blank lines to .gitmessage 2019-08-09 16:12:53 +00:00
.groovylintrc.json fix VariableName linter issues 2021-05-06 20:17:43 +00:00
.i18nignore (re) decentralize i18nliner configuration 2021-03-10 18:52:49 +00:00
.i18nrc rename some things 2021-04-06 01:12:49 +00:00
.lintstagedrc.js Remove prettier whitelist 2019-10-11 19:29:31 +00:00
.npmrc fix brand config previewing and skipping 2015-10-27 16:16:15 +00:00
.nvmrc upgrade to node14 2021-01-27 15:33:52 +00:00
.prettierrc restore prettier rules to match pre-2.0 defaults 2021-02-09 17:03:14 +00:00
.rubocop.yml require latest IRB 2021-04-05 16:03:14 +00:00
.stylelintrc modernize canvas_quizzes 2021-01-14 22:45:10 +00:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md rename some things 2021-04-06 01:12:49 +00:00
COPYRIGHT
Dockerfile make pulsar tests wait for pulsar stability before running 2021-04-21 18:50:03 +00:00
Dockerfile.githook Add precommit hook for auto fixing files 2018-11-27 21:07:31 +00:00
Dockerfile.jenkins make pulsar tests wait for pulsar stability before running 2021-04-21 18:50:03 +00:00
Dockerfile.jenkins-cache rename some things 2021-04-06 01:12:49 +00:00
Dockerfile.jenkins.final simplify Dockerfile template generation 2020-12-10 17:28:58 +00:00
Dockerfile.jenkins.karma-builder cache JS runner image 2021-02-03 19:30:30 +00:00
Dockerfile.jenkins.karma-runner disable translations for Jenkins build 2021-02-08 16:03:06 +00:00
Dockerfile.jenkins.linters-runner stop using buildkit for linters image 2021-04-12 19:19:32 +00:00
Dockerfile.jenkins.webpack-builder split yarn from webpack-builder into yarn-runner 2020-12-14 18:49:51 +00:00
Dockerfile.jenkins.webpack-cache disable translations for Jenkins build 2021-02-08 16:03:06 +00:00
Dockerfile.jenkins.yarn-runner remove "exports" from all @instructure/ packages 2021-01-15 19:39:02 +00:00
Dockerfile.package-translations say PLEASE to npx when running yarn-deduplicate 2021-03-02 21:58:31 +00:00
Gemfile add frozen_string_literal comment to Gemfile and Rakefile 2021-03-30 17:51:26 +00:00
Jenkinsfile apply autoformatter to all files 2021-05-03 14:07:45 +00:00
Jenkinsfile.cassandra move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.contract-tests add podTemplate and container definition to all applicable stages 2021-04-27 19:47:25 +00:00
Jenkinsfile.dive move execute function under libraryScript 2021-01-12 00:32:08 +00:00
Jenkinsfile.docker-smoke add support for mutagen setup and update. 2021-04-27 19:46:36 +00:00
Jenkinsfile.docker-sync mirror apachepulsar/pulsar:latest to starlord 2021-04-27 17:39:03 +00:00
Jenkinsfile.dynamodb move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.js add podTemplate and container definition to all applicable stages 2021-04-27 19:47:25 +00:00
Jenkinsfile.master-bouncer-check-all move execute function under libraryScript 2021-01-12 00:32:08 +00:00
Jenkinsfile.package-translations move execute function under libraryScript 2021-01-12 00:32:08 +00:00
Jenkinsfile.parallel_logs Revert "Revert "add the ability to load local shared library"" 2021-03-24 21:30:59 +00:00
Jenkinsfile.postgres move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.redis move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.selenium-chrome move selenium-chrome build to helper job 2020-12-08 14:41:39 +00:00
Jenkinsfile.selenium.flakey_spec_catcher add podTemplate and container definition to all applicable stages 2021-04-27 19:47:25 +00:00
Jenkinsfile.selenium.performance.chrome move execute function under libraryScript 2021-01-12 00:32:08 +00:00
Jenkinsfile.test-subbuild remove print-env-excluding-secrets 2020-08-12 20:49:03 +00:00
Jenkinsfile.vendored-gems include docker logs for pulsar container anytime it fails to bootstrap 2021-05-04 16:19:33 +00:00
Jenkinsfile.xbrowser move execute function under libraryScript 2021-01-12 00:32:08 +00:00
LICENSE
README.md Update README.md since Canvas is still modern 2016-12-15 03:18:28 +00:00
Rakefile add frozen_string_literal comment to Gemfile and Rakefile 2021-03-30 17:51:26 +00:00
babel.config.js Fix the build 2019-09-17 21:26:07 +00:00
bower.json Move k5uplodaer to /packages 2019-05-10 18:30:51 +00:00
code_of_conduct.md contributor code of conduct 2014-12-23 18:13:59 +00:00
config.ru add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
docker-compose.new-jenkins-contract-tests.yml remove unnecessary directory creation for webpack-cache 2020-12-10 18:49:55 +00:00
docker-compose.new-jenkins-flakey-spec-catcher.yml update fsc to go into the plugin directory to do tests 2020-06-17 14:58:09 +00:00
docker-compose.new-jenkins-js.yml disable translations for Jenkins build 2021-02-08 16:03:06 +00:00
docker-compose.new-jenkins-package-translations.yml Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
docker-compose.new-jenkins-selenium.yml update jenkins for canvas-rce-api image 2020-12-07 16:40:09 +00:00
docker-compose.new-jenkins.canvas.yml Spec: add `init: true` to jenkins builds 2020-06-16 14:09:58 +00:00
docker-compose.new-jenkins.consumer.yml skip uglify js / source maps on pre-merge builds v2 2020-08-11 21:05:54 +00:00
docker-compose.new-jenkins.pulsar.yml stop using a pulsar volume in jenkins build 2021-05-05 22:46:26 +00:00
docker-compose.new-jenkins.vendored-gems.yml extract canvas::redis to canvas_cache 2021-03-02 14:38:55 +00:00
docker-compose.new-jenkins.yml enable rails 6 for testing 2020-10-23 14:49:00 +00:00
docker-compose.spring.yml modernize canvas_quizzes 2021-01-14 22:45:10 +00:00
docker-compose.yml build ruby image in docker_dev_setup 2020-07-28 18:23:47 +00:00
gulpfile.js rename some things 2021-04-06 01:12:49 +00:00
issue_template.md Update community urls to reflect platform move 2020-08-12 20:17:02 +00:00
jest.config.js rename some things 2021-04-06 01:12:49 +00:00
karma.conf.js fix JS job sanity around COVERAGE var 2021-01-27 16:24:14 +00:00
package.json add WEBPACK_ANALYSIS and WEBPACK_PEDANTIC flags 2021-05-05 19:59:46 +00:00
ubuntu.development.Dockerfile rename some things 2021-04-06 01:12:49 +00:00
ubuntu.production.Dockerfile say PLEASE to npx when running yarn-deduplicate 2021-03-02 21:58:31 +00:00
webpack.config.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
webpack.test.config.js rename some things 2021-04-06 01:12:49 +00:00
yarn.lock Refactor in preparation for publishing canvas-media on npm 2021-05-07 21:13:06 +00:00

README.md

Canvas LMS

Canvas is a modern, open-source LMS developed and maintained by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.

Please see our main wiki page for more information

Installation

Detailed instructions for installation and configuration of Canvas are provided on our wiki.