-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Fenner
committed
Aug 25, 2019
1 parent
3f0d369
commit f1aa012
Showing
24 changed files
with
105 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,4 @@ doc/dependencies* | |
!.env.travis | ||
docker-compose.override.yml | ||
.ruby-version | ||
.vscode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddExtraProviderContacts < ActiveRecord::Migration[5.2] | ||
def up | ||
add_column :allocator, :general_contact, :json | ||
add_column :allocator, :technical_contact, :json | ||
add_column :allocator, :service_contact, :json | ||
add_column :allocator, :voting_contact, :json | ||
end | ||
def up | ||
add_column :allocator, :general_contact, :json | ||
add_column :allocator, :technical_contact, :json | ||
add_column :allocator, :service_contact, :json | ||
add_column :allocator, :voting_contact, :json | ||
end | ||
|
||
def down | ||
remove_column :allocator, :general_contact | ||
remove_column :allocator, :technical_contact | ||
remove_column :allocator, :service_contact | ||
remove_column :allocator, :voting_contact | ||
end | ||
def down | ||
remove_column :allocator, :general_contact | ||
remove_column :allocator, :technical_contact | ||
remove_column :allocator, :service_contact | ||
remove_column :allocator, :voting_contact | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
require 'elasticsearch/rails/tasks/import' | ||
# frozen_string_literal: true | ||
|
||
require 'elasticsearch/rails/tasks/import' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,53 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :provider do | ||
desc "Create index for providers" | ||
task :create_index => :environment do | ||
task create_index: :environment do | ||
puts Provider.create_index | ||
end | ||
|
||
desc "Delete index for providers" | ||
task :delete_index => :environment do | ||
task delete_index: :environment do | ||
puts Provider.delete_index | ||
end | ||
|
||
desc "Upgrade index for providers" | ||
task :upgrade_index => :environment do | ||
task upgrade_index: :environment do | ||
puts Provider.upgrade_index | ||
end | ||
|
||
desc "Show index stats for providers" | ||
task :index_stats => :environment do | ||
task index_stats: :environment do | ||
puts Provider.index_stats | ||
end | ||
|
||
desc "Switch index for providers" | ||
task :switch_index => :environment do | ||
task switch_index: :environment do | ||
puts Provider.switch_index | ||
end | ||
|
||
desc "Return active index for providers" | ||
task :active_index => :environment do | ||
task active_index: :environment do | ||
puts Provider.active_index + " is the active index." | ||
end | ||
|
||
desc "Start using alias indexes for providers" | ||
task :start_aliases => :environment do | ||
task start_aliases: :environment do | ||
puts Provider.start_aliases | ||
end | ||
|
||
desc "Monitor reindexing for providers" | ||
task :monitor_reindex => :environment do | ||
task monitor_reindex: :environment do | ||
puts Provider.monitor_reindex | ||
end | ||
|
||
desc "Wrap up starting using alias indexes for providers" | ||
task :finish_aliases => :environment do | ||
task finish_aliases: :environment do | ||
puts Provider.finish_aliases | ||
end | ||
|
||
desc 'Import all providers' | ||
task :import => :environment do | ||
task import: :environment do | ||
Provider.import(index: Provider.inactive_index) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,53 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :researcher do | ||
desc "Create index for researchers" | ||
task :create_index => :environment do | ||
task create_index: :environment do | ||
puts Researcher.create_index | ||
end | ||
|
||
desc "Delete index for researchers" | ||
task :delete_index => :environment do | ||
task delete_index: :environment do | ||
puts Researcher.delete_index | ||
end | ||
|
||
desc "Upgrade index for researchers" | ||
task :upgrade_index => :environment do | ||
task upgrade_index: :environment do | ||
puts Researcher.upgrade_index | ||
end | ||
|
||
desc "Show index stats for researchers" | ||
task :index_stats => :environment do | ||
task index_stats: :environment do | ||
puts Researcher.index_stats | ||
end | ||
|
||
desc "Switch index for researchers" | ||
task :switch_index => :environment do | ||
task switch_index: :environment do | ||
puts Researcher.switch_index | ||
end | ||
|
||
desc "Return active index for researchers" | ||
task :active_index => :environment do | ||
task active_index: :environment do | ||
puts Researcher.active_index + " is the active index." | ||
end | ||
|
||
desc "Start using alias indexes for researchers" | ||
task :start_aliases => :environment do | ||
task start_aliases: :environment do | ||
puts Researcher.start_aliases | ||
end | ||
|
||
desc "Monitor reindexing for researchers" | ||
task :monitor_reindex => :environment do | ||
task monitor_reindex: :environment do | ||
puts Researcher.monitor_reindex | ||
end | ||
|
||
desc "Wrap up starting using alias indexes for researchers" | ||
task :finish_aliases => :environment do | ||
task finish_aliases: :environment do | ||
puts Researcher.finish_aliases | ||
end | ||
|
||
desc 'Import all researchers' | ||
task :import => :environment do | ||
task import: :environment do | ||
Researcher.import(index: Researcher.inactive_index) | ||
end | ||
end | ||
end |