canvas-lms/app/models
Bracken Mosbacker 58c5ab27a7 don't include muted assignments in cached grade calculations
Test Plan:
 * Have canvas and delayed jobs running
 * Create a course with some assignments
 * Give scores to some students
 * Before muting an assignment download the CSV and make sure it's same as UI
 * Mute an assignment
 * Download CSV again and the final/current scores should be different than UI
 * In gradebook UI remove grades from muted assignment (so it's as if they weren't graded)
 * The UI grades should now be the same as the CSV grades

closes #6578

Change-Id: I5774ecb899318278a02e1bc12caaa9d02fa3dac0
Reviewed-on: https://gerrit.instructure.com/7379
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-02-16 14:18:06 -07:00
..
abstract_course.rb make course terms sticky 2011-09-30 11:00:27 -06:00
access_token.rb implement oauth2 native app flow, closes #5029 2011-07-18 22:27:36 -06:00
account.rb Revert "fix cross-shard-trusted-logins refs #6883" 2012-02-06 11:09:47 -07:00
account_authorization_config.rb allow open registration for delegated authentication fixes #6673 2012-02-03 10:01:39 -07:00
account_notification.rb Remove ActiveRecord::Base.find(_all)?_cached 2011-10-05 17:50:47 -06:00
account_report.rb remove the account.root_account || account idiom 2012-01-03 11:47:33 -07:00
account_user.rb temporary and deleted users have no account associations 2012-02-08 14:37:17 -07:00
alert.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
alert_criterion.rb alerts, closes #4317 2011-08-24 10:19:44 -06:00
announcement.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
appointment_group.rb messaging from scheduler, fixes #6830 2012-02-03 15:09:53 -07:00
assessment_question.rb make question data always a HashWithIndifferentAccess 2012-02-09 16:29:54 -07:00
assessment_question_bank.rb don't repeat questions when picking from banks, fixes #4212 2011-10-19 09:42:29 -06:00
assessment_question_bank_user.rb Initial commit. 2011-01-31 18:57:29 -07:00
assessment_request.rb i18n AssessmentRequest 2011-06-09 16:43:35 -06:00
asset_user_access.rb fix names on the access report, other tweaks; fixes #4682 2011-11-01 11:56:54 -06:00
assignment.rb don't include muted assignments in cached grade calculations 2012-02-16 14:18:06 -07:00
assignment_group.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
assignment_reminder.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
attachment.rb add Attachment#root_account_id 2012-02-01 14:01:52 -07:00
attachment_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
authorization_code.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
big_blue_button_conference.rb zero-pad the voiceBridge id 2011-08-10 14:33:34 -06:00
bookmark_service.rb i18n Bookmark Service 2011-06-16 07:16:10 -06:00
calendar_event.rb allow description to be set on appointment group calendar events 2012-02-03 13:00:39 -07:00
cloned_item.rb make sure links in assessment questions are correctly translated, fixes #6012 2011-10-21 08:36:34 -06:00
collaboration.rb remove collaborations.yml dependency, refs #5796 2011-10-25 17:32:32 -06:00
collaborator.rb Initial commit. 2011-01-31 18:57:29 -07:00
communication_channel.rb normalize user_id out of notification_policies 2012-02-01 12:42:23 -07:00
content_export.rb fix content export error reporting 2011-07-11 13:32:44 -06:00
content_migration.rb don't fail when copying/importing large courses 2012-01-23 15:28:54 -07:00
content_tag.rb don't fail when copying/import invalid urls 2012-02-16 13:48:33 -07:00
context.rb clear out the wiki when resetting course content refs #4583 2011-08-24 12:37:04 -06:00
context_external_tool.rb Properly add/remove external tool tabs from nav 2012-01-24 21:15:07 -07:00
context_module.rb don't fail when copying/import invalid urls 2012-02-16 13:48:33 -07:00
context_module_progression.rb use kept_score for quizzes when evaluating module requirements 2011-08-11 10:01:39 -06:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb ensure context tags are shared by 2+ participants, fixes #7231 2012-02-13 13:29:45 -07:00
conversation_message.rb fix conversations rss links, remove unnecessary query 2012-02-14 13:31:25 -07:00
conversation_message_participant.rb ensure context tags are shared by 2+ participants, fixes #7231 2012-02-13 13:29:45 -07:00
conversation_participant.rb sent filter for conversations, fixes #7012 2012-02-08 21:06:26 -07:00
course.rb add course import notification. fixes #6930 2012-02-14 14:57:58 -07:00
course_account_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
course_assigned_group.rb Initial commit. 2011-01-31 18:57:29 -07:00
course_import.rb make course copy have lower priority 2012-01-24 15:45:26 -07:00
course_section.rb don't duplicate enrollments on sis import if all enrollments are deleted 2012-01-31 22:28:59 -07:00
delayed_message.rb fix two common delayed job errors 2011-07-06 12:37:43 -06:00
delayed_notification.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
designer_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
developer_key.rb oauth2 web app flow, refs #5029 2011-08-23 17:27:47 -06:00
dim_dim_conference.rb wimba integration, fixes #2989 2011-02-25 14:35:14 -07:00
discussion_entry.rb send notifications for discussion comments; fixes #6953 2012-02-13 09:08:40 -07:00
discussion_topic.rb send notifications for discussion comments; fixes #6953 2012-02-13 09:08:40 -07:00
document_service.rb Initial commit. 2011-01-31 18:57:29 -07:00
enrollment.rb temporary and deleted users have no account associations 2012-02-08 14:37:17 -07:00
enrollment_dates_override.rb term start/term end, rather than whenever 2011-09-13 15:20:15 -06:00
enrollment_term.rb optimize UsersController#show a bit 2011-10-06 13:42:42 -06:00
eportfolio.rb account-level option to disable eportfolios, closes #5169 2011-08-24 17:38:06 -06:00
eportfolio_category.rb localize ePortfolios 2011-06-24 13:17:25 -06:00
eportfolio_entry.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
error_report.rb more general (and slightly faster) fast distinct for postgres 2012-02-01 14:02:22 -07:00
etherpad_collaboration.rb remove collaborations.yml dependency, refs #5796 2011-10-25 17:32:32 -06:00
external_feed.rb replace usage of Date.today 2011-12-20 15:25:45 -07:00
external_feed_entry.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
external_url.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
favorite.rb added favorite courses option to main menu 2011-10-24 15:50:34 -06:00
folder.rb redirect to new files with the same path as deleted files 2011-08-10 20:58:30 -06:00
google_docs_collaboration.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebook_upload.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
grading_standard.rb improve data hygiene in GradingStandards 2011-12-15 08:32:53 -07:00
group.rb make group conferences available to course admins, fixes #6681 2012-01-17 10:23:00 -07:00
group_category.rb calendar and scheduler apis; refs #3395 2012-01-06 12:35:27 -07:00
group_membership.rb include account groups in menu regardless of enrollments 2011-10-20 15:04:52 -06:00
hashtag.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
inbox_item.rb added states so we can retire messages w/o deleting them yet 2011-08-16 21:15:26 -06:00
learning_outcome.rb drag/drop learning outcomes fixes #6720 2012-02-07 14:34:16 -07:00
learning_outcome_group.rb fix infinite recursion in outcome groups 2011-12-19 16:28:26 -07:00
learning_outcome_result.rb avoid several extra cases of saving learning outcome results 2011-05-31 13:10:33 -06:00
mailer.rb allow for configuration of outgoing email name 2011-07-21 13:33:16 -06:00
media_object.rb add Attachment#root_account_id 2012-02-01 14:01:52 -07:00
message.rb fix dashboard notifications for appointments 2012-01-10 13:40:25 -07:00
notification.rb address race condition cancelling similar messages fixes #6366 2012-02-01 14:05:14 -07:00
notification_policy.rb normalize user_id out of notification_policies 2012-02-01 12:42:23 -07:00
oauth_request.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
observer_enrollment.rb observers see all link enrollment grades for course; closes #6441 2012-02-09 10:17:23 -07:00
open_object.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_comment.rb localize PageComments 2011-06-17 08:28:33 -06:00
page_view.rb make sure the page view has created_at set for the bucketing 2012-01-23 17:05:19 -07:00
page_view_range.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
plugin_setting.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
pseudonym.rb temporary and deleted users have no account associations 2012-02-08 14:37:17 -07:00
pseudonym_session.rb make "stay logged in" use a one-time token 2011-11-22 10:15:13 -07:00
quiz.rb add option to send notifications for quizzes. fixes #2416. 2012-01-10 12:25:20 -07:00
quiz_group.rb get quiz group name when importing 2011-10-26 12:31:13 -06:00
quiz_question.rb make question data always a HashWithIndifferentAccess 2012-02-09 16:29:54 -07:00
quiz_submission.rb allow observers to see the observed quiz submissions fixes #6300 2012-01-31 12:03:43 -07:00
quiz_submission_snapshot.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
report_snapshot.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
role_override.rb hide discussions from observers; closes #6825 2012-01-18 14:49:22 -07:00
rubric.rb handle decimal points in rubrics correctly 2012-01-06 16:34:48 -07:00
rubric_assessment.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
rubric_association.rb allow ignoring learning outcomes for grading; fixes #5271 2012-02-01 13:54:07 -07:00
scribd_account.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
scribd_mime_type.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
session_persistence_token.rb make "stay logged in" use a one-time token 2011-11-22 10:15:13 -07:00
setting.rb conversations api, closes #4753 2011-09-13 09:28:57 -06:00
short_message.rb Initial commit. 2011-01-31 18:57:29 -07:00
short_message_association.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
sis_batch.rb store sis_batch_id as an integer, not a string 2012-01-11 09:14:36 -07:00
sis_batch_log_entry.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
stream_item.rb fix dashboard notifications for appointments 2012-01-10 13:40:25 -07:00
stream_item_instance.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
student_enrollment.rb fix invitees visiting unpublished courses 2012-01-20 09:11:20 -07:00
submission.rb refine conversation creation for group submissions, fixes #7212 2012-02-13 13:42:16 -07:00
submission_comment.rb refine conversation creation for group submissions, fixes #7212 2012-02-13 13:42:16 -07:00
submission_comment_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
ta_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
tableless.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
teacher_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
thumbnail.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
user.rb show mult. enroll. in groups; fixes #6998 2012-02-09 11:14:02 -07:00
user_account_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
user_note.rb User notes from conversation messages; still needs UI 2011-07-31 16:09:03 -06:00
user_profile.rb Properly add/remove external tool tabs from nav 2012-01-24 21:15:07 -07:00
user_service.rb fix user_service utc bug 2011-10-04 09:54:52 -06:00
web_conference.rb remove deprecated ruby syntax 2011-09-27 10:28:22 -06:00
web_conference_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
wiki.rb string extraction for most i18n oddities 2011-06-30 16:48:12 -06:00
wiki_namespace.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
wiki_page.rb Revert "add id to wiki page urls." 2012-01-10 10:45:48 -07:00
wiki_page_comment.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
wimba_conference.rb expose sortable name to user, fixes #5317 2011-10-31 12:22:08 -06:00
zip_file_import.rb zip_file_imports i18n 2011-06-10 08:25:15 -06:00