mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 16:45:24 +08:00
6d1c2a3d5a
We support a low-level construct called "inline checks", which you can use to register a problem ad-hoc from within application code. Problems registered by inline checks never show up in the admin dashboard, this is because when loading the dashboard, we run all realtime checks and look for problems. Because of an oversight, we considered inline checks to be "realtime", causing them to be run and clear their problem status. To fix this, we don't consider inline checks to be realtime, to prevent them from running when loading the admin dashboard.
13 lines
273 B
Ruby
13 lines
273 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ProblemCheck::InlineProblemCheck < ProblemCheck
|
|
self.inline = true
|
|
|
|
def call
|
|
# The logic of this problem check is performed inline, so this class is
|
|
# purely here to support its configuration.
|
|
#
|
|
no_problem
|
|
end
|
|
end
|