10078: add configuration parameter to suppress display of user notifications to impro...
authorradhika <radhika@curoverse.com>
Mon, 3 Oct 2016 21:07:43 +0000 (17:07 -0400)
committerradhika <radhika@curoverse.com>
Mon, 3 Oct 2016 21:07:43 +0000 (17:07 -0400)
apps/workbench/app/controllers/application_controller.rb
apps/workbench/config/application.default.yml

index 3886d1c7632806476a3c7ad9d9323a935276850c..c6148ca544befd57c44a1549511b038d5d57ceec 100644 (file)
@@ -769,7 +769,7 @@ class ApplicationController < ActionController::Base
 
   helper_method :user_notifications
   def user_notifications
-    return [] if @errors or not current_user.andand.is_active
+    return [] if @errors or not current_user.andand.is_active or not Rails.configuration.show_user_notifications_in_dashboard
     @notifications ||= @@notification_tests.map do |t|
       t.call(self, current_user)
     end.compact
index 63262857cc839ae4b3f95b1a76aa32bef79760d4..95b178448b72bc4b26c967ce69df1ff4abfee98d 100644 (file)
@@ -282,6 +282,7 @@ common:
   running_job_log_records_to_fetch: 2000
 
   # In systems with many shared projects, dashboard loading can be
-  # slow due to collections indexing; the recent collections panel
-  # can be hidden by setting this configuration parameter to false
+  # slow due to collections indexing; use the following parameters
+  # to suppress certain properties from dashboard
   show_recent_collections_in_dashboard: true
+  show_user_notifications_in_dashboard: true