canvas-lms/app/models
Matthew Berns aa8b5f6dc8 Updates teacher learning mastery gradebook for fancy math
fixes CNVS-11656

test plan:
- enable the teacher and student learning mastery gradebook feature flags
- go to gradebook and select the Learning Mastery tab
- outcome scores per student and aggregate totals should appear the same as
  they do on master
- hover mouse over outcome title to trigger popover
- popover should include a path to the outcome, as well as a pie graph with a
  key to the right of it that shows colors for 'exceeds expectations',
  'meets expectation', and 'does not meet expectations'
- popver should then show mastery points needed, outcome description,
  then a content box that includes the calculation method, along with
  method description/example.
- click a student name to go to student learning mastery gradebook
- all things should appear the same was as they did on
  https://gerrit.instructure.com/#/c/45777/ excluding a minor change to
  the wording for most recent assessment
- masquerade as a student and go to /grades in a course
- all popover content should still be the same as when viewing this page as a
  teacher

Change-Id: Ibe4214a4217c4fb42824e66934b49dccff13fe17
Reviewed-on: https://gerrit.instructure.com/48004
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
Tested-by: Jenkins
2015-02-28 00:56:25 +00:00
..
alerts fix teacher interaction report to work with submission comments 2015-02-06 18:54:59 +00:00
assignments DA - remove dupe grading counts 2015-02-27 20:02:03 +00:00
attachments lay groundwork for transitioning to smarter attachment verifiers 2015-02-26 17:17:30 +00:00
auditors log auditor events to the rails log 2014-07-23 14:26:25 +00:00
broadcast_policies only broadcast grade changes to active students 2014-12-16 22:12:24 +00:00
context_module_progressions rework module progressions evaluation 2014-05-01 16:42:07 +00:00
courses fix delayed alerts for courses with only section-limited teachers 2014-10-30 16:07:12 +00:00
data_exports_api validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
discussion_topic no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
enrollment don't record recent activity for unauthorized actions 2014-09-23 14:34:00 +00:00
exporters explicitly add directories to zip exports 2014-11-26 18:05:41 +00:00
group_categories allow group leadership edits on group categories 2014-10-10 20:42:06 +00:00
importers match true/false answers on text if response_id fails 2015-02-23 17:07:24 +00:00
incoming_mail i18nliner(.rb) 2014-10-29 21:59:39 +00:00
live_assessments updated learning outcome to retain eval method and info for weighted methods 2014-12-16 01:04:28 +00:00
lti add simple caliper endpoint for logging a page view 2015-02-02 22:31:36 +00:00
messages Use source user as "FROM" for emails 2014-05-31 01:02:14 +00:00
polling restrict roles visible to javascript to @domain_root_account 2014-11-04 19:42:12 +00:00
quizzes Ensure submission is complete before showing answers 2015-02-27 18:29:50 +00:00
abstract_course.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
access_token.rb push notifications 2015-01-15 22:19:24 +00:00
account.rb Adds date check for terms of use 2015-02-24 17:07:56 +00:00
account_authorization_config.rb add idp initiated saml logout 2014-11-04 22:58:56 +00:00
account_notification.rb show cross-shard notifications for built-in roles 2015-02-24 01:11:14 +00:00
account_notification_role.rb new roles 2014-10-31 19:44:14 +00:00
account_report.rb make account reports a gem 2014-11-03 22:57:35 +00:00
account_user.rb refactor grading standards controller 'index' action 2015-02-12 17:00:08 +00:00
alert.rb new roles 2014-10-31 19:44:14 +00:00
alert_criterion.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
announcement.rb don't let students reply to announcements if locked 2015-02-06 15:05:02 +00:00
appointment_group.rb Scheduler will now load with multiple course section sub contexts 2015-01-09 18:29:56 +00:00
appointment_group_context.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
appointment_group_sub_context.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
assessment_question.rb Check version when finding questions from a pool 2015-02-23 16:56:03 +00:00
assessment_question_bank.rb Fix quiz questions from banks 2014-12-15 17:38:13 +00:00
assessment_question_bank_user.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assessment_request.rb give more access to peer reviews 2014-08-08 16:18:45 +00:00
asset_user_access.rb fix asset_user_access spec 2014-10-10 16:30:03 +00:00
assignment.rb add logging around grade recomputation 2015-02-19 22:12:49 +00:00
assignment_group.rb hide unpublished assignments on index page for logged out users in public course 2015-02-09 20:19:56 +00:00
assignment_override.rb DA - quiz/submission/discussion notifications 2014-10-03 22:08:27 +00:00
assignment_override_student.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assignment_student_visibility.rb DA - module evaluation efficiency 2014-10-28 19:11:47 +00:00
attachment.rb don't create thumbnails for very large images 2015-02-23 20:43:05 +00:00
attachment_association.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
auditors.rb rework error handling in event stream 2014-08-28 21:19:24 +00: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 text change for bigbluebutton recording setting 2015-02-24 13:23:21 +00:00
bookmark_service.rb Fix Diigo API Calls 2014-10-28 17:00:50 +00:00
bounce_notification_processor.rb bounced email handling 2014-09-04 16:48:13 +00:00
calendar_event.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
canvadoc.rb handle crocodoc/canvadocs timeouts when creating sessions 2014-10-30 23:05:44 +00:00
cloned_item.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
collaboration.rb Google Drive Collaborations & Submissions 2015-02-18 16:02:25 +00:00
collaborator.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
communication_channel.rb push notifications 2015-01-15 22:19:24 +00:00
content_export.rb don't copy assignment groups on selective copy 2015-02-25 16:52:35 +00:00
content_migration.rb gemify qti_exporter 2015-01-15 01:10:47 +00:00
content_participation.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
content_participation_count.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
content_tag.rb DA - unions on content_tag and discussion_topic scopes 2014-12-11 19:05:02 +00:00
context.rb properly hide discussions tab if unused 2015-02-19 15:56:09 +00:00
context_external_tool.rb Add LTI configuration placement (course and account) 2015-01-29 17:52:13 +00:00
context_external_tool_placement.rb migrate has_X context_external_tool columns to separate table 2014-08-12 12:13:42 +00:00
context_module.rb don't lock students out of modules unless requested 2015-02-20 17:20:20 +00:00
context_module_item.rb avoid dynamic finders on an assocition with an include 2014-02-21 12:52:39 +00:00
context_module_progression.rb don't lock students out of modules unless requested 2015-02-20 17:20:20 +00:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb no more dynamic finders 2014-10-03 16:22:49 +00:00
conversation_batch.rb CC author on conversation create 2014-09-26 22:23:00 +00:00
conversation_message.rb improve distinct_on 2014-11-05 05:43:58 +00:00
conversation_message_participant.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
conversation_participant.rb make for_masquerading_user scope check global ids also 2015-01-26 23:46:33 +00:00
course.rb turnitin: use a unique identifier for courses 2015-02-27 22:05:18 +00:00
course_account_association.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
course_import.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
course_profile.rb improve acts_as_list 2013-12-17 19:55:43 +00:00
course_progress.rb make course progress API more resilient 2014-09-23 17:39:22 +00:00
course_section.rb allow moving users in concluded courses to unconcluded sections 2015-02-19 20:46:14 +00:00
crocodoc_document.rb handle crocodoc/canvadocs timeouts when creating sessions 2014-10-30 23:05:44 +00:00
custom_data.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
custom_gradebook_column.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
custom_gradebook_column_datum.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
delayed_message.rb don't send summaries to bouncing channels 2015-02-27 23:56:58 +00:00
delayed_notification.rb avoid extraneous queries to Notification 2014-09-09 21:54:16 +00:00
designer_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
developer_key.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
discussion_entry.rb remove remnants of canvas collections 2015-02-27 21:58:39 +00:00
discussion_entry_participant.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
discussion_topic.rb remove remnants of canvas collections 2015-02-27 21:58:39 +00:00
discussion_topic_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
document_service.rb Initial commit. 2011-01-31 18:57:29 -07:00
enrollment.rb update cache_key for temporary invitations 2015-01-22 16:48:01 +00:00
enrollment_dates_override.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
enrollment_term.rb don't allow terms with active courses to be deleted 2015-02-02 13:36:02 +00:00
eportfolio.rb ensure there is a default eportfolio page 2014-08-14 23:15:09 +00:00
eportfolio_category.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
eportfolio_entry.rb fixes timestamp on eportfolio page 2015-02-26 22:00:17 +00:00
error_report.rb s/ActionController/ActionDispatch/ 2014-09-24 19:29:09 +00:00
etherpad_collaboration.rb don't re-calculate the etherpad url when a new user joins 2013-11-08 21:45:44 +00:00
external_feed.rb cleanup and prevent duplicate external feeds 2015-02-13 17:35:34 +00:00
external_feed_entry.rb prevent duplicate announcements from migrated external feeds 2015-02-06 14:59:31 +00:00
external_integration_key.rb add external integration keys 2014-11-21 01:19:24 +00:00
external_url.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
favorite.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
feature_flag.rb spread feature flag cache around a ring 2015-02-03 01:05:24 +00:00
folder.rb copy-folder and copy-file endpoints 2015-02-09 22:13:55 +00:00
google_docs_collaboration.rb Google Drive Collaborations & Submissions 2015-02-18 16:02:25 +00:00
gradebook_upload.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
grading_period.rb set up permissions for grading periods 2015-02-21 00:25:21 +00:00
grading_period_grade.rb Grading Period Grade join table - MGP 2014-12-11 17:28:33 +00:00
grading_period_group.rb set up permissions for grading periods 2015-02-21 00:25:21 +00:00
grading_standard.rb refactor grading standards controller 'index' action 2015-02-12 17:00:08 +00:00
group.rb graded discussion edit permissions 2015-02-19 22:57:33 +00:00
group_category.rb refresh subtopics when a group is added 2015-02-06 20:55:08 +00:00
group_leadership.rb Automatically Assign group leaders 2014-05-23 17:23:53 +00:00
group_membership.rb invalidate user's cached groups on membership update 2014-12-12 20:21:41 +00:00
ignore.rb give more access to peer reviews 2014-08-08 16:18:45 +00:00
importers.rb fix autoloading of the Importers module 2014-07-25 19:14:12 +00:00
inbox_item.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
kaltura_media_file_handler.rb Send global root_account_id to Kaltura in partner_data 2014-08-19 21:32:40 +00:00
learning_outcome.rb allows deletion of alignments from outcomes/show 2015-02-19 23:14:06 +00:00
learning_outcome_group.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
learning_outcome_result.rb updated learning outcome to retain eval method and info for weighted methods 2014-12-16 01:04:28 +00:00
live_assessments.rb improve AR::all_models for non-eager-loading 2014-07-14 15:56:49 +00:00
lti.rb add lti2 models and registration endpoints 2014-07-18 16:42:10 +00:00
mailer.rb drop cc and bcc from messages 2015-02-18 19:41:26 +00:00
media_object.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
media_source_fetcher.rb Prefer mp3 for audio comments in api_user_content 2014-04-30 20:00:13 +00:00
media_track.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
message.rb send push notifications to apns sandbox 2015-02-26 17:32:46 +00:00
migration_issue.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
notification.rb use url helpers in messages 2015-02-18 23:07:57 +00:00
notification_endpoint.rb push notifications 2015-01-15 22:19:24 +00:00
notification_finder.rb gemify broadcast policy 2014-09-24 11:35:33 +00:00
notification_policy.rb ensure all notification policy creation handles unique constraint violations 2014-12-02 18:56:33 +00:00
notification_preloader.rb avoid extraneous queries to Notification 2014-09-09 21:54:16 +00:00
notifier.rb gemify broadcast policy 2014-09-24 11:35:33 +00:00
oauth_request.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
observer_enrollment.rb DA - quiz/submission/discussion notifications 2014-10-03 22:08:27 +00:00
open_object.rb simplify OpenStruct/OpenObject json serialization 2013-08-29 16:44:13 +00:00
page_comment.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
page_view.rb the cassandra migrator does not need to be shard aware 2015-01-12 22:23:26 +00:00
plugin_setting.rb spread plugin settings around a cache ring 2015-02-02 23:32:55 +00:00
polling.rb improve AR::all_models for non-eager-loading 2014-07-14 15:56:49 +00:00
polymorphic_type_override.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
profile.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
progress.rb submissions bulk grading api 2015-01-05 13:31:44 +00:00
pseudonym.rb Revert "add :read and :read_sis permissions on pseudonym" 2014-12-08 01:50:00 +00:00
pseudonym_session.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
report_snapshot.rb clarify Slug vs. UUID and fix event stream 2014-07-11 16:58:42 +00:00
role.rb show cross-shard notifications for built-in roles 2015-02-24 01:11:14 +00:00
role_override.rb add new permission and API endpoint for manage_catalog 2015-02-06 19:45:20 +00:00
rollup_score.rb Updates teacher learning mastery gradebook for fancy math 2015-02-28 00:56:25 +00:00
rubric.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
rubric_assessment.rb updated learning outcome to retain eval method and info for weighted methods 2014-12-16 01:04:28 +00:00
rubric_association.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
scribd_mime_type.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
session_persistence_token.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
setting.rb no more dynamic finders (models) 2014-09-24 20:51:48 +00:00
sharded_bookmarked_collection.rb extract bookmarked_collection gem 2014-04-17 18:16:13 +00:00
sis_batch.rb SIS CSV diffing 2015-02-26 15:53:01 +00:00
sis_post_grades_status.rb Add validation to the post grades model 2015-01-07 23:27:25 +00:00
stream_item.rb invalidate stream_item_instances during destroy_stream_items 2014-12-16 20:26:42 +00:00
stream_item_instance.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
student_enrollment.rb DA - enrollment deletion works 2014-09-25 22:01:02 +00:00
student_view_enrollment.rb fix viewing test student grades by teacher 2014-05-30 04:35:59 +00:00
submission.rb add logging around grade recomputation 2015-02-19 22:12:49 +00:00
submission_comment.rb fix teacher interaction report to work with submission comments 2015-02-06 18:54:59 +00:00
submission_comment_interaction.rb fix teacher interaction report to work with submission comments 2015-02-06 18:54:59 +00:00
submission_comment_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
submission_version.rb validations on Version and SubmissionVersion 2014-12-12 23:29:45 +00: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 don't create thumbnails for very large images 2015-02-23 20:43:05 +00:00
usage_rights.rb add new variable expansions for attachments 2015-02-19 17:12:38 +00:00
user.rb Domain restrictions work for google drive 2015-02-24 16:26:20 +00:00
user_account_association.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_note.rb stabby lambda scopes for rails4 2014-07-04 02:11:56 +00:00
user_observer.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_profile.rb fix link to user files when newfiles is turned on 2014-11-14 16:28:46 +00:00
user_profile_link.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_service.rb Add google drive plugin and user service 2015-02-11 18:07:05 +00:00
web_conference.rb use Rails' base_class 2014-09-30 21:14:22 +00:00
web_conference_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
wiki.rb fix legacy wiki front page behavior 2015-01-22 14:33:36 +00:00
wiki_page.rb remove non-draft-state everything 2014-12-10 17:57:18 +00:00
wimba_conference.rb handle wimba conference date parsing in ruby18/ruby19. 2013-02-08 12:43:19 -07:00
zip_file_import.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00