Skip to content

Commit bc52f12

Browse files
committed
chore: Remove live update for study group dashboard
Live updates have been disabled for 5 years. Related to #b2fc574
1 parent d3a6240 commit bc52f12

File tree

9 files changed

+1
-358
lines changed

9 files changed

+1
-358
lines changed

app/assets/javascripts/channels/la_exercises.js

Lines changed: 0 additions & 265 deletions
This file was deleted.

app/channels/la_exercises_channel.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

app/helpers/action_cable_helper.rb

Lines changed: 0 additions & 46 deletions
This file was deleted.

app/models/comment.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
class Comment < ApplicationRecord
44
# inherit the creation module: encapsulates that this is a polymorphic user, offers some aliases and makes sure that all necessary attributes are set.
55
include Creation
6-
include ActionCableHelper
76

87
attr_accessor :username, :date, :updated, :editable
98

109
belongs_to :file, class_name: 'CodeOcean::File'
1110
has_one :submission, through: :file, source: :context, source_type: 'Submission'
1211
has_one :request_for_comment, through: :submission
13-
# after_save :trigger_rfc_action_cable_from_comment
1412

1513
def only_comment_for_rfc?
1614
request_for_comment.comments.one?

app/models/request_for_comment.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
class RequestForComment < ApplicationRecord
44
include Creation
5-
include ActionCableHelper
65

76
# SOLVED: The author explicitly marked the RfC as solved.
87
# SOFT_SOLVED: The author did not mark the RfC as solved but reached the maximum score in the corresponding exercise at any time.
@@ -21,8 +20,6 @@ class RequestForComment < ApplicationRecord
2120
scope :in_range, ->(from, to) { from == DateTime.new(0) && to > 5.seconds.ago ? all : where(created_at: from..to) }
2221
scope :with_comments, -> { select {|rfc| rfc.comments.any? } }
2322

24-
# after_save :trigger_rfc_action_cable
25-
2623
def commenters
2724
comments.map(&:user).uniq
2825
end

app/models/submission.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
class Submission < ApplicationRecord
44
include Context
55
include ContributorCreation
6-
include ActionCableHelper
76

87
CAUSES = %w[assess download file render run save submit test autosave requestComments remoteAssess
98
remoteSubmit].freeze
@@ -48,8 +47,6 @@ class Submission < ApplicationRecord
4847

4948
validates :cause, inclusion: {in: CAUSES}
5049

51-
# after_save :trigger_working_times_action_cable
52-
5350
def collect_files
5451
@collect_files ||= begin
5552
ancestors = build_files_hash(exercise&.files&.includes(:file_type), :id)

0 commit comments

Comments
 (0)