Go to file
Tucker McKnight f9fa2d57a0 spec: Throw a ForeignKeyNotSatisfied if an assignment doesn't exist
When creating an AssignmentOverride for the CDC schema tests,
it currently fills in 1 for assignment_id.

Any required integer field is auto-filled with a 1, so we're
assuming that an assignment exists with an ID of 1. This isn't
a safe assumption, so look for an actual assignment instead, and
throw a ForeignKeyNotSatisfied error if there isn't one yet.

(ForeignKeyNotSatisfied will push this model to the back of the queue
and try to create it later, after other models have been created.)

Change-Id: I6dea6e5e6e0c553a3ba261f47565fc1dda95ce7f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248890
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Evan Battaglia <ebattaglia@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
2020-09-30 18:48:22 +00:00
.github update github pr auto-assignees 2020-09-24 20:00:41 +00:00
Gemfile.d bump rubocop version to 0.68.0 to support ruby 2.6 2020-09-29 16:09:54 +00:00
app add View Ungraded as 0 view option to Gradebook 2020-09-30 18:47:39 +00:00
bin Add canvas_lms as a consumer 2020-08-27 18:24:30 +00:00
build clean-up FSC plugin path 2020-09-29 22:48:11 +00:00
client_apps Change canvas_quizzes dependencies to use https:// instead of git:// 2020-06-30 21:41:15 +00:00
config add View Ungraded as 0 view option to Gradebook 2020-09-30 18:47:39 +00:00
db/migrate bump rubocop version to 0.68.0 to support ruby 2.6 2020-09-29 16:09:54 +00:00
doc Update getting_docker.md 2020-09-02 03:31:49 +00:00
docker-compose use chromium instead of google-chrome-beta 2020-09-15 22:13:48 +00:00
frontend_build add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
gems fix race condition on report runners 2020-09-29 22:47:34 +00:00
hooks fix pre-commit hook with unfixable eslint error 2018-11-27 23:28:12 +00:00
jest Make type filter searchable on courses main list 2020-05-19 01:24:11 +00:00
lib spec: Throw a ForeignKeyNotSatisfied if an assignment doesn't exist 2020-09-30 18:48:22 +00:00
log Update parallel_runtime_rspec.log from build 90 2020-09-28 14:25:20 +00:00
packages fix closed captioning sidebar label 2020-09-29 19:08:55 +00:00
pact Include context_name in planner item response 2018-08-29 22:20:52 +00:00
public Allow direct share for teachers in concluded term 2020-09-29 15:21:21 +00:00
script add docker-smoke build 2020-09-14 23:12:35 +00:00
spec add View Ungraded as 0 view option to Gradebook 2020-09-30 18:47:39 +00:00
tmp Alpine canvas-lms based image 2020-07-15 17:21:56 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +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 Alpine canvas-lms based image 2020-07-15 17:21:56 +00:00
.editorconfig Add EditorConfig configuration file to help maintain code style 2016-11-15 20:08:55 +00:00
.eslintignore Run prettier on packages/ 2019-10-11 19:29:16 +00:00
.eslintrc.js update build to load es modules from subpackages 2020-06-03 13:41:38 +00:00
.gitignore Alpine canvas-lms based image 2020-07-15 17:21:56 +00:00
.gitmessage prepend some blank lines to .gitmessage 2019-08-09 16:12:53 +00:00
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility 2015-02-18 22:55:20 +00:00
.i18nrc upgrade to node 6 2016-08-09 23:37:07 +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 require node 10.16 for brotli support 2020-04-03 19:48:37 +00:00
.prettierrc Add .prettierrc so it matches our existing code 2017-11-03 16:21:50 +00:00
.rubocop.yml bump rubocop version to 0.68.0 to support ruby 2.6 2020-09-29 16:09:54 +00:00
.stylelintrc remove uses of whitelist and blacklist 2020-09-18 15:58:40 +00:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md Add CLA FAQ from legal 2018-01-22 16:41:44 -05:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Dockerfile pin passenger version to p6.0.4 2020-09-15 21:20:58 +00:00
Dockerfile.githook Add precommit hook for auto fixing files 2018-11-27 21:07:31 +00:00
Dockerfile.jenkins pin passenger version to p6.0.4 2020-09-15 21:20:58 +00:00
Dockerfile.package-translations Create shared translation infrastructure for packages 2019-11-06 22:42:03 +00:00
Gemfile drop rails 5.1 2019-08-01 14:09:31 +00:00
Jenkinsfile move dependencies_ hardcoded vars into canvas-builds 2020-09-30 13:56:54 +00:00
Jenkinsfile.cassandra move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.contract-tests report contract test errors to Jenkins 2020-08-31 19:36:54 +00:00
Jenkinsfile.dive protect against retriable errors in docker pull 2020-07-02 14:03:48 +00:00
Jenkinsfile.docker-smoke add docker-smoke build 2020-09-14 23:12:35 +00:00
Jenkinsfile.dynamodb move helper images into own build 2020-09-15 21:47:15 +00:00
Jenkinsfile.js fix JS failures 2020-09-14 16:24:01 +00:00
Jenkinsfile.master-bouncer-check-all use shared library for configuration 2020-06-18 18:36:49 +00:00
Jenkinsfile.package-translations use shared library for configuration 2020-06-18 18:36:49 +00:00
Jenkinsfile.parallel_logs fix for parallel log build 2020-08-03 17:18:30 +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.flakey_spec_catcher don’t report aborted build as timed out 2020-09-30 17:13:16 +00:00
Jenkinsfile.selenium.performance.chrome Send slack message on failure 2020-07-28 18:29:49 +00:00
Jenkinsfile.test-subbuild remove print-env-excluding-secrets 2020-08-12 20:49:03 +00:00
Jenkinsfile.vendored-gems protect vendored-gems against spot instance failures 2020-07-27 18:09:50 +00:00
Jenkinsfile.xbrowser use shared library for configuration 2020-06-18 18:36:49 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md Update README.md since Canvas is still modern 2016-12-15 03:18:28 +00:00
Rakefile use parallel_tests for more parallelization 2020-03-30 21:38:47 +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 remove extra logging to debug Passenger connection orphan issue 2017-07-14 16:27:03 +00:00
docker-compose.new-jenkins-contract-tests.yml Push canvas-as-a-consumer http contracts to pact broker 2020-08-31 17:49:08 +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-karma.yml Alpine canvas-lms based image 2020-07-15 17:21:56 +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 upgrade to latest release of selenium docker image 2020-06-30 11:40:30 +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.vendored-gems.yml Spec: add `init: true` to jenkins builds 2020-06-16 14:09:58 +00:00
docker-compose.new-jenkins.yml new build for parallel log generation 2020-07-31 17:27:02 +00:00
docker-compose.spring.yml bump all docker-compose files to 2.3 2020-07-28 20:44:44 +00:00
docker-compose.yml build ruby image in docker_dev_setup 2020-07-28 18:23:47 +00:00
gulpfile.js add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
issue_template.md Update community urls to reflect platform move 2020-08-12 20:17:02 +00:00
jest.config.js add conference ui to calendar details page 2020-04-30 18:06:11 +00:00
karma.conf.js Allow forcing a failure in each JS stage 2020-01-20 21:18:25 +00:00
package.json update Microsoft Immersive Reader SDK 2020-08-27 15:41:17 +00:00
ubuntu.development.Dockerfile genericize dockerfile writer 2020-08-10 17:13:40 +00:00
ubuntu.production.Dockerfile genericize dockerfile writer 2020-08-10 17:13:40 +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 spec: split coffeescript job 2020-07-17 17:39:35 +00:00
yarn.lock Add Usage Rights option to image upload 2020-09-03 20:29:55 +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.