canvas-lms/app/models
Liz Abinante fee20a7d89 renders error when max char exceeded for outcomes title
fixes CNVS-3110

test plan:
- create a new learning outcome
- title must be greater than 255 chars
- save learning outcome
- verify presence of error dialog

Change-Id: I9f91b03f5bce60dc6e7c8ddf9fdcbf1719f8adb7
Reviewed-on: https://gerrit.instructure.com/24004
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
2013-09-05 18:58:49 +00:00
..
broadcast_policies Extract Assignment Broadcast Policy 2013-06-04 18:11:44 +00:00
discussion_topic fix materialized views through pgbouncer 2013-08-06 22:10:32 +00:00
quiz_question don't change case of responses in multiple FitB 2013-07-29 22:04:36 +00:00
quiz_statistics handle null in quiz statistics 2013-08-20 23:03:08 +00:00
abstract_course.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
access_token.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
account.rb don't show speedgrader for unpublished assignments and quizzes 2013-08-28 21:58:11 +00:00
account_authorization_config.rb make SAML an optional feature 2013-07-12 16:13:42 +00:00
account_notification.rb survey notification support 2013-06-17 16:58:39 +00:00
account_report.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
account_user.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
alert.rb useful find_each 2013-07-18 22:26:46 +00:00
alert_criterion.rb alerts, closes #4317 2011-08-24 10:19:44 -06:00
announcement.rb fix permissions on imported announcements. 2013-08-13 02:18:55 +00:00
appointment_group.rb fix reservable appointment groups find by context_codes 2013-04-29 16:49:26 +00:00
appointment_group_context.rb multiple contexts per appointment group 2012-04-30 15:30:03 -06:00
appointment_group_sub_context.rb multiple contexts per appointment group 2012-04-30 15:30:03 -06:00
assessment_question.rb keep question and answer comments editable on copy 2013-08-29 15:49:09 +00:00
assessment_question_bank.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
assessment_question_bank_user.rb Initial commit. 2011-01-31 18:57:29 -07:00
assessment_request.rb only send reminder notifications for peer reviews. 2013-05-07 22:23:14 +00:00
asset_user_access.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
assignment.rb prevent comments and grading on submissions for unpublished assignments with API 2013-09-04 19:35:21 +00:00
assignment_group.rb import assignments into groups on selective import 2013-07-30 13:31:36 +00:00
assignment_override.rb fixes for due_date_cacher changes 2013-06-10 20:17:06 +00:00
assignment_override_student.rb arel-ify models 2013-04-01 18:42:38 +00:00
attachment.rb reuse Attachments' kaltura media objects on course copy 2013-08-21 15:01:07 +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 add checkbox to enable BBB recording to BBB plugin settings 2013-06-13 17:53:46 +00:00
bookmark_service.rb i18n Bookmark Service 2011-06-16 07:16:10 -06:00
calendar_event.rb save selective import options for new migration api 2013-05-31 22:49:50 +00:00
cloned_item.rb make sure links in assessment questions are correctly translated, fixes #6012 2011-10-21 08:36:34 -06:00
collaboration.rb prevent collaboration titles longer than 255 char 2013-05-14 22:34:33 +00:00
collaborator.rb add groups to collaborators table, add api endpoint. 2013-01-04 20:18:04 -07:00
collection.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
collection_item.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
collection_item_data.rb get rspec 2 running with rails 3.0 2013-03-27 15:41:28 +00:00
collection_item_upvote.rb arel-ify models 2013-04-01 18:42:38 +00:00
communication_channel.rb use the database lower() function instead of ruby downcase 2013-07-19 15:59:47 +00:00
content_export.rb separate announcements from discussion topics in import/export 2013-08-01 19:26:58 +00:00
content_migration.rb fix selective content when arrays are passed to migration_settings 2013-09-05 16:43:29 +00:00
content_participation.rb arel-ify models 2013-04-01 18:42:38 +00:00
content_participation_count.rb cache some settings 2013-08-26 17:54:56 +00:00
content_tag.rb touch module outside content_tag save txn to prevent deadlock 2013-08-30 16:34:33 +00:00
context.rb create context-level enable_draft option. 2013-08-16 15:19:39 +00:00
context_external_tool.rb add search_term helper for api indexes 2013-07-24 15:22:17 +00:00
context_module.rb remove unnecessary and expensive prerequisite cycle check 2013-09-04 17:04:04 +00:00
context_module_item.rb change available_for? and locked_for? to be more consistent 2013-06-07 21:41:21 +00:00
context_module_progression.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb run messageable user queries on the slave 2013-08-28 20:37:23 +00:00
conversation_batch.rb add context to conversations 2013-08-05 14:24:57 +00:00
conversation_message.rb add soft delete to conversation_message_participants 2013-08-08 16:00:51 +00:00
conversation_message_participant.rb add soft delete to conversation_message_participants 2013-08-08 16:00:51 +00:00
conversation_participant.rb run messageable user queries on the slave 2013-08-28 20:37:23 +00:00
course.rb fix legacy wiki front page behavior 2013-09-03 19:27:02 +00:00
course_account_association.rb optimize Account#/Course.update_account_associations a bit 2013-06-07 14:47:09 +00:00
course_import.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
course_profile.rb context profiles, refs CNVS-2650 2013-02-01 17:57:07 -07:00
course_section.rb fix course people page with enrollments in deleted sections 2013-07-25 19:33:53 +00:00
crocodoc_document.rb optimize CrocodocDocument.update_process_states 2013-08-22 19:12:15 +00:00
delayed_message.rb return time zone in user profile api 2013-07-25 16:46:32 +00:00
delayed_notification.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
designer_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
developer_key.rb use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
dim_dim_conference.rb wimba integration, fixes #2989 2011-02-25 14:35:14 -07:00
discussion_entry.rb disable non-members' subscription controls for group discussions 2013-07-23 20:58:41 +00:00
discussion_entry_participant.rb add forced_read_state to DiscussionEntryParticipant and APIs 2013-05-10 21:45:23 +00:00
discussion_topic.rb make sure FOR UPDATE queries are on master 2013-08-26 18:46:58 +00:00
discussion_topic_participant.rb discussion topic subscription flag and api 2013-06-14 21:40:50 +00:00
document_service.rb Initial commit. 2011-01-31 18:57:29 -07:00
enrollment.rb optimize uncached loading of courses menu 2013-08-14 22:33:21 +00:00
enrollment_dates_override.rb term start/term end, rather than whenever 2011-09-13 15:20:15 -06:00
enrollment_term.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
eportfolio.rb handle ePortfolio name when too long 2013-09-05 17:26:04 +00:00
eportfolio_category.rb remove some egregious usages of Enumerable#select when a query will do 2013-05-31 22:11:15 +00:00
eportfolio_entry.rb remove some egregious usages of Enumerable#select when a query will do 2013-05-31 22:11:15 +00:00
error_report.rb don't store HTTP_COOKIE in error reports 2013-05-23 20:48:39 +00:00
etherpad_collaboration.rb remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
external_feed.rb fix and refactor content migration issue messages 2013-04-26 21:33:24 +00:00
external_feed_entry.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
external_url.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
favorite.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
folder.rb add foreign keys part 5 2013-08-06 22:37:54 +00:00
google_docs_collaboration.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebook_upload.rb prepare for foreign keys refs #6895 2012-05-10 09:46:05 -06:00
grading_standard.rb fix and refactor content migration issue messages 2013-04-26 21:33:24 +00:00
group.rb change pages to allow context-based draft state 2013-08-22 21:18:49 +00:00
group_category.rb make group category assignments query fast 2013-08-28 22:39:32 +00:00
group_membership.rb make group category assignments query fast 2013-08-28 22:39:32 +00:00
ignore.rb arel-ify models 2013-04-01 18:42:38 +00:00
inbox_item.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
learning_outcome.rb renders error when max char exceeded for outcomes title 2013-09-05 18:58:49 +00:00
learning_outcome_group.rb only touch context once after outcome group delete 2013-08-05 17:56:50 +00:00
learning_outcome_result.rb simplify SimplyVersioned option storage and add callbacks 2013-04-20 13:20:29 +00:00
mailer.rb add multiple reply-to support to outgoing mail. 2013-02-22 14:02:27 -07:00
media_object.rb add timeout for bulk media upload on import 2013-08-23 19:11:27 +00:00
media_track.rb Allow uploading subtitle tracks to videos 2013-02-01 12:53:16 -07:00
message.rb use correct i18n scope for html emails, fixes CNVS-6829 2013-07-11 22:21:45 +00:00
migration_issue.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
notification.rb change discussion entry notifications to go to subscribers 2013-06-14 22:18:04 +00:00
notification_policy.rb arel-ify scopes 2013-04-01 21:57:16 +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 make sure the page view data is utf-8 encoded 2013-08-16 01:23:51 +00:00
plugin_setting.rb cache plugin settings indefinitely 2013-08-28 20:32:26 +00:00
profile.rb adds unlisted to the list of valid profile visibility values 2013-05-31 03:09:23 +00:00
progress.rb support tracking a delayed job in the Progress model 2013-07-10 14:11:48 +00:00
pseudonym.rb make pseudonyms.active scope more efficient 2013-08-07 17:40:44 +00:00
pseudonym_session.rb rails3 fixes 2013-06-26 20:22:26 +00:00
quiz.rb only queue quiz regrade jobs if there are current question regrades 2013-08-30 21:18:54 +00:00
quiz_group.rb don't re-import quiz assessment questions in banks on second pass 2013-08-22 15:01:43 +00:00
quiz_question.rb provide PK to Adapter#insert 2013-08-21 18:23:31 +00:00
quiz_question_regrade.rb add the ability to regrade a quiz 2013-08-19 17:29:26 +00:00
quiz_regrade.rb add the ability to regrade a quiz 2013-08-19 17:29:26 +00:00
quiz_regrade_run.rb add the ability to regrade a quiz 2013-08-19 17:29:26 +00:00
quiz_statistics.rb only strand quiz_stats jobs per quiz 2013-06-05 17:22:07 +00:00
quiz_submission.rb fix system time exploitation of quiz timing 2013-08-30 22:45:17 +00:00
quiz_submission_snapshot.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
report_snapshot.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
role.rb add users from courses/:id/users page 2013-04-18 19:43:54 +00:00
role_override.rb alerts are announcements 2013-07-29 15:14:13 +00:00
rubric.rb update all rubric associations when data changes 2013-08-30 21:28:25 +00:00
rubric_assessment.rb per-instance json serialization methods/excludes 2013-08-29 22:39:17 +00:00
rubric_association.rb add foreign keys part 6 2013-09-04 16:46:41 +00:00
scribd_account.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
scribd_mime_type.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
session_persistence_token.rb fix session persistence tokens for out-of-shard users 2013-06-27 20:01:47 +00:00
setting.rb fix Setting.from_config with no env 2013-06-28 21:18:36 +00:00
sis_batch.rb replace SisBatch#api_json with standard #as_json 2013-08-29 22:39:45 +00:00
stream_item.rb refactor bulk_insert to use AR::Base.transaction 2013-08-14 18:57:08 +00:00
stream_item_instance.rb arel-ify lib 2013-04-01 19:12:22 +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 prevent comments and grading on submissions for unpublished assignments with API 2013-09-04 19:35:21 +00:00
submission_comment.rb per-instance json serialization methods/excludes 2013-08-29 22:39:17 +00:00
submission_comment_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
submission_version.rb refactor bulk_insert to use AR::Base.transaction 2013-08-14 18:57:08 +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 update thumbnail attachment options like Attachment's 2013-03-26 18:46:14 +00:00
user.rb cache max_messages_per_day_per_user setting 2013-08-26 17:55:50 +00:00
user_account_association.rb clean up user account associations 2013-01-31 10:41:55 -07:00
user_follow.rb arel-ify models 2013-04-01 18:42:38 +00:00
user_note.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
user_observer.rb user co-enrollment backend work, closes #8588 2012-05-23 12:21:00 -06:00
user_profile.rb prevent text overflow for user_profile.title 2013-08-23 20:05:19 +00:00
user_profile_link.rb add data validation to user profile links 2012-09-24 15:38:26 -06:00
user_service.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
web_conference.rb redesign conferences index page and edit form 2013-06-01 00:18:37 +00:00
web_conference_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
wiki.rb fix legacy wiki front page behavior 2013-09-03 19:27:02 +00:00
wiki_page.rb remove hide_from_students from the new pages UI 2013-09-04 22:22:21 +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