canvas-lms/app/controllers
James Williams a75c8995b3 prevent course copy from submitting invalid dates
test plan:
* from the course settings, click "Copy this Course"
* on the course copy form, enter a start date
* enter an end date before the start date
* it should prevent the form from being submitted
 and pop up an error
* changing the date to a valid one should work

closes #CNVS-26590

Change-Id: I98ac199c946c432d4ab1ea1e19a182d6955d20de
Reviewed-on: https://gerrit.instructure.com/73356
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2016-03-02 12:53:14 +00:00
..
bookmarks mark several models as using strong_params 2016-01-31 17:22:17 +00:00
data_exports_api data export api 2014-03-07 22:31:43 +00:00
filters rails4: change allow_app_profiling #filter to #before 2015-07-15 20:30:52 +00:00
live_assessments fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
login render bad_request on saml logout when aac cannot be found 2016-01-20 20:56:09 +00:00
lti refactor lti2 resource_link_id 2015-12-18 00:07:52 +00:00
polling rails 4.2: fix calls to Filters module 2016-01-19 20:24:02 +00:00
quizzes don't check quota for quiz file upload questions 2016-03-02 12:52:50 +00:00
account_authorization_configs_controller.rb support end_session_endpoint for OpenID Connect providers 2016-02-11 22:13:27 +00:00
account_notifications_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
account_reports_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
accounts_controller.rb make new import sis permission 2016-03-01 23:22:53 +00:00
admins_controller.rb be more lenient in interpreting send_confirmation boolean 2015-06-18 17:05:51 +00:00
alerts_controller.rb new roles 2014-10-31 19:44:14 +00:00
announcements_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
app_center_controller.rb Start Setting app_center_id via API POST and find installed apps via the app_center_id property 2015-06-16 14:48:40 +00:00
application_controller.rb optimize several N+1 queries in CalendarEventsApiController#index 2016-02-24 17:55:09 +00:00
appointment_groups_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
assessment_questions_controller.rb remove move_question 2014-03-07 17:47:12 +00:00
assignment_groups_api_controller.rb add scope_assignments_to_student parameter 2016-02-03 21:32:33 +00:00
assignment_groups_controller.rb optimize assignment student visibilities 2016-02-23 01:17:29 +00:00
assignment_overrides_controller.rb fix assignment edit for multi-section course 2016-02-28 05:50:18 +00:00
assignments_api_controller.rb api doc request parameter formatting 2016-01-20 21:09:48 +00:00
assignments_controller.rb fix assignment edit for multi-section course 2016-02-28 05:50:18 +00:00
auditor_api_controller.rb enable Audit log search 2014-08-16 01:53:39 +00:00
authentication_audit_api_controller.rb api doc request parameter formatting 2016-01-20 21:09:48 +00:00
brand_configs_controller.rb get sub account branding and custom css/includes working 2015-12-19 02:47:39 +00:00
calendar_events_api_controller.rb optimize several N+1 queries in CalendarEventsApiController#index 2016-02-24 17:55:09 +00:00
calendar_events_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
calendars_controller.rb course nicknames 2015-10-21 23:03:51 +00:00
canvadoc_sessions_controller.rb Add date of (canva|croco)doc student view to speedgrader 2016-01-14 00:03:23 +00:00
collaborations_controller.rb allow content-item to create collaborations 2016-02-26 23:26:43 +00:00
comm_messages_api_controller.rb delete facebook integration 2015-03-30 20:21:58 +00:00
communication_channels_controller.rb rails 4.2: fix controller, integration and view specs 2016-01-22 20:01:11 +00:00
conferences_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
content_exports_api_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
content_exports_controller.rb adds UI & backend for offline content 2015-09-30 16:22:18 +00:00
content_imports_controller.rb fix Style/EmptyLineBetweenDefs issue 2015-04-29 16:28:39 +00:00
content_migrations_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
context_controller.rb extension point for analytics links 2016-02-26 16:14:06 +00:00
context_module_items_api_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
context_modules_api_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
context_modules_controller.rb spec: fix some context modules specs 2016-02-15 16:34:47 +00:00
conversations_controller.rb use rails 4.2 preloader format 2015-12-30 14:58:10 +00:00
course_audit_api_controller.rb api doc request parameter formatting 2016-01-20 21:09:48 +00:00
course_nicknames_controller.rb make "Get course nickname" behave nicer if no nickname exists 2015-12-08 18:19:55 +00:00
courses_controller.rb prevent course copy from submitting invalid dates 2016-03-02 12:53:14 +00:00
crocodoc_sessions_controller.rb Add date of (canva|croco)doc student view to speedgrader 2016-01-14 00:03:23 +00:00
custom_data_controller.rb update documentation for custom data APIs 2015-11-19 17:05:56 +00:00
custom_gradebook_column_data_api_controller.rb show inactive students in speedgrader 2016-02-23 16:58:21 +00:00
custom_gradebook_columns_api_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
developer_keys_controller.rb Dev keys created from site admin shouldnt have an account id 2015-10-05 16:06:36 +00:00
discussion_entries_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
discussion_topics_api_controller.rb don't count student attachments in graded discussions for quota 2016-02-10 15:39:52 +00:00
discussion_topics_controller.rb Split :read_forum and :read_announcements permissions 2016-02-18 21:42:03 +00:00
enrollments_api_controller.rb destroy the word 'inactivate' 2016-02-11 21:53:57 +00:00
eportfolio_categories_controller.rb add feature flag and dynamic config for RCE service 2015-12-02 20:32:42 +00:00
eportfolio_entries_controller.rb add feature flag and dynamic config for RCE service 2015-12-02 20:32:42 +00:00
eportfolios_controller.rb rails 4.2: s/destroy!/destroy_permanently! 2016-01-07 14:00:13 +00:00
epub_exports_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
equation_images_controller.rb make the codecogs equation base url a setting 2014-02-18 00:14:59 +00:00
errors_controller.rb record real user when error report is submitted in student view 2015-09-24 14:40:57 +00:00
external_content_controller.rb handle exceptions for protect from forgery 2016-01-18 16:53:59 +00:00
external_feeds_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
external_tools_controller.rb allow content-item to create collaborations 2016-02-26 23:26:43 +00:00
favorites_controller.rb add observed_users to courses and favorite api calls 2015-12-08 15:39:16 +00:00
feature_flags_controller.rb remove locking_account_id from feature flags 2016-02-10 21:15:06 +00:00
file_previews_controller.rb s/jammit_css/css_bundle 2015-07-07 21:26:35 +00:00
files_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
folders_controller.rb rails 4.2: s/destroy!/destroy_permanently! 2016-01-07 14:00:13 +00:00
grade_change_audit_api_controller.rb api doc request parameter formatting 2016-01-20 21:09:48 +00:00
gradebook_csvs_controller.rb export selected grading period instead of current 2015-11-06 20:17:08 +00:00
gradebook_history_api_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
gradebook_uploads_controller.rb gradebook importer files through S3 2016-02-05 16:06:02 +00:00
gradebooks_controller.rb show inactive students in speedgrader 2016-02-23 16:58:21 +00:00
grading_periods_controller.rb rails 4.2: fix calls to Filters module 2016-01-19 20:24:02 +00:00
grading_standards_api_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
grading_standards_controller.rb fix grading standard creation 2015-12-18 23:01:06 +00:00
group_categories_controller.rb Allows teacher to clone a group set. 2015-08-07 16:31:52 +00:00
group_memberships_controller.rb add sis user id support to group memberships API 2015-09-29 05:32:53 +00:00
groups_controller.rb rails 4.2: fix scope.new calls 2016-01-22 16:54:37 +00:00
info_controller.rb get sub account branding and custom css/includes working 2015-12-19 02:47:39 +00:00
jobs_controller.rb Expose delayed jobs as an API route 2015-10-22 14:40:32 -07:00
jwts_controller.rb add host to services jwt entry 2016-02-11 00:02:03 +00:00
legal_information_controller.rb [SOC-2] use terms_of_use_url and privacy_policy_url helpers 2015-01-23 22:30:27 +00:00
login_controller.rb apply ms office deep link fix to several more vectors 2015-11-09 21:36:54 +00:00
lti_api_controller.rb rails 4.2: api spec fixes 2016-01-21 16:14:03 +00:00
media_objects_controller.rb don't show media preview thumbnails to students for locked files 2015-03-26 16:33:53 +00:00
media_tracks_controller.rb freeze constants in controllers 2015-04-27 20:04:40 +00:00
messages_controller.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
migration_issues_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
moderation_set_controller.rb show inactive students in speedgrader 2016-02-23 16:58:21 +00:00
notification_preferences_controller.rb Enhancement for Notification Prefs 2015-08-05 19:21:35 +00:00
oauth2_provider_controller.rb handle exceptions for protect from forgery 2016-01-18 16:53:59 +00:00
oauth_proxy_controller.rb stop dying on access tokens that base64 decode to JWT looking things 2016-01-13 20:44:23 +00:00
outcome_groups_api_controller.rb use rails 4.2 preloader format 2015-12-30 14:58:10 +00:00
outcome_groups_controller.rb Outcomes API - switch default calculation_method to be 'highest' 2015-01-07 18:13:38 +00:00
outcome_results_controller.rb rails 4.2: more spec fixes 2016-02-01 21:03:04 +00:00
outcomes_api_controller.rb Learning Outcome: Don't allow changes after assessing 2015-06-09 19:54:52 +00:00
outcomes_controller.rb fix user outcome results for accounts 2016-01-27 23:48:31 +00:00
outcomes_import_api_controller.rb OutcomesImports: make validation regex case-insensitive 2016-01-13 21:11:14 +00:00
page_comments_controller.rb don't try to render url for eportfolio category with blank slug 2015-12-08 19:50:19 +00:00
page_views_controller.rb fix typing of api doc @model definitions 2016-01-20 19:07:41 +00:00
peer_reviews_api_controller.rb Check if a reviewer is the same person as the student 2016-01-22 22:18:41 +00:00
plugins_controller.rb fix saving plugins with no settings 2016-01-11 17:09:46 +00:00
profile_controller.rb fix some uses of require_user 2015-12-30 22:39:12 +00:00
progress_controller.rb converting @object notation to @model part 9/11 2014-02-12 16:21:37 +00:00
provisional_grades_controller.rb remove moderated_grading feature flag 2015-12-23 03:29:21 +00:00
pseudonym_sessions_controller.rb refactor PseudonymSessionsController 2015-05-15 14:44:38 +00:00
pseudonyms_controller.rb document and extend usage of integration_id for users 2016-02-18 20:11:01 +00:00
question_banks_controller.rb add CONTEXT_URL_ROOT to js_env in QuestionBanksController#show 2016-02-08 19:19:09 +00:00
role_overrides_controller.rb make new import sis permission 2016-03-01 23:22:53 +00:00
rubric_assessments_controller.rb allow submissions graded through rubrics to be graded anonymously 2015-10-20 18:12:16 +00:00
rubric_associations_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
rubrics_controller.rb allow rubric_assessments to belong to provisional grades 2015-08-14 15:40:39 +00:00
search_controller.rb rails4: remove Relation#with_each_shard 2015-07-17 12:31:15 +00:00
sections_controller.rb make `crosslist_check` permissions consistent with `crosslist` 2016-02-26 19:44:21 +00:00
self_enrollments_controller.rb add authentication_provider support to self enrollment controller 2015-07-22 19:12:44 +00:00
services_api_controller.rb canvas kaltura gem 2014-04-16 19:39:45 +00:00
sis_api_controller.rb add code to sis assignments api errors 2015-09-25 22:35:17 +00:00
sis_imports_api_controller.rb make new import sis permission 2016-03-01 23:22:53 +00:00
sub_accounts_controller.rb rails 4.2: fix controller, integration and view specs 2016-01-22 20:01:11 +00:00
submission_comments_api_controller.rb show inactive students in speedgrader 2016-02-23 16:58:21 +00:00
submission_comments_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
submissions_api_controller.rb add include[]=group to SubmissionApiController#index 2016-02-23 17:36:08 +00:00
submissions_controller.rb Fix layout for assignment submission details page 2016-03-01 01:38:15 +00:00
tabs_controller.rb allow content-item to create collaborations 2016-02-26 23:26:43 +00:00
terms_api_controller.rb fix malformed terms api query 2016-01-28 22:27:52 +00:00
terms_controller.rb reject invalid sis term search parameters in terms api 2016-02-23 16:51:53 +00:00
tokens_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
tours_controller.rb added tour guide libs 2013-05-22 19:30:13 +00:00
usage_rights_controller.rb copy-folder and copy-file endpoints 2015-02-09 22:13:55 +00:00
user_lists_controller.rb Capture a users initial_enrollment_type when invited to a course. Fixes #10893 2012-10-04 14:26:15 -06:00
user_notes_controller.rb rails 4.2: more spec fixes 2016-02-01 21:03:04 +00:00
user_observees_controller.rb Add user avatars to observee's list return object 2015-10-22 16:52:43 +00:00
users_controller.rb Remove footer from new UI unless dashboard 2016-02-26 22:52:19 +00:00
wiki_pages_api_controller.rb Decouple Wiki Page permissions logic from api index 2015-07-24 22:03:00 +00:00
wiki_pages_controller.rb make sure you can view all wiki pages from wiki front_page 2015-10-31 20:14:50 +00:00
zip_file_imports_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00