canvas-lms/app/models
James Williams 298a1a5242 don't raise error in course export if external tool is missing
test plan:
* create a course with an external tool with a navigation tab
* permanently delete the tool in the console:

 ContextExternalTool.delete_all(:context_id => <INSERT COURSE ID HERE>)

* set a course setting (such as the tab configuration)
* copy the course
* should retain the course settings

fixes #CNVS-13661

Change-Id: Id3d810282e3eff3bc9cb0b98cdb96af73a503a28
Reviewed-on: https://gerrit.instructure.com/36531
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
2014-06-18 19:49:44 +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 new publish and un-publish course buttons 2014-06-16 21:56:14 +00:00
broadcast_policies prevent notifications when a course is soft concluded 2014-06-11 19:36:34 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +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 assessment question bank migration content selection 2014-06-05 19:56:03 +00:00
incoming_mail extract incoming mail into gem 2014-04-25 23:06:02 +00:00
live_assessments live assessments api 2014-06-10 14:53:40 +00:00
lti refactor variable substitution out of the models 2014-05-21 14:58:01 +00:00
messages Use source user as "FROM" for emails 2014-05-31 01:02:14 +00:00
polling clean up permission blocks a little 2014-06-12 22:10:41 +00:00
quizzes Quiz Stats - Set sanity limits 2014-06-13 22:57:44 +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 remove some associations from the set of exportables 2014-06-13 21:23:54 +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 allow report titles to be translatable 2014-06-09 20:04:43 +00:00
account_user.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
alert.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
alert_criterion.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
announcement.rb prevent notifications when a course is soft concluded 2014-06-11 19:36:34 +00:00
appointment_group.rb clean up permission blocks a little 2014-06-12 22:10:41 +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 migration refactor: account question banks import 2014-05-12 16:30:10 +00:00
assessment_question_bank.rb clean up permission blocks a little 2014-06-12 22:10:41 +00:00
assessment_question_bank_user.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
assessment_request.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
asset_user_access.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
assignment.rb fix another assignment editing bug 2014-06-17 20:23:42 +00:00
assignment_group.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 get instead of post to create crocodoc_sessions 2014-06-17 20:23:21 +00:00
attachment_association.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
canvadoc.rb canvadocs: configurable mime types 2014-05-13 18:48:07 +00:00
cloned_item.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
collaboration.rb clean up permission blocks a little 2014-06-12 22:10:41 +00:00
collaborator.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
communication_channel.rb fix duplicate unretired communication channels 2014-05-28 19:16:50 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +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 live assessments api 2014-06-10 14:53:40 +00:00
context.rb prevent notifications when a course is soft concluded 2014-06-11 19:36:34 +00:00
context_external_tool.rb don't raise error in course export if external tool is missing 2014-06-18 19:49:44 +00:00
context_module.rb ignore unpublished module items for course progress 2014-06-02 22:56:46 +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 fix module unlocking via date 2014-05-28 22:41:59 +00:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb conversations: update unread count only for recipients 2014-06-17 16:50:00 +00:00
conversation_batch.rb faculty journal entries for multiple student recipients 2014-05-29 22:12:04 +00:00
conversation_message.rb conversations: never send replies by email to multiple recipients 2014-06-10 15:46:44 +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 new publish and un-publish course buttons 2014-06-16 21:56:14 +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 ignore unpublished module items for course progress 2014-06-02 22:56:46 +00:00
course_section.rb remove unused switch_role functionality 2014-06-12 22:03:07 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
delayed_notification.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 clean up permission blocks a little 2014-06-12 22:10:41 +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 don't create observer enrollments in foreign root accounts 2014-06-06 18:25:58 +00:00
enrollment_dates_override.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
enrollment_term.rb remove some associations from the set of exportables 2014-06-13 21:23:54 +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 clean up permission blocks a little 2014-06-12 22:10:41 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
external_feed_entry.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 feature flags infrastructure and API 2013-11-19 20:50:03 +00:00
folder.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
google_docs_collaboration.rb Move google_docs code into a gem 2014-04-25 21:50:43 +00:00
gradebook_upload.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
grading_standard.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
group.rb group leaders can edit group name 2014-05-28 19:52:42 +00:00
group_category.rb validate types on polymorphic associations 2014-05-28 17:05: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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
inbox_item.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
learning_outcome.rb clean up permission blocks a little 2014-06-12 22:10:41 +00:00
learning_outcome_group.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
learning_outcome_result.rb live assessments api 2014-06-10 14:53:40 +00:00
mailer.rb Use source user as "FROM" for emails 2014-05-31 01:02:14 +00:00
media_object.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 Use source user as "FROM" for emails 2014-05-31 01:02:14 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
page_view.rb profile: fix valid page views context 2014-06-05 15:45:53 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +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 add user observee api endpoint 2014-06-17 20:31:18 +00:00
rubric.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
rubric_assessment.rb remove unused session variables 2014-06-12 16:11:18 -06:00
rubric_association.rb clean up permission blocks a little 2014-06-12 22:10:41 +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 validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
stream_item_instance.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
student_enrollment.rb Minor fixes to StudentEnrollment associations. 2012-05-04 16:46:43 -06:00
student_view_enrollment.rb fix viewing test student grades by teacher 2014-05-30 04:35:59 +00:00
submission.rb new publish and un-publish course buttons 2014-06-16 21:56:14 +00:00
submission_comment.rb validate types on polymorphic associations 2014-05-28 17:05:34 +00:00
submission_comment_participant.rb define exportable attributes/associations on models 2014-05-06 23:54:24 +00:00
submission_version.rb validate types on polymorphic associations 2014-05-28 17:05:34 +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 associations from the set of exportables 2014-06-13 21:23:54 +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 clean up permission blocks a little 2014-06-12 22:10:41 +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 clean up permission blocks a little 2014-06-12 22:10:41 +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