geoblacklight_admin 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 387d4164b7cdadef3906c3370163e6057ab2ef8004b11d9de847d634afca62bd
4
- data.tar.gz: 3102dad801555d0de37e6dd9588cc427661fb5c45772b82a3ddf9baece1f51a2
3
+ metadata.gz: d481871da3c4f82143de532f4df640d9beb80dd3ed82f4c6bde271eb8b1ff392
4
+ data.tar.gz: eefd4402d4b850aa8e359fe092431171d543943a9a33ec0484b43525a0cf74f1
5
5
  SHA512:
6
- metadata.gz: e0f33cd2c6fa0c7f9ea40d8616e80cac819636c4319280adf20442637533f8177b87825273aa70ca1371c865fc14c4871fd98d79443b432a2df3b7ce369f8ccf
7
- data.tar.gz: 2228cf2c8b4fd7c838397f0a9d6fec9a4f8a3f39614df84cdb7245776a665323aa7af7217bb61e658c5b23a5a09c95e78ac41c767c41afdfd7f4b85a0bf8a193
6
+ metadata.gz: 0472f22c4d1018519ad27523bfb805d65fe24762ef962495f3dffcb4556933fd7f4a06f8cd2aa6a21c67f4463cbfe357ee28884703113d08f8dde0c13d1ae539
7
+ data.tar.gz: 4ed5042da0ecb189d7d396ebe841393809171ea793a5610ae5936981a7ff34bd307493241d933d18cdf244202a212f44828616fad8715aede46b12ba8a708a2b
@@ -2,7 +2,7 @@
2
2
 
3
3
  # BulkActionRevertDocumentJob
4
4
  class BulkActionRevertDocumentJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(action, doc)
8
8
  case action
@@ -2,7 +2,7 @@
2
2
 
3
3
  # BulkActionRevertJob
4
4
  class BulkActionRevertJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(bulk_action)
8
8
  action = case bulk_action.field_name
@@ -2,7 +2,7 @@
2
2
 
3
3
  # BulkActionRunDocumentJob
4
4
  class BulkActionRunDocumentJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(action, doc, field_name, field_value)
8
8
  case action
@@ -2,7 +2,7 @@
2
2
 
3
3
  # BulkActionRunJob
4
4
  class BulkActionRunJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(bulk_action)
8
8
  action = case bulk_action.field_name
@@ -4,7 +4,7 @@ require "csv"
4
4
 
5
5
  # ExportJob
6
6
  class ExportJob < ApplicationJob
7
- queue_as :default
7
+ queue_as :priority
8
8
 
9
9
  def perform(request, current_user, query_params, export_service)
10
10
  logger.debug("\n\n Background Job: ♞")
@@ -4,7 +4,7 @@ require "csv"
4
4
 
5
5
  # ExportJsonBulkJob
6
6
  class ExportJsonBulkJob < ApplicationJob
7
- queue_as :default
7
+ queue_as :priority
8
8
 
9
9
  def perform(request, current_user, query_params, export_service)
10
10
  logger.debug("\n\n Background Job: ♞")
@@ -5,7 +5,7 @@ require "pathname"
5
5
 
6
6
  # ExportJsonJob
7
7
  class ExportJsonJob < ApplicationJob
8
- queue_as :default
8
+ queue_as :priority
9
9
 
10
10
  def perform(request, current_user, query_params, export_service)
11
11
  logger.debug("\n\n Background Job: ♞")
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ImportDocumentJob class
4
4
  class ImportDocumentJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(import_document)
8
8
  # @TODO: Check for friendlier_id or raise error
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ImportRunJob class
4
4
  class ImportRunJob < ApplicationJob
5
- queue_as :default
5
+ queue_as :priority
6
6
 
7
7
  def perform(import)
8
8
  data = CSV.parse(import.csv_file.download.force_encoding("UTF-8"), headers: true)
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "httparty"
4
+
3
5
  # BlacklightApi
4
6
  class BlacklightApiIds
5
7
  include HTTParty
@@ -1,4 +1,4 @@
1
- <span id="result-selected-options" class="hidden" data-scope="pageset" data-controller="results" data-resultset="<%= admin_documents_path( params.to_unsafe_h.merge({rows: '10000'})) %>" data-pageset="/fetch?">
1
+ <span id="result-selected-options" class="hidden" data-scope="pageset" data-controller="results" data-resultset="<%= admin_documents_path( params.to_unsafe_h.merge({rows: '1000'})) %>" data-pageset="/fetch?">
2
2
 
3
3
  <%= form_with(model: BulkAction.new, html: { id: 'result-action-form', data: { type: "html", action: "submit->results#setPubState" }, style: 'display:inline'}, url: admin_bulk_actions_path) do |form| -%>
4
4
  <%= form.hidden_field :request, value: "#{request.protocol}#{request.host}:#{request.port}" %>
@@ -9,9 +9,10 @@ module GeoblacklightAdmin
9
9
  desc <<-DESCRIPTION
10
10
  This generator makes the following changes to your application:
11
11
  1. Copies GBL Admin initializer files to host config
12
- 5. Copies database.yml connection to host config
13
- 5. Copies settings.yml to host config
14
- 6. Copies .env.development and .env.test to host
12
+ 2. Copies database.yml connection to host config
13
+ 3. Copies sidekiq.yml connection to host config
14
+ 4. Copies settings.yml to host config
15
+ 5. Copies .env.development and .env.test to host
15
16
  6. Copies JSON Schema to host
16
17
  7. Copies solr/* to host
17
18
  8. Sets Routes
@@ -38,6 +39,10 @@ module GeoblacklightAdmin
38
39
  copy_file "config/database.yml", "config/database.yml", force: true
39
40
  end
40
41
 
42
+ def create_sidekiq_yml
43
+ copy_file "config/sidekiq.yml", "config/sidekiq.yml", force: true
44
+ end
45
+
41
46
  def create_dotenv
42
47
  copy_file ".env.development.example", ".env.development"
43
48
  copy_file ".env.development.example", ".env.test"
@@ -281,6 +286,11 @@ module GeoblacklightAdmin
281
286
  directory "javascript", "app/javascript", force: true
282
287
  end
283
288
 
289
+ def copy_app_images
290
+ copy_file "images/bookmark-regular.svg", "app/assets/images/bookmark-regular.svg"
291
+ copy_file "images/bookmark-solid.svg", "app/assets/images/bookmark-solid.svg"
292
+ end
293
+
284
294
  def add_package_json
285
295
  copy_file "package.json", "package.json", force: true
286
296
  end
@@ -0,0 +1,7 @@
1
+ :concurrency: 3
2
+ :max_retries: 1
3
+
4
+ :queues:
5
+ - priority
6
+ - devise
7
+ - default
@@ -0,0 +1 @@
1
+ <svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="bookmark" class="svg-inline--fa fa-bookmark fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bookmark" class="svg-inline--fa fa-bookmark fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"></path></svg>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-12 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -1004,6 +1004,7 @@ files:
1004
1004
  - lib/generators/geoblacklight_admin/templates/config/initializers/simple_form_bootstrap.rb
1005
1005
  - lib/generators/geoblacklight_admin/templates/config/initializers/statesman.rb
1006
1006
  - lib/generators/geoblacklight_admin/templates/config/settings.yml
1007
+ - lib/generators/geoblacklight_admin/templates/config/sidekiq.yml
1007
1008
  - lib/generators/geoblacklight_admin/templates/devise/confirmations/new.html.erb
1008
1009
  - lib/generators/geoblacklight_admin/templates/devise/invitations/edit.html.erb
1009
1010
  - lib/generators/geoblacklight_admin/templates/devise/invitations/new.html.erb
@@ -1016,6 +1017,8 @@ files:
1016
1017
  - lib/generators/geoblacklight_admin/templates/devise/sessions/new.html.erb
1017
1018
  - lib/generators/geoblacklight_admin/templates/devise/shared/_links.html.erb
1018
1019
  - lib/generators/geoblacklight_admin/templates/devise/unlocks/new.html.erb
1020
+ - lib/generators/geoblacklight_admin/templates/images/bookmark-regular.svg
1021
+ - lib/generators/geoblacklight_admin/templates/images/bookmark-solid.svg
1019
1022
  - lib/generators/geoblacklight_admin/templates/javascript/channels/consumer.js
1020
1023
  - lib/generators/geoblacklight_admin/templates/javascript/channels/export_channel.js
1021
1024
  - lib/generators/geoblacklight_admin/templates/javascript/channels/index.js