![]() The grade calculator was throwing an error when computing scores for a grading period for users with deleted enrollments. It will no longer throw an error in that scenario. closes CNVS-34643 1. Set up a course that is using grading periods with at least two active students. 2. Open a rails console. 3. Find the course. course = Course.find(2) 4. Find an active student in the course. student = course.students.active.first 5. Destroy all the student's enrollments. student.enrollments.destroy_all 6. Get a grading period ID for a grading period being used by the course. grading_period_id = GradingPeriod.for(course).first.id 7. Run the grade calculator for the student in the grading period and verify no errors are thrown. GradeCalculator.recompute_final_score( student.id, course.id, grading_period_id: grading_period_id ) Change-Id: If576c62fed75666c259d4753e8e7e7aeb1a135c9 Reviewed-on: https://gerrit.instructure.com/100961 Reviewed-by: Jeremy Neander <jneander@instructure.com> Reviewed-by: Neil Gupta <ngupta@instructure.com> Reviewed-by: Keith T. Garner <kgarner@instructure.com> Tested-by: Jenkins Reviewed-by: Derek Bender <djbender@instructure.com> Reviewed-by: Rob Orton <rob@instructure.com> QA-Review: KC Naegle <knaegle@instructure.com> Product-Review: Keith T. Garner <kgarner@instructure.com> |
||
---|---|---|
Gemfile.d | ||
app | ||
bin | ||
build | ||
client_apps | ||
config | ||
db/migrate | ||
doc | ||
docker-compose | ||
frontend_build | ||
gems | ||
guard | ||
lib | ||
public | ||
script | ||
spec | ||
.babelrc | ||
.bowerrc | ||
.codeclimate.yml | ||
.dockerignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.common.js | ||
.eslintrc.js | ||
.gitignore | ||
.i18nignore | ||
.i18nrc | ||
.jshintrc | ||
.npmrc | ||
.nvmrc | ||
.rubocop.yml | ||
.selinimumignore | ||
.stylelintrc | ||
.travis.yml | ||
CONTRIBUTING.md | ||
COPYRIGHT | ||
Dockerfile | ||
Gemfile | ||
Guardfile | ||
LICENSE | ||
README.md | ||
Rakefile | ||
bower.json | ||
code_of_conduct.md | ||
config.ru | ||
docker-compose.override.yml | ||
docker-compose.yml | ||
gulpfile.js | ||
issue_template.md | ||
karma.conf.js | ||
package.json | ||
webpack.config.js | ||
webpack.production.config.js | ||
webpack.test.config.js |
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.