canvas-lms/app/models
Cameron Sutter 648c3c3aab add publish state to assignments
fixes CNVS-5680

test plan:
- create an account that has enable_draft enabled
- as a teacher within that account, create an assignment
- using the api, get that assignment and check for the 'published' flag
- there should be a 'published' flag that is either true/false
- now, turn off enable_draft on the account
- using the api, get that assignment and check for the 'published' flag
- there should not be a 'published' flag

Change-Id: I161e3144ca6b82e41e72d5dbb56bebcee03e6fa4
Reviewed-on: https://gerrit.instructure.com/20609
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2013-05-17 13:44:19 +00:00
..
broadcast_policies fix quiz submission notifications 2013-05-15 21:29:18 +00:00
discussion_topic use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
quiz_question fix non-deterministic spec failures for quiz student analyis csv 2013-05-09 19:39:58 +00:00
quiz_statistics fix non-deterministic spec failures for quiz student analyis csv 2013-05-09 19:39:58 +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 use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
account_authorization_config.rb support multiple SAML private keys for decryption 2013-03-15 14:31:57 -06:00
account_notification.rb arel-ify models 2013-04-01 18:42:38 +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 arel-ify models 2013-04-01 18:42:38 +00:00
alert_criterion.rb alerts, closes #4317 2011-08-24 10:19:44 -06:00
announcement.rb properly persist disable announcement comments setting. 2013-02-14 16:40:18 -07: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 fix and refactor content migration issue messages 2013-04-26 21:33:24 +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 add publish state to assignments 2013-05-17 13:44:19 +00:00
assignment_group.rb get assignments and submissions from all shards 2013-04-29 16:00:31 +00:00
assignment_override.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
assignment_override_student.rb arel-ify models 2013-04-01 18:42:38 +00:00
attachment.rb touch the attachment context after txn commit 2013-05-11 16:48:04 +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 use global_id for the BBB voiceBridge number 2012-08-16 09:22:22 -06:00
bookmark_service.rb i18n Bookmark Service 2011-06-16 07:16:10 -06:00
calendar_event.rb don't show assignment descriptions in ics feed responses 2013-05-11 01:01:37 +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 Add API for admins to access user messages 2013-04-11 19:38:02 +00:00
content_export.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
content_migration.rb remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
content_participation.rb arel-ify models 2013-04-01 18:42:38 +00:00
content_participation_count.rb fix grade badge count with comments 2013-04-25 17:58:02 +00:00
content_tag.rb add create/update/delete to api for context modules and items 2013-05-10 15:16:34 +00:00
context.rb remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
context_external_tool.rb show validation errors when configuring external tools 2013-05-08 15:44:44 +00:00
context_module.rb add create/update/delete to api for context modules and items 2013-05-10 15:16:34 +00:00
context_module_item.rb don't preload all a module's progressions 2013-03-11 08:41:32 -06: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 use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
conversation_batch.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
conversation_message.rb improve robustness of incoming message processor 2013-04-29 14:47:09 +00:00
conversation_message_participant.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
conversation_participant.rb use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
course.rb make some boolean logic clearer 2013-05-07 15:16:16 +00:00
course_account_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06: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 updated the syllabus to better handle public courses 2013-04-26 17:57:37 +00:00
crocodoc_document.rb arel-ify models 2013-04-01 18:42:38 +00:00
delayed_message.rb Add API for admins to access user messages 2013-04-11 19:38:02 +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 add forced_read_state to DiscussionEntryParticipant and APIs 2013-05-10 21:45:23 +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 add forced_read_state to DiscussionEntryParticipant and APIs 2013-05-10 21:45:23 +00:00
discussion_topic_participant.rb ensure unread_entry_counts never drop below 0. 2013-02-28 13:23:01 -07:00
document_service.rb Initial commit. 2011-01-31 18:57:29 -07:00
enrollment.rb use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +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 arel-ify scopes 2013-04-01 21:57:16 +00:00
eportfolio_category.rb localize ePortfolios 2011-06-24 13:17:25 -06:00
eportfolio_entry.rb 1.9 - fix eportfolios 2012-05-17 23:10:51 -06:00
error_report.rb switch to Shackles gem 2013-04-17 16:25:06 +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 arel-ify scopes 2013-04-01 21:57:16 +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 limit self-assigned group size, closes #CNVS-5407 2013-05-08 16:47:14 +00:00
group_category.rb limit self-assigned group size, closes #CNVS-5407 2013-05-08 16:47:14 +00:00
group_membership.rb limit self-assigned group size, closes #CNVS-5407 2013-05-08 16:47:14 +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 fix and refactor content migration issue messages 2013-04-26 21:33:24 +00:00
learning_outcome_group.rb arel-ify scopes 2013-04-01 21:57:16 +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 remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
media_track.rb Allow uploading subtitle tracks to videos 2013-02-01 12:53:16 -07:00
message.rb twitter link sending to correct url 2013-04-26 16:02:03 +00:00
migration_issue.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
notification.rb arel-ify scopes 2013-04-01 21:57:16 +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 Initial commit. 2011-01-31 18:57:29 -07:00
page_comment.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
page_view.rb use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
plugin_setting.rb proactively clear cache when changing plugin settings 2012-10-29 12:11:31 -06:00
profile.rb custom profile field fixes/enhancements, refs CNVS-4556 2013-03-28 16:08:04 +00:00
progress.rb async quiz report generation UI, fixes CNVS-4512 2013-05-08 23:11:52 +00:00
pseudonym.rb validate the length of pseudonyms.sis_user_id 2013-05-16 22:24:57 +00:00
pseudonym_session.rb require a password login for certain sensitive actions closes #6401 2012-08-02 10:22:48 -06:00
quiz.rb add ability to download all file uploads for a quiz as a zip 2013-05-16 21:14:19 +00:00
quiz_group.rb show re-publish button when editing a quiz question group 2013-03-15 09:19:12 -06:00
quiz_question.rb arel-ify models 2013-04-01 18:42:38 +00:00
quiz_statistics.rb async quiz report generation UI, fixes CNVS-4512 2013-05-08 23:11:52 +00:00
quiz_submission.rb fix quiz submission notifications 2013-05-15 21:29:18 +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 include attribute to exclude permissions based on plugins 2013-04-22 16:36:24 +00:00
rubric.rb fix and refactor content migration issue messages 2013-04-26 21:33:24 +00:00
rubric_assessment.rb arel-ify scopes 2013-04-01 21:57:16 +00:00
rubric_association.rb only send reminder notifications for peer reviews. 2013-05-07 22:23:14 +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 switch to ruby stdlib SecureRandom 2013-03-28 20:49:31 +00:00
setting.rb remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
sis_batch.rb use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
stream_item.rb fix Converstation#delete_for_all to work for multi-shard conversations 2013-04-12 19:26:42 +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 fix quiz submission notifications 2013-05-15 21:29:18 +00:00
submission_comment.rb improve robustness of incoming message processor 2013-04-29 14:47:09 +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 skip submission versions that have no assignment 2013-05-08 14:20:57 +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 add toggle for discussion auto-mark as read option. 2013-05-10 22:50:45 +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 include root_account in section_tabs cache key 2012-08-17 14:15:10 -06: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 arel-ify scopes 2013-04-01 21:57:16 +00:00
web_conference_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
wiki.rb don't error on course export if the course name is too long 2013-02-05 10:21:20 -07:00
wiki_page.rb fix and refactor content migration issue messages 2013-04-26 21:33:24 +00:00
wiki_page_comment.rb arel-ify scopes 2013-04-01 21:57:16 +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