canvas-lms/app/models
Nick Cloward feb9644b0f fix sis_batch id in course activity
fixes: CNVS-13302

Fixes the sis imports to log the sis batch correctly and to display the sis
batch on the details modal in the auditing ui.

Test Plan:

- Do a SIS import for a course.
- Open the Course Activity Audit logging and the sis batch id for the course
  should be shown in the dialog.
- If the source for an event is not SIS the sis batch field will not be shown.

Change-Id: Ib93a992dac83b2ec480d888e5d4686b808bcda8f
Reviewed-on: https://gerrit.instructure.com/35475
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
2014-05-28 16:14:22 +00:00
..
alerts move all DelayedJob Alert code into separate class 2014-05-02 21:48:55 +00:00
attachments use binmode for s3 download file 2014-04-14 16:25:49 +00:00
auditors fix sis_batch id in course activity 2014-05-28 16:14:22 +00:00
broadcast_policies assignment created notifications only on publish 2013-12-11 17:30:42 +00:00
context_module_progressions rework module progressions evaluation 2014-05-01 16:42:07 +00:00
courses extract student to teacher mapping 2014-05-02 21:47:31 +00:00
data_exports_api data export api 2014-03-07 22:31:43 +00:00
discussion_topic fix discussion topic materialized view for sharding 2014-02-26 15:17:44 +00:00
enrollment API tweaks to support querying upcoming enrollments/courses 2014-05-23 18:50:25 +00:00
group_categories Automatically Assign group leaders 2014-05-23 17:23:53 +00:00
importers consolidate multiple external tools on cc import 2014-05-23 23:22:37 +00:00
incoming_mail extract incoming mail into gem 2014-04-25 23:06:02 +00:00
lti refactor variable substitution out of the models 2014-05-21 14:58:01 +00:00
polling fix poll session visibility after it's closed 2014-05-23 14:49:16 +00:00
quizzes remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
abstract_course.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
access_token.rb support for trusted developer keys 2014-04-16 23:18:19 +00:00
account.rb apply dual timezone filters 2014-05-23 19:01:34 +00:00
account_authorization_config.rb split yaml file loading out of Setting 2014-05-21 18:27:06 +00:00
account_notification.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
account_notification_role.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
account_report.rb use a single query instead of n queries to fetch latest account reports 2014-02-27 22:06:53 +00:00
account_user.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
alert.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
alert_criterion.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
announcement.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
appointment_group.rb more optimization for scheduler 2014-05-13 17:02:50 +00:00
appointment_group_context.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
appointment_group_sub_context.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assessment_question.rb migration refactor: account question banks import 2014-05-12 16:30:10 +00:00
assessment_question_bank.rb remove alignments when a question bank is deleted 2014-05-24 14:47:17 +00:00
assessment_question_bank_user.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assessment_request.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
asset_user_access.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assignment.rb add integration_data to assignment table 2014-05-23 21:55:32 +00:00
assignment_group.rb migration refactor: account question banks import 2014-05-12 16:30:10 +00:00
assignment_override.rb AssignmentOverrides refactor 2014-05-16 21:12:45 +00:00
assignment_override_student.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
attachment.rb retain attachment content_type on cross shard user merge 2014-05-21 19:29:35 +00: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 BBB: request recordings only if conference was recorded 2013-12-18 22:45:56 +00:00
bookmark_service.rb i18n Bookmark Service 2011-06-16 07:16:10 -06:00
calendar_event.rb more optimization for scheduler 2014-05-13 17:02:50 +00:00
canvadoc.rb canvadocs: configurable mime types 2014-05-13 18:48:07 +00:00
cloned_item.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
collaboration.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
collaborator.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
communication_channel.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
content_export.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
content_migration.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
content_participation.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
content_participation_count.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
content_tag.rb fix renaming quiz module items 2014-05-19 23:54:22 +00:00
context.rb don't use query cache for course active tab configuration 2014-04-07 15:53:27 +00:00
context_external_tool.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
context_module.rb add option to open external url module items in new tab 2014-05-21 11:55:54 +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 define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb fix deadlock between stream items and conversations touching users 2014-05-20 20:10:56 +00:00
conversation_batch.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
conversation_message.rb remove old conversations and conversation submission comments 2014-05-12 23:38:34 +00:00
conversation_message_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
conversation_participant.rb remove old conversations and conversation submission comments 2014-05-12 23:38:34 +00:00
course.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +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 course progress API fix for deleted/unpublished module items 2014-05-03 04:39:44 +00:00
course_section.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
crocodoc_document.rb canvadocs 2014-05-09 22:38:57 +00:00
custom_data.rb add serializable hash of CustomData for User models 2014-03-24 21:52:43 +00:00
custom_gradebook_column.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
custom_gradebook_column_datum.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
delayed_message.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
delayed_notification.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
designer_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
developer_key.rb split yaml file loading out of Setting 2014-05-21 18:27:06 +00:00
discussion_entry.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
discussion_entry_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
discussion_topic.rb migration refactor: account question banks import 2014-05-12 16:30:10 +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 record enrollment time on task 2014-05-23 22:58:10 +00:00
enrollment_dates_override.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
enrollment_term.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
eportfolio.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
eportfolio_category.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
eportfolio_entry.rb validate length of eportfolio_entries.name and slug 2014-05-07 23:23:31 +00:00
error_report.rb include hostname and pid in error reports 2014-05-15 19:20:43 +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 remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
external_feed_entry.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
external_url.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
favorite.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
feature_flag.rb feature flags infrastructure and API 2013-11-19 20:50:03 +00:00
folder.rb make resolve_path API operate relative to course root 2014-05-27 22:21:11 +00:00
google_docs_collaboration.rb Move google_docs code into a gem 2014-04-25 21:50:43 +00:00
gradebook_upload.rb prepare for foreign keys refs #6895 2012-05-10 09:46:05 -06:00
grading_standard.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
group.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
group_category.rb apply dual timezone filters 2014-05-23 19:01:34 +00:00
group_leadership.rb Automatically Assign group leaders 2014-05-23 17:23:53 +00:00
group_membership.rb Automatically Assign group leaders 2014-05-23 17:23:53 +00:00
ignore.rb arel-ify models 2013-04-01 18:42:38 +00:00
inbox_item.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
learning_outcome.rb import/export learning outcome alignments 2014-05-14 12:31:11 +00:00
learning_outcome_group.rb only try to import active outcomes and groups 2014-05-14 12:31:29 +00:00
learning_outcome_result.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
mailer.rb moving mail processor to module 2014-04-25 23:05:39 +00:00
media_object.rb create media objects on the account's shard 2014-05-09 14:57:43 +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 remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
migration_issue.rb validate nullness in the db on a bunch of columns 2013-09-12 22:20:39 +00:00
notification.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
notification_policy.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
oauth_request.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
observer_enrollment.rb arel-ify models 2013-04-01 18:42:38 +00:00
open_object.rb simplify OpenStruct/OpenObject json serialization 2013-08-29 16:44:13 +00:00
page_comment.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
page_view.rb fix cassandra page view sharding issue 2014-05-20 21:55:09 +00:00
plugin_setting.rb fix plugin setting after_initialize for rails 3 compatibility 2014-01-20 17:03:52 +00:00
polymorphic_type_override.rb rails3: fix issues with polymorphic type overrides 2014-02-28 21:15:57 +00:00
profile.rb add explicit table_name for Profile class 2013-12-31 18:52:15 +00:00
progress.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
pseudonym.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
pseudonym_session.rb rails3: fix issues found in integration/security_spec 2014-03-05 05:35:50 +00:00
report_snapshot.rb extract auto_handle to new canvas_uuid gem 2014-02-25 19:30:59 +00:00
role.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
role_override.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
rubric.rb migration refactor: account question banks import 2014-05-12 16:30:10 +00:00
rubric_assessment.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
rubric_association.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
scribd_mime_type.rb set ScribdMimeType shard category for rails 3 2014-01-22 20:15:33 +00:00
session_persistence_token.rb fix session persistence tokens for out-of-shard users 2013-06-27 20:01:47 +00:00
setting.rb no more Setting backcompat 2014-05-27 19:20:39 +00:00
sharded_bookmarked_collection.rb extract bookmarked_collection gem 2014-04-17 18:16:13 +00:00
sis_batch.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
stream_item.rb fix deadlock between stream items (touching) and stream items (fk checks) 2014-05-15 05:30:36 +00:00
stream_item_instance.rb validate nullness in the db on a bunch of columns 2013-09-12 22:20:39 +00:00
student_enrollment.rb Minor fixes to StudentEnrollment associations. 2012-05-04 16:46:43 -06:00
student_view_enrollment.rb student view; closes #6995 2012-04-03 14:11:07 -06:00
submission.rb remove old conversations and conversation submission comments 2014-05-12 23:38:34 +00:00
submission_comment.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
submission_comment_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
submission_version.rb make data fixup resilient to missing submission rows 2013-11-11 23:31:36 +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 extract auto_handle to new canvas_uuid gem 2014-02-25 19:30:59 +00:00
user.rb remove some of the less useful associations from export 2014-05-27 15:44:00 +00:00
user_account_association.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_note.rb validate length of user_notes.title 2014-05-07 22:24:28 +00:00
user_observer.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_profile.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_profile_link.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
user_service.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
web_conference.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
web_conference_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
wiki.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
wiki_page.rb migration refactor: account question banks import 2014-05-12 16:30:10 +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 use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00