You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before we were recording these values but not doing
anything about it. This commit starts scheduling
delayed_jobs to activate/conclude enrollments
in the background when dates pass.
it does not conclude/publish courses/sections
automatically, though. if we want that to be
automated based on dates then I think we should
do that in a separate commit.
fixes #3356
Change-Id: Id94356fbc5b82196dd041fdb250607a7633cee9f
Reviewed-on: https://gerrit.instructure.com/2431
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Copy file name to clipboardExpand all lines: app/models/account.rb
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -429,8 +429,6 @@ def self_and_all_sub_accounts
429
429
@self_and_all_sub_accounts ||= ActiveRecord::Base.connection.send(:select,"SELECT id FROM accounts WHERE accounts.root_account_id = #{self.id} OR accounts.parent_account_id = #{self.id}").map{|ref| ref['id'].to_i}.uniq + [self.id]#(self.all_accounts + [self]).map &:id
has_many:current_enrollments,:class_name=>'Enrollment',:conditions=>['enrollments.workflow_state != ? AND enrollments.workflow_state != ? AND enrollments.workflow_state != ?','rejected','completed','deleted'],:include=>:user
37
+
has_many:current_enrollments,:class_name=>'Enrollment',:conditions=>['enrollments.workflow_state != ? AND enrollments.workflow_state != ? AND enrollments.workflow_state != ? AND enrollments.workflow_state != ?','rejected','completed','deleted','inactive'],:include=>:user
<%=@context.restrict_enrollments_to_course_dates ? "Users can only access the course between these dates" : "These dates will not affect course availability"%>
<ahref="<%=context_url(@context,:context_details_url)%>" class="button button-sidebar-wide edit_section_link"><%=image_tag"back.png"%> Back to Course Settings</a>
0 commit comments