OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Skip slow log on test [ci skip]
Oliver Güntherd3ba1705e2a3
diff --git a/config/initializers/log_slow_sql_queries.rb b/config/initializers/log_slow_sql_queries.rbindex dceec6f5584..bf5cc118d72 100644--- a/config/initializers/log_slow_sql_queries.rb+++ b/config/initializers/log_slow_sql_queries.rb@@ -1,7 +1,9 @@OpenProject::Application.configure doconfig.after_initialize do+ next if Rails.env.test?+slow_sql_threshold = OpenProject::Configuration.sql_slow_query_threshold.to_i- return if slow_sql_threshold == 0+ next if slow_sql_threshold == 0ActiveSupport::Notifications.subscribe("sql.active_record") do |_name, start, finish, _id, data|# Skip transaction that may be blocked