Skip to content

Commit

Permalink
do not send notifications to ontology owners when running admin scripts
Browse files Browse the repository at this point in the history
fix #77
  • Loading branch information
alexskr committed Jul 17, 2024
1 parent 1fbfc8f commit e03c481
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/ncbo_ontology_delete
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ config_exists = File.exist?(File.expand_path('../../config/config.rb', __FILE__)
abort("Please create a config/config.rb file using the config/config.rb.sample as a template") unless config_exists
require_relative '../config/config'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false

require 'optparse'
options = {}
opt_parser = OptionParser.new do |opts|
Expand Down
3 changes: 3 additions & 0 deletions bin/ncbo_ontology_index
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ config_exists = File.exist?(File.expand_path('../../config/config.rb', __FILE__)
abort("Please create a config/config.rb file using the config/config.rb.sample as a template") unless config_exists
require_relative '../config/config'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false

platform = "local"
if LinkedData.settings.goo_host.include? "stage"
platform = "stage"
Expand Down
4 changes: 4 additions & 0 deletions bin/ncbo_ontology_metrics
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ config_exists = File.exist?(File.expand_path('../../config/config.rb', __FILE__)
abort("Please create a config/config.rb file using the config/config.rb.sample as a template") unless config_exists
require_relative '../config/config'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false


platform = "local"
if LinkedData.settings.goo_host.include? "stage"
platform = "stage"
Expand Down
3 changes: 3 additions & 0 deletions bin/ncbo_ontology_process
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ abort("Please create a config/config.rb file using the config/config.rb.sample a
require_relative '../config/config'
require 'optparse'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false

options = {all: false}
opt_parser = OptionParser.new do |opts|
# Set a banner, displayed at the top of the help screen.
Expand Down
3 changes: 3 additions & 0 deletions bin/ncbo_ontology_property_index
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ config_exists = File.exist?(File.expand_path('../../config/config.rb', __FILE__)
abort("Please create a config/config.rb file using the config/config.rb.sample as a template") unless config_exists
require_relative '../config/config'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false

platform = "local"
if LinkedData.settings.goo_host.include? "stage"
platform = "stage"
Expand Down
3 changes: 3 additions & 0 deletions bin/ncbo_ontology_pull
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ require_relative '../lib/ncbo_cron'
require_relative '../config/config'
require 'optparse'

# do not send notifications to ontology owners when running this script
LinkedData.settings.enable_notifications = false

ontology_acronym = ''
opt_parser = OptionParser.new do |opts|
opts.on('-o', '--ontology ACRONYM', 'Ontology acronym to pull if new version exist') do |acronym|
Expand Down

0 comments on commit e03c481

Please sign in to comment.