Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/datacite/lupo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 16, 2020
2 parents 8606100 + d836129 commit 98d5d26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ def query(query, options={})
filter << { terms: { client_ids: options[:client_id].to_s.split(",") }} if options[:client_id].present?
filter << { terms: { state: options[:state].to_s.split(",") }} if options[:state].present?
elsif self.name == "ProviderPrefix"
Rails.logger.warn query.inspect
if query.present?
must = [{ prefix: { prefix_id: query }}]
else
Expand Down
8 changes: 7 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ class Application < Rails::Application
else
config.active_job.queue_adapter = :inline
end
config.active_job.queue_name_prefix = Rails.env

# use SQS based on environment, use "test" prefix for test system
if Rails.env == "stage"
config.active_job.queue_name_prefix = ENV['ES_PREFIX'].present? ? "stage" : "test"
else
config.active_job.queue_name_prefix = Rails.env
end

config.generators do |g|
g.fixture_replacement :factory_bot
Expand Down

0 comments on commit 98d5d26

Please sign in to comment.