disable timeout for testing whether bulk update request has been approved
This commit is contained in:
@@ -16,13 +16,14 @@ module BulkUpdateRequestsHelper
|
|||||||
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
|
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
|
||||||
|
|
||||||
when :mass_update
|
when :mass_update
|
||||||
Post.without_timeout do
|
!Post.raw_tag_match(antecedent).exists?
|
||||||
!Post.raw_tag_match(antecedent).exists?
|
|
||||||
end
|
|
||||||
|
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rescue PG::QueryCanceled
|
||||||
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
def failed?(command, antecedent, consequent)
|
def failed?(command, antecedent, consequent)
|
||||||
|
|||||||
Reference in New Issue
Block a user