canvas-lms/app/models
Brad Horrocks d3d4cc58e0 Set lti_context_id on course copy, set previous ids recursively
Previous context ids variable substitution, is now recursive

Fixes GOOF-255
Fixes GOOF-238

Test plan:
- Create "Course A" as "teacher 1", add cloud assignment
- Create "Course B" as "teacher 2", Import "Course A"
- Create "Course C" as "teacher 2", Import "Course B", visit "Course C" Cloud Assignment

It should work

Change-Id: I23590d298f8c79e7b5b008ee3cb748d19c58f6c7
Reviewed-on: https://gerrit.instructure.com/132670
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
QA-Review: Mark McDermott <mmcdermott@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2017-11-17 21:24:56 +00:00
..
account Add Observers and Unenrolled options for help link availability 2017-11-06 22:05:31 +00:00
account_authorization_config use canvas_login_url instead of login_canvas_url 2017-10-17 15:45:04 +00:00
alerts drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
assignment Show resubmit button for more originality report states 2017-11-17 19:05:03 +00:00
assignments da licença part 8 2017-04-27 21:33:20 +00:00
attachments don't worry about deleted children in attachment gc 2017-07-18 20:03:39 +00:00
auditors add current grade to new gradebook history 2017-09-06 15:43:17 +00:00
bookmarks da licença part 9 2017-04-27 21:33:39 +00:00
broadcast_policies bypass the wiki model as much as possible for wiki_pages 2017-08-09 16:09:06 +00:00
communication_channel da licença part 10 2017-04-28 17:30:08 +00:00
conditional_release allow for nil context 2017-10-07 12:46:33 +00:00
context_module_progressions cache progression and item visibility data on courses 2017-08-24 16:46:26 +00:00
courses cache progression and item visibility data on courses 2017-08-24 16:46:26 +00:00
discussion_topic still pull discussion entries missing from materialized view 2017-07-11 16:10:54 +00:00
enrollment da licença part 11 2017-04-27 21:36:17 +00:00
epub_exports da licença part 11 2017-04-27 21:36:17 +00:00
exporters fix zip file exports with files over 64kb 2017-08-31 14:14:52 +00:00
group_categories da licença part 12 2017-04-27 21:36:29 +00:00
importers Tool settings import/export 2017-11-15 19:22:17 +00:00
incoming_mail use notification_service in cases that bypass the Message model 2017-07-31 21:49:05 +00:00
live_assessments da licença part 13 2017-04-27 21:51:17 +00:00
lti Revert "Accept signed JWT tokens as the sourcedid for basic outcomes" 2017-11-17 16:02:55 +00:00
master_courses master courses: fix updating question bank questions 2017-11-17 17:11:08 +00:00
messages protect against missing message context 2017-09-25 17:15:36 +00:00
moderated_grading fix for moderated grading in DocViewer 2017-07-18 22:13:39 +00:00
page_view filter page views by accessible accounts 2017-11-08 18:22:38 +00:00
polling da licença part 14 2017-04-28 17:30:12 +00:00
quizzes master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
users da licença part 16 2017-04-27 21:51:21 +00:00
version da licença part 16 2017-04-27 21:51:21 +00:00
wiki_pages da licença part 16 2017-04-27 21:51:21 +00:00
abstract_course.rb da licença part 8 2017-04-27 21:33:20 +00:00
access_token.rb fix remember me for /auth/userinfo tokens 2017-11-16 18:48:03 +00:00
account.rb grandfather soc2 compliant users from accepting 2017-11-13 22:04:08 +00:00
account_authorization_config.rb add workflow_state to account_users 2017-08-01 18:31:37 +00:00
account_notification.rb include parent sub-account chain in global announcement search 2017-11-08 18:18:54 +00:00
account_notification_role.rb da licença part 8 2017-04-27 21:33:20 +00:00
account_report.rb allow aborting account reports 2017-05-03 18:34:02 +00:00
account_user.rb add workflow_state to account_users 2017-08-01 18:31:37 +00:00
alert.rb add workflow_state to account_users 2017-08-01 18:31:37 +00:00
alert_criterion.rb da licença part 8 2017-04-27 21:33:20 +00:00
announcement.rb allow account admins to view initial_post locked subtopics 2017-10-12 16:07:23 +00:00
application_record.rb Add Lti Link model for LTI 2 launches 2017-10-02 22:32:18 +00:00
appointment_group.rb select all subsections when creating an appointment group 2017-11-01 21:38:22 +00:00
appointment_group_context.rb da licença part 8 2017-04-27 21:33:20 +00:00
appointment_group_sub_context.rb da licença part 8 2017-04-27 21:33:20 +00:00
assessment_question.rb da licença part 8 2017-04-27 21:33:20 +00:00
assessment_question_bank.rb da licença part 8 2017-04-27 21:33:20 +00:00
assessment_question_bank_user.rb da licença part 8 2017-04-27 21:33:20 +00:00
assessment_request.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
asset_user_access.rb update asset_user_access asset title on update 2017-11-03 17:11:23 +00:00
assignment.rb optimize query for Assignment#assignment_ids_with_submissions 2017-11-17 21:12:12 +00:00
assignment_configuration_tool_lookup.rb LTI User show endpoint 2017-09-28 15:41:12 +00:00
assignment_group.rb store scores for each assignment group 2017-09-22 14:46:27 +00:00
assignment_override.rb ensure graded assignments aren't gradable after removal from overrides 2017-08-28 15:56:43 +00:00
assignment_override_student.rb fix staleness issues with cached_due_date 2017-04-28 16:01:47 +00:00
assignment_student_visibility.rb da licença part 8 2017-04-27 21:33:20 +00:00
attachment.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
attachment_association.rb da licença part 8 2017-04-27 21:33:20 +00:00
auditors.rb da licença part 8 2017-04-27 21:33:20 +00:00
big_blue_button_conference.rb use https for bigbluebutton API 2017-07-14 20:33:56 +00:00
bookmark_service.rb da licença part 9 2017-04-27 21:33:39 +00:00
bookmarks.rb da licença part 9 2017-04-27 21:33:39 +00:00
bounce_notification_processor.rb Run notification failure and bounce in all regions 2017-09-01 19:47:06 +00:00
brand_config.rb Fix link & brand-primary color HC & ie11 2017-11-02 17:36:22 +00:00
calendar_event.rb should not error for all_day events without date 2017-11-10 14:29:09 +00:00
calendar_event_context.rb Enable viewing of CalendarEvents cross shard 2017-10-11 21:53:37 +00:00
canvadoc.rb fix has_annotations? 2017-10-06 17:10:24 +00:00
canvadocs_submission.rb da licença part 10 2017-04-28 17:30:08 +00:00
cloned_item.rb da licença part 10 2017-04-28 17:30:08 +00:00
collaboration.rb da licença part 10 2017-04-28 17:30:08 +00:00
collaborator.rb da licença part 10 2017-04-28 17:30:08 +00:00
communication_channel.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
content_export.rb master courses: fix tab navigation for account tools 2017-09-27 12:48:24 +00:00
content_migration.rb Set lti_context_id on course copy, set previous ids recursively 2017-11-17 21:24:56 +00:00
content_participation.rb da licença part 10 2017-04-28 17:30:08 +00:00
content_participation_count.rb don't create placeholder submissions for unassigned students 2017-06-27 20:33:35 +00:00
content_tag.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
context.rb API/data model for linking planner notes to objects 2017-10-31 16:11:41 +00:00
context_external_tool.rb Ensure nil domain is not used to match external tools 2017-11-08 17:02:52 +00:00
context_external_tool_assignment_lookup.rb don't allow vanilla polymorphic: true 2017-08-02 15:13:53 +00:00
context_external_tool_placement.rb da licença part 10 2017-04-28 17:30:08 +00:00
context_module.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
context_module_item.rb da licença part 10 2017-04-28 17:30:08 +00:00
context_module_progression.rb cache progression and item visibility data on courses 2017-08-24 16:46:26 +00:00
context_module_sub_header.rb da licença part 10 2017-04-28 17:30:08 +00:00
conversation.rb fix preload_participants with nil updated_at 2017-10-31 20:53:07 +00:00
conversation_batch.rb da licença part 10 2017-04-28 17:30:08 +00:00
conversation_message.rb drop rails 4.2 2017-06-27 15:29:51 +00:00
conversation_message_participant.rb da licença part 10 2017-04-28 17:30:08 +00:00
conversation_participant.rb reduce cache usage for conversation participants 2017-09-20 14:53:37 +00:00
course.rb limit students to visible sections in gradebook history 2017-11-13 23:17:01 +00:00
course_account_association.rb da licença part 10 2017-04-28 17:30:08 +00:00
course_date_range.rb da licença part 10 2017-04-28 17:30:08 +00:00
course_profile.rb da licença part 10 2017-04-28 17:30:08 +00:00
course_progress.rb cache progression and item visibility data on courses 2017-08-24 16:46:26 +00:00
course_section.rb generate submissions when crosslisting a section 2017-10-31 21:24:49 +00:00
crocodoc_document.rb wrap authenticated_s3_url in a facade for InstFS 2017-08-30 19:41:58 +00:00
custom_data.rb da licença part 10 2017-04-28 17:30:08 +00:00
custom_gradebook_column.rb da licença part 10 2017-04-28 17:30:08 +00:00
custom_gradebook_column_datum.rb da licença part 10 2017-04-28 17:30:08 +00:00
delayed_message.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
delayed_notification.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
designer_enrollment.rb da licença part 10 2017-04-28 17:30:08 +00:00
developer_key.rb Globalize developer key lookup by vendor code 2017-08-29 19:44:34 +00:00
discussion_entry.rb don't tell students about discussions they can't see 2017-11-02 22:38:00 +00:00
discussion_entry_participant.rb da licença part 10 2017-04-28 17:30:08 +00:00
discussion_topic.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
discussion_topic_participant.rb da licença part 10 2017-04-28 17:30:08 +00:00
document_service.rb da licença part 10 2017-04-28 17:30:08 +00:00
enrollment.rb trigger live events on change to section_limited 2017-11-14 22:51:30 +00:00
enrollment_dates_override.rb da licença part 11 2017-04-27 21:36:17 +00:00
enrollment_state.rb don't show creation_pending in future list if disallowed 2017-08-28 20:50:26 +00:00
enrollment_term.rb use distinct instead of uniq 2017-08-11 17:53:21 +00:00
eportfolio.rb da licença part 11 2017-04-27 21:36:17 +00:00
eportfolio_category.rb da licença part 11 2017-04-27 21:36:17 +00:00
eportfolio_entry.rb da licença part 11 2017-04-27 21:36:17 +00:00
epub_export.rb da licença part 11 2017-04-27 21:36:17 +00:00
error_report.rb sanitize unusual error report URLs when displaying them 2017-05-17 03:40:38 +00:00
etherpad_collaboration.rb da licença part 11 2017-04-27 21:36:17 +00:00
external_feed.rb da licença part 11 2017-04-27 21:36:17 +00:00
external_feed_entry.rb da licença part 11 2017-04-27 21:36:17 +00:00
external_integration_key.rb da licença part 11 2017-04-27 21:36:17 +00:00
external_tool_collaboration.rb da licença part 11 2017-04-27 21:36:17 +00:00
external_url.rb da licença part 11 2017-04-27 21:36:17 +00:00
favorite.rb da licença part 11 2017-04-27 21:36:17 +00:00
feature_flag.rb correctly invalidate course/user feature flag cache 2017-09-15 20:19:49 +00:00
folder.rb prioritize display_name when finding relative files 2017-10-03 16:29:51 +00:00
google_docs_collaboration.rb da licença part 12 2017-04-27 21:36:29 +00:00
gradebook_csv.rb da licença part 12 2017-04-27 21:36:29 +00:00
gradebook_upload.rb da licença part 12 2017-04-27 21:36:29 +00:00
grading_period.rb Recompute scores and due dates even when grading period group is deleted 2017-10-16 19:30:11 +00:00
grading_period_group.rb timeout when editing grading periods sets with many courses 2017-05-31 14:13:52 +00:00
grading_standard.rb don't allow grading schemes with grade names > 255 chars 2017-05-03 16:12:46 +00:00
group.rb Include inactive users in group members. 2017-11-08 18:21:15 +00:00
group_category.rb rework algorithm for assigning students to groups 2017-09-29 19:23:08 +00:00
group_leadership.rb da licença part 12 2017-04-27 21:36:29 +00:00
group_membership.rb fix courses users end point to only get active group memberships 2017-11-06 18:23:00 +00:00
ignore.rb da licença part 12 2017-04-27 21:36:29 +00:00
importers.rb da licença part 12 2017-04-27 21:36:29 +00:00
kaltura_media_file_handler.rb da licença part 13 2017-04-27 21:51:17 +00:00
late_policy.rb add grade input to grade detail tray 2017-10-20 17:50:34 +00:00
learning_outcome.rb allow updating text fields on assessed outcomes via api 2017-05-30 16:19:17 +00:00
learning_outcome_group.rb master courses: fix outcome copying on selective export 2017-09-12 12:13:15 +00:00
learning_outcome_question_result.rb da licença part 13 2017-04-27 21:51:17 +00:00
learning_outcome_result.rb avoid mastery scaling if mastery pts or pts possible is 0 2017-11-06 16:22:11 +00:00
live_assessments.rb da licença part 13 2017-04-27 21:51:17 +00:00
lti.rb da licença part 13 2017-04-27 21:51:17 +00:00
mailer.rb use notification_service in cases that bypass the Message model 2017-07-31 21:49:05 +00:00
master_courses.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
media_object.rb da licença part 13 2017-04-27 21:51:17 +00:00
media_source_fetcher.rb da licença part 13 2017-04-27 21:51:17 +00:00
media_track.rb da licença part 13 2017-04-27 21:51:17 +00:00
message.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
migration_issue.rb da licença part 13 2017-04-27 21:51:17 +00:00
moderated_grading.rb da licença part 13 2017-04-27 21:51:17 +00:00
notification.rb change wording of notification 2017-10-30 16:50:26 +00:00
notification_endpoint.rb upgrade to aws-sdk v3 2017-05-26 15:30:08 +00:00
notification_failure_processor.rb Run notification failure and bounce in all regions 2017-09-01 19:47:06 +00:00
notification_finder.rb da licença part 14 2017-04-28 17:30:12 +00:00
notification_policy.rb search on user's shard for notification policies 2017-07-18 18:48:46 +00:00
notification_preloader.rb da licença part 14 2017-04-28 17:30:12 +00:00
notifier.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
oauth_request.rb da licença part 14 2017-04-28 17:30:12 +00:00
observer_enrollment.rb da licença part 14 2017-04-28 17:30:12 +00:00
one_time_password.rb MFA backup code support 2017-05-02 16:08:53 +00:00
originality_report.rb Use relative path in originality report launch redirect 2017-11-06 22:14:26 +00:00
page_comment.rb da licença part 14 2017-04-28 17:30:12 +00:00
page_view.rb filter page views by accessible accounts 2017-11-08 18:22:38 +00:00
planner_note.rb API/data model for linking planner notes to objects 2017-10-31 16:11:41 +00:00
planner_override.rb don't allow vanilla polymorphic: true 2017-08-02 15:13:53 +00:00
plugin_setting.rb drop rails 4.2 2017-06-27 15:29:51 +00:00
polling.rb da licença part 14 2017-04-28 17:30:12 +00:00
profile.rb use real STI for Profile model 2017-06-19 19:53:24 +00:00
progress.rb better failure handling for invalid gradebook import csv headers 2017-09-27 23:05:36 +00:00
pseudonym.rb allow any printable character in usernames 2017-08-23 18:55:27 +00:00
pseudonym_session.rb da licença part 14 2017-04-28 17:30:12 +00:00
purgatory.rb don’t blow up if s3object does not exist 2017-07-06 22:31:22 +00:00
report_snapshot.rb da licença part 15 2017-04-27 21:51:19 +00:00
role.rb rails 5.1: bump to 5.1.4 2017-10-11 15:23:01 +00:00
role_override.rb New Masquerade Modal implementation 2017-08-17 15:12:27 +00:00
rollup_score.rb da licença part 15 2017-04-27 21:51:19 +00:00
rubric.rb add rubric range logic 2017-09-12 19:58:40 +00:00
rubric_assessment.rb fix account level rubric assessments showing in wrong context 2017-07-17 20:02:01 +00:00
rubric_association.rb update the assessor on regrading/reassessing a rubric 2017-11-06 21:09:37 +00:00
score.rb Store dropped submissions from a calculation 2017-10-30 22:57:49 +00:00
score_metadata.rb Store dropped submissions from a calculation 2017-10-30 22:57:49 +00:00
scribd_mime_type.rb da licença part 15 2017-04-27 21:51:19 +00:00
session_persistence_token.rb Fix periodic jobs to not use deprecated delete_all syntax 2017-07-28 16:22:06 +00:00
setting.rb da licença part 15 2017-04-27 21:51:19 +00:00
sharded_bookmarked_collection.rb da licença part 15 2017-04-27 21:51:19 +00:00
shared_brand_config.rb da licença part 15 2017-04-27 21:51:19 +00:00
sis_batch.rb add multi_term_batch_mode to sis import api 2017-10-05 14:04:46 +00:00
sis_batch_error_file.rb write all errors and warnings to file 2017-07-28 22:09:16 +00:00
sis_post_grades_status.rb da licença part 15 2017-04-27 21:51:19 +00:00
sis_pseudonym.rb eliminate duplicate rows in provisioning reports due to pseudonyms 2017-09-08 21:40:46 +00:00
split_users.rb fix splitting users to not do unnecessary updates 2017-11-08 00:33:04 +00:00
stream_item.rb fix stream item generation for messages 2017-09-20 13:32:15 +00:00
stream_item_instance.rb da licença part 15 2017-04-27 21:51:19 +00:00
student_enrollment.rb da licença part 15 2017-04-27 21:51:19 +00:00
student_view_enrollment.rb da licença part 15 2017-04-27 21:51:19 +00:00
submission.rb include user attachments with group submissions 2017-11-10 20:11:51 +00:00
submission_comment.rb add edited_at to submission_comments 2017-09-29 14:54:03 +00:00
submission_comment_interaction.rb drop rails 4.2 2017-06-27 15:29:51 +00:00
submission_version.rb don't create placeholder submissions for unassigned students 2017-06-27 20:33:35 +00:00
ta_enrollment.rb da licença part 15 2017-04-27 21:51:19 +00:00
tableless.rb bump rails 5.1 2017-08-09 20:52:53 +00:00
teacher_enrollment.rb da licença part 15 2017-04-27 21:51:19 +00:00
terms_of_service.rb Replace Terms of Service Links and login flow 2017-10-13 15:08:30 +00:00
terms_of_service_content.rb allow creating and updating of Terms Of Service 2017-10-11 15:24:52 +00:00
thumbnail.rb da licença part 15 2017-04-27 21:51:19 +00:00
usage_rights.rb call translated license names in a lambda 2017-08-14 13:03:04 +00:00
user.rb Prevent the creation of external avatars 2017-11-09 23:16:35 +00:00
user_account_association.rb da licença part 16 2017-04-27 21:51:21 +00:00
user_merge_data.rb use Setting correctly in user merge data 2017-06-23 21:03:25 +00:00
user_merge_data_record.rb da licença part 16 2017-04-27 21:51:21 +00:00
user_note.rb da licença part 16 2017-04-27 21:51:21 +00:00
user_observer.rb cross-shard user observer support 2017-11-09 21:51:30 +00:00
user_profile.rb fix profile link in user tabs 2017-10-31 21:27:31 +00:00
user_profile_link.rb da licença part 16 2017-04-27 21:51:21 +00:00
user_service.rb da licença part 16 2017-04-27 21:51:21 +00:00
web_conference.rb da licença part 16 2017-04-27 21:51:21 +00:00
web_conference_participant.rb da licença part 16 2017-04-27 21:51:21 +00:00
web_zip_export.rb da licença part 16 2017-04-27 21:51:21 +00:00
wiki.rb Make course home page go to modules if wiki home page unset. 2017-11-09 18:13:15 +00:00
wiki_page.rb master courses: sync workflow states consistentishly 2017-11-15 17:41:53 +00:00
wimba_conference.rb da licença part 16 2017-04-27 21:51:21 +00:00