blacklight-spotlight 3.0.0.rc3 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/blacklight/close.svg +1 -0
- data/app/assets/images/blacklight/zoom_in.svg +1 -0
- data/app/assets/images/blacklight/zoom_out.svg +1 -0
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +8 -1
- data/app/assets/javascripts/spotlight/admin/catalog_edit.js +13 -47
- data/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
- data/app/assets/javascripts/spotlight/admin/{reindex_monitor.js → progress_monitor.js} +26 -4
- data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +1 -1
- data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +29 -14
- data/app/assets/stylesheets/spotlight/_browse.scss +8 -0
- data/app/assets/stylesheets/spotlight/_catalog.scss +30 -4
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +9 -0
- data/app/assets/stylesheets/spotlight/_modals.scss +3 -0
- data/app/assets/stylesheets/spotlight/_nestable.scss +8 -0
- data/app/assets/stylesheets/spotlight/_spotlight.scss +2 -0
- data/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +23 -0
- data/app/assets/stylesheets/spotlight/typeahead.css +23 -23
- data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +4 -2
- data/app/controllers/concerns/spotlight/base.rb +1 -1
- data/app/controllers/concerns/spotlight/catalog.rb +7 -1
- data/app/controllers/spotlight/browse_controller.rb +9 -15
- data/app/controllers/spotlight/bulk_actions_controller.rb +62 -0
- data/app/controllers/spotlight/bulk_updates_controller.rb +67 -0
- data/app/controllers/spotlight/catalog_controller.rb +16 -13
- data/app/controllers/spotlight/dashboards_controller.rb +5 -4
- data/app/controllers/spotlight/exhibits_controller.rb +1 -1
- data/app/controllers/spotlight/featured_images_controller.rb +1 -1
- data/app/controllers/spotlight/job_trackers_controller.rb +17 -0
- data/app/controllers/spotlight/pages_controller.rb +6 -7
- data/app/controllers/spotlight/tags_controller.rb +39 -5
- data/app/helpers/spotlight/application_helper.rb +20 -1
- data/app/helpers/spotlight/job_trackers_helper.rb +31 -0
- data/app/helpers/spotlight/main_app_helpers.rb +3 -4
- data/app/helpers/spotlight/meta_helper.rb +2 -2
- data/app/helpers/spotlight/pages_helper.rb +1 -8
- data/app/helpers/spotlight/roles_helper.rb +1 -1
- data/app/helpers/spotlight/searches_helper.rb +1 -1
- data/app/jobs/concerns/spotlight/gather_documents.rb +35 -0
- data/app/jobs/concerns/spotlight/job_tracking.rb +64 -0
- data/app/jobs/concerns/spotlight/limit_concurrency.rb +33 -0
- data/app/jobs/spotlight/add_tags_job.rb +31 -0
- data/app/jobs/spotlight/add_uploads_from_csv.rb +4 -3
- data/app/jobs/spotlight/application_job.rb +8 -0
- data/app/jobs/spotlight/change_visibility_job.rb +33 -0
- data/app/jobs/spotlight/cleanup_job_trackers_job.rb +13 -0
- data/app/jobs/spotlight/default_thumbnail_job.rb +1 -3
- data/app/jobs/spotlight/process_bulk_updates_csv_job.rb +82 -0
- data/app/jobs/spotlight/reindex_exhibit_job.rb +39 -0
- data/app/jobs/spotlight/reindex_job.rb +64 -44
- data/app/jobs/spotlight/remove_tags_job.rb +31 -0
- data/app/jobs/spotlight/rename_sidecar_field_job.rb +3 -2
- data/app/jobs/spotlight/rename_tags_job.rb +33 -0
- data/app/jobs/spotlight/update_job_trackers_job.rb +20 -0
- data/app/models/concerns/spotlight/browse_category_search_builder.rb +59 -0
- data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -6
- data/app/models/concerns/spotlight/exhibit_documents.rb +2 -2
- data/app/models/concerns/spotlight/resources/web.rb +1 -1
- data/app/models/concerns/spotlight/search_builder.rb +11 -0
- data/app/models/concerns/spotlight/solr_document.rb +1 -1
- data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -2
- data/app/models/concerns/spotlight/user.rb +7 -2
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +9 -0
- data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +4 -0
- data/app/models/spotlight/ability.rb +6 -2
- data/app/models/spotlight/attachment.rb +1 -1
- data/app/models/spotlight/background_job_progress.rb +96 -0
- data/app/models/spotlight/blacklight_configuration.rb +26 -6
- data/app/models/spotlight/bulk_update.rb +8 -0
- data/app/models/spotlight/event.rb +13 -0
- data/app/models/spotlight/exhibit.rb +5 -14
- data/app/models/spotlight/feature_page.rb +0 -2
- data/app/models/spotlight/featured_image.rb +40 -1
- data/app/models/spotlight/field_metadata.rb +4 -8
- data/app/models/spotlight/job_tracker.rb +114 -0
- data/app/models/spotlight/page.rb +1 -3
- data/app/models/spotlight/page_configurations.rb +10 -9
- data/app/models/spotlight/resource.rb +28 -62
- data/app/models/spotlight/resources/iiif_harvester.rb +12 -3
- data/app/models/spotlight/resources/iiif_manifest.rb +3 -1
- data/app/models/spotlight/resources/iiif_service.rb +9 -2
- data/app/models/spotlight/resources/json_upload.rb +12 -0
- data/app/models/spotlight/resources/upload.rb +25 -2
- data/app/models/spotlight/role.rb +1 -2
- data/app/models/spotlight/solr_document_sidecar.rb +2 -1
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -2
- data/app/services/spotlight/bulk_updates_csv_template_service.rb +93 -0
- data/app/services/spotlight/etl.rb +7 -0
- data/app/services/spotlight/etl/context.rb +52 -0
- data/app/services/spotlight/etl/executor.rb +192 -0
- data/app/services/spotlight/etl/loaders.rb +12 -0
- data/app/services/spotlight/etl/pipeline.rb +81 -0
- data/app/services/spotlight/etl/solr_loader.rb +96 -0
- data/app/services/spotlight/etl/sources.rb +25 -0
- data/app/services/spotlight/etl/step.rb +82 -0
- data/app/services/spotlight/etl/transforms.rb +64 -0
- data/app/services/spotlight/iiif_resource_resolver.rb +1 -1
- data/app/services/spotlight/validity_checker.rb +5 -5
- data/app/uploaders/spotlight/bulk_updates_uploader.rb +7 -0
- data/app/uploaders/spotlight/featured_image_uploader.rb +1 -1
- data/app/views/catalog/_add_tags.html.erb +28 -0
- data/app/views/catalog/_bulk_actions.html.erb +12 -0
- data/app/views/catalog/_change_visibility.html.erb +35 -0
- data/app/views/catalog/_curator_actions.html.erb +3 -0
- data/app/views/catalog/_remove_tags.html.erb +37 -0
- data/app/views/catalog/_save_search.html.erb +1 -1
- data/app/views/spotlight/about_pages/_sidebar.html.erb +2 -2
- data/app/views/spotlight/browse/_search.html.erb +3 -3
- data/app/views/spotlight/browse/_search_box.html.erb +9 -9
- data/app/views/spotlight/browse/_search_title.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_download.html.erb +23 -0
- data/app/views/spotlight/bulk_updates/_overview.html.erb +1 -0
- data/app/views/spotlight/bulk_updates/_progress_panel.html.erb +19 -0
- data/app/views/spotlight/bulk_updates/_upload.html.erb +12 -0
- data/app/views/spotlight/bulk_updates/edit.html.erb +37 -0
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_index_header_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_thumbnail_default.html.erb +3 -2
- data/app/views/spotlight/catalog/_edit_default.html.erb +2 -2
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +1 -1
- data/app/views/spotlight/catalog/index.iiif_json.jbuilder +1 -1
- data/app/views/spotlight/custom_fields/_form.html.erb +1 -1
- data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
- data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +6 -6
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +1 -1
- data/app/views/spotlight/featured_images/_form.html.erb +1 -1
- data/app/views/spotlight/job_trackers/show.html.erb +79 -0
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +2 -2
- data/app/views/spotlight/pages/_form.html.erb +2 -2
- data/app/views/spotlight/pages/_order_pages.html.erb +2 -2
- data/app/views/spotlight/pages/_view_type_group.html.erb +3 -3
- data/app/views/spotlight/pages/show.html.erb +1 -1
- data/app/views/spotlight/resources/_form.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
- data/app/views/spotlight/resources/json_upload/_form.html.erb +2 -2
- data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +2 -2
- data/app/views/spotlight/searches/_form.html.erb +2 -2
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +3 -0
- data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +7 -6
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +7 -7
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +9 -7
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +5 -5
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +4 -0
- data/app/views/spotlight/tags/_tag.html.erb +24 -0
- data/app/views/spotlight/tags/index.html.erb +12 -16
- data/app/views/spotlight/translations/show.yaml.yamlbuilder +6 -0
- data/config/i18n-tasks.yml +1 -0
- data/config/locales/spotlight.ar.yml +11 -1
- data/config/locales/spotlight.en.yml +170 -10
- data/config/routes.rb +29 -1
- data/db/migrate/20210122082032_create_job_trackers.rb +22 -0
- data/db/migrate/20210126123041_create_events.rb +15 -0
- data/db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb +20 -0
- data/db/migrate/20210305171150_create_bulk_updates.rb +9 -0
- data/db/migrate/20210308090000_migrate_caption_values_for_title_key.rb +29 -0
- data/db/migrate/20210506070809_add_indexes_for_featured_images.rb +9 -0
- data/lib/generators/spotlight/install_generator.rb +2 -2
- data/lib/generators/spotlight/scaffold_resource_generator.rb +5 -13
- data/lib/generators/spotlight/templates/config/initializers/riiif.rb +7 -5
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +1 -1
- data/lib/generators/spotlight/templates/solr/config/schema.xml +1 -1
- data/lib/migration/iiif.rb +3 -3
- data/lib/spotlight/engine.rb +22 -1
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/browse_controller_spec.rb +0 -6
- data/spec/controllers/spotlight/bulk_actions_controller_spec.rb +124 -0
- data/spec/controllers/spotlight/bulk_updates_controller_spec.rb +77 -0
- data/spec/controllers/spotlight/catalog_controller_spec.rb +15 -13
- data/spec/controllers/spotlight/featured_images_controller_spec.rb +3 -3
- data/spec/controllers/spotlight/job_trackers_controller_spec.rb +37 -0
- data/spec/controllers/spotlight/tags_controller_spec.rb +5 -1
- data/spec/examples.txt +1502 -1437
- data/spec/factories/bulk_updates.rb +15 -0
- data/spec/factories/exhibits.rb +4 -0
- data/spec/factories/job_trackers.rb +11 -0
- data/spec/factories/users.rb +27 -8
- data/spec/features/add_items_spec.rb +10 -5
- data/spec/features/bulk_actions_spec.rb +72 -0
- data/spec/features/catalog_spec.rb +1 -0
- data/spec/features/import_exhibit_spec.rb +5 -1
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +4 -4
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +27 -1
- data/spec/features/javascript/reindex_monitor_spec.rb +1 -1
- data/spec/features/site_users_management_spec.rb +5 -5
- data/spec/fixtures/bulk-update-template.csv +57 -0
- data/spec/fixtures/updated-bulk-update-template-w-tags.csv +4 -0
- data/spec/fixtures/updated-bulk-update-template.csv +4 -0
- data/spec/helpers/spotlight/application_helper_spec.rb +5 -6
- data/spec/helpers/spotlight/pages_helper_spec.rb +8 -15
- data/spec/helpers/spotlight/roles_helper_spec.rb +1 -1
- data/spec/i18n_spec.rb +1 -0
- data/spec/jobs/spotlight/add_tags_job_spec.rb +34 -0
- data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +4 -1
- data/spec/jobs/spotlight/change_visibility_job_spec.rb +30 -0
- data/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +78 -0
- data/spec/jobs/spotlight/reindex_exhibit_job_spec.rb +43 -0
- data/spec/jobs/spotlight/reindex_job_spec.rb +34 -60
- data/spec/jobs/spotlight/remove_tags_job_spec.rb +39 -0
- data/spec/lib/migration/iiif_spec.rb +1 -1
- data/spec/models/spotlight/ability_spec.rb +27 -0
- data/spec/models/spotlight/background_job_progress_spec.rb +137 -0
- data/spec/models/spotlight/blacklight_configuration_spec.rb +22 -17
- data/spec/models/spotlight/browse_category_search_builder_spec.rb +49 -0
- data/spec/models/spotlight/exhibit_spec.rb +4 -58
- data/spec/models/spotlight/featured_image_spec.rb +13 -1
- data/spec/models/spotlight/resource_spec.rb +89 -87
- data/spec/models/spotlight/resources/iiif_harvester_spec.rb +9 -10
- data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +10 -0
- data/spec/models/spotlight/solr_document_sidecar_spec.rb +1 -0
- data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +1 -1
- data/spec/services/spotlight/bulk_updates_csv_template_service_spec.rb +26 -0
- data/spec/services/spotlight/etl/context_spec.rb +66 -0
- data/spec/services/spotlight/etl/executor_spec.rb +149 -0
- data/spec/services/spotlight/etl/pipeline_spec.rb +22 -0
- data/spec/services/spotlight/etl/solr_loader_spec.rb +76 -0
- data/spec/services/spotlight/etl/step_spec.rb +70 -0
- data/spec/spec_helper.rb +2 -5
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -2
- data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +24 -19
- data/spec/views/spotlight/job_trackers/show.html.erb_spec.rb +65 -0
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -4
- data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +8 -4
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +7 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +8 -5
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +3 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +9 -4
- data/spec/views/spotlight/tags/index.html.erb_spec.rb +5 -2
- metadata +143 -34
- data/app/assets/images/blacklight/add_circle.svg +0 -1
- data/app/assets/images/blacklight/custom_fullscreen.svg +0 -1
- data/app/assets/images/blacklight/remove_circle.svg +0 -1
- data/app/assets/images/blacklight/resize_small.svg +0 -1
- data/app/models/concerns/spotlight/resources/open_graph.rb +0 -36
- data/app/models/spotlight/reindex_progress.rb +0 -78
- data/app/models/spotlight/reindexing_log_entry.rb +0 -42
- data/app/services/spotlight/resources/iiif_builder.rb +0 -19
- data/app/services/spotlight/solr_document_builder.rb +0 -77
- data/app/services/spotlight/upload_solr_document_builder.rb +0 -57
- data/spec/factories/reindexing_log_entries.rb +0 -54
- data/spec/models/spotlight/reindex_progress_spec.rb +0 -122
- data/spec/models/spotlight/reindexing_log_entry_spec.rb +0 -129
- data/spec/models/spotlight/resources/open_graph_spec.rb +0 -65
- data/spec/services/spotlight/solr_document_builder_spec.rb +0 -66
data/spec/spec_helper.rb
CHANGED
@@ -48,6 +48,8 @@ require 'spotlight'
|
|
48
48
|
|
49
49
|
# configure spotlight with all the settings necessary to test functionality
|
50
50
|
Spotlight::Engine.config.exhibit_themes = %w[default modern]
|
51
|
+
Spotlight::Engine.config.reindexing_batch_count = 1
|
52
|
+
Spotlight::Engine.config.assign_default_roles_to_first_user = false
|
51
53
|
|
52
54
|
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
53
55
|
|
@@ -62,11 +64,6 @@ RSpec.configure do |config|
|
|
62
64
|
|
63
65
|
config.use_transactional_fixtures = true
|
64
66
|
|
65
|
-
config.before do
|
66
|
-
# The first user is automatically granted admin privileges; we don't want that behavior for many of our tests
|
67
|
-
Spotlight::Engine.user_class.create email: 'initial+admin@example.com', password: 'password', password_confirmation: 'password'
|
68
|
-
end
|
69
|
-
|
70
67
|
if defined? Devise::Test::ControllerHelpers
|
71
68
|
config.include Devise::Test::ControllerHelpers, type: :controller
|
72
69
|
config.include Devise::Test::ControllerHelpers, type: :view
|
@@ -5,9 +5,9 @@ describe Spotlight::FeaturedImageUploader do
|
|
5
5
|
|
6
6
|
let(:mounter) { FactoryBot.create(:featured_image) }
|
7
7
|
|
8
|
-
describe '#
|
8
|
+
describe '#extension_allowlist' do
|
9
9
|
it 'is the configured array of approved extension to be uploaded' do
|
10
|
-
expect(featured_image_uploader.
|
10
|
+
expect(featured_image_uploader.extension_allowlist).to eq Spotlight::Engine.config.allowed_upload_extensions
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -25,7 +25,7 @@ describe 'spotlight/catalog/_edit_default.html.erb', type: :view do
|
|
25
25
|
it 'has a edit tag form' do
|
26
26
|
render
|
27
27
|
expect(rendered).to have_field 'solr_document_exhibit_tag_list'
|
28
|
-
expect(rendered).to have_selector '#solr_document_exhibit_tag_list[@data-
|
28
|
+
expect(rendered).to have_selector '#solr_document_exhibit_tag_list[@data-autocomplete-url="autocomplete-path.json"]'
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'does not have special metadata editing fields for non-uploaded resources' do
|
@@ -1,21 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do
|
4
|
-
# recent reindexing entries should be sorted by start_time in descending order, so mock that behavior
|
5
|
-
let(:recent_reindexing) do
|
6
|
-
[FactoryBot.build(:unstarted_reindexing_log_entry)] + # nil start_time is trouble for the sort_by used to create the rest of the fixture's rows
|
7
|
-
[
|
8
|
-
FactoryBot.build(:reindexing_log_entry),
|
9
|
-
FactoryBot.build(:in_progress_reindexing_log_entry),
|
10
|
-
FactoryBot.build(:recent_reindexing_log_entry),
|
11
|
-
FactoryBot.build(:failed_reindexing_log_entry)
|
12
|
-
].sort_by(&:start_time).reverse
|
13
|
-
end
|
14
4
|
let(:p) { 'spotlight/dashboards/reindexing_activity' }
|
5
|
+
let(:exhibit) { FactoryBot.build(:exhibit) }
|
6
|
+
|
7
|
+
before do
|
8
|
+
assign(:recent_reindexing, recent_reindexing)
|
9
|
+
allow(view).to receive(:current_exhibit).and_return(exhibit)
|
10
|
+
end
|
15
11
|
|
16
12
|
context 'the reindexing log is empty' do
|
13
|
+
let(:recent_reindexing) { [] }
|
14
|
+
|
17
15
|
before do
|
18
|
-
assign(:recent_reindexing, [])
|
19
16
|
render p
|
20
17
|
end
|
21
18
|
|
@@ -29,8 +26,18 @@ describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do
|
|
29
26
|
end
|
30
27
|
|
31
28
|
context 'the reindexing log has entries' do
|
29
|
+
# recent reindexing entries should be sorted by start_time in descending order, so mock that behavior
|
30
|
+
let(:recent_reindexing) do
|
31
|
+
[
|
32
|
+
FactoryBot.build(:job_tracker, status: 'enqueued'),
|
33
|
+
FactoryBot.build(:job_tracker, status: 'completed', data: { progress: 10 }),
|
34
|
+
FactoryBot.build(:job_tracker, status: 'in_progress', created_at: Time.zone.parse('January 10, 2017 23:00')),
|
35
|
+
FactoryBot.build(:job_tracker, status: 'completed', data: { progress: 100 }),
|
36
|
+
FactoryBot.build(:job_tracker, status: 'failed', data: { progress: 10 })
|
37
|
+
]
|
38
|
+
end
|
39
|
+
|
32
40
|
before do
|
33
|
-
assign(:recent_reindexing, recent_reindexing)
|
34
41
|
render p
|
35
42
|
end
|
36
43
|
|
@@ -43,7 +50,7 @@ describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do
|
|
43
50
|
end
|
44
51
|
|
45
52
|
it 'formats the start time correctly' do
|
46
|
-
expect(rendered).to have_css('table.table-striped td', text: 'January 05, 2017 23:00', count:
|
53
|
+
expect(rendered).to have_css('table.table-striped td', text: 'January 05, 2017 23:00', count: 4)
|
47
54
|
expect(rendered).to have_css('table.table-striped td', text: 'January 10, 2017 23:00', count: 1)
|
48
55
|
end
|
49
56
|
|
@@ -60,11 +67,6 @@ describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do
|
|
60
67
|
expect(rendered).to have_css('table.table-striped td', text: '5 minutes', count: 3)
|
61
68
|
end
|
62
69
|
|
63
|
-
it 'displays nothing in the duration column or start time column when the info is unavailable (e.g. unstarted or in_progress attempts)' do
|
64
|
-
# we expect 2 blank durations, and 1 blank start time (1 unstarted log entry w/ blank start and duration, 1 in_progress w/ blank duration)
|
65
|
-
expect(rendered).to have_css('table.table-striped td', text: /^$/, count: 3)
|
66
|
-
end
|
67
|
-
|
68
70
|
it 'displays the status of the reindexing attempt using localized text' do
|
69
71
|
expect(rendered).to have_css('table.table-striped td', text: 'Not yet started', count: 1)
|
70
72
|
expect(rendered).to have_css('table.table-striped td', text: 'Successful', count: 2)
|
@@ -74,8 +76,11 @@ describe 'spotlight/dashboards/_reindexing_activity.html.erb', type: :view do
|
|
74
76
|
end
|
75
77
|
|
76
78
|
context 'a reindexing log entry has a null user' do
|
79
|
+
let(:recent_reindexing) do
|
80
|
+
[FactoryBot.build(:job_tracker, status: 'completed', data: { progress: 10 }, user: nil)]
|
81
|
+
end
|
82
|
+
|
77
83
|
it 'displays blank in the user field and renders without error' do
|
78
|
-
assign(:recent_reindexing, [FactoryBot.build(:reindexing_log_entry_no_user)])
|
79
84
|
expect { render p }.not_to raise_error
|
80
85
|
|
81
86
|
# we expect one blank table cell for the user, and values for everything else
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'spotlight/job_trackers/show', type: :view do
|
4
|
+
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
+
let(:job_tracker) { FactoryBot.create(:job_tracker, job_class: 'Spotlight::ReindexExhibitJob', on: exhibit, user: user) }
|
6
|
+
let(:user) { FactoryBot.create(:user) }
|
7
|
+
|
8
|
+
before do
|
9
|
+
assign(:exhibit, exhibit)
|
10
|
+
assign(:job_tracker, job_tracker)
|
11
|
+
|
12
|
+
allow(view).to receive_messages(current_exhibit: exhibit)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'displays the type of job' do
|
16
|
+
render
|
17
|
+
expect(rendered).to have_selector 'h2', text: 'Spotlight::ReindexExhibitJob'
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'displays the job status for enqueued jobs' do
|
21
|
+
job_tracker.update(status: 'enqueued')
|
22
|
+
render
|
23
|
+
expect(rendered).to have_content '⏱'
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'displays the job status for failed jobs' do
|
27
|
+
job_tracker.update(status: 'failed')
|
28
|
+
render
|
29
|
+
expect(rendered).to have_content '🟥'
|
30
|
+
expect(rendered).to have_content 'job failed'
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'displays the job status for successful jobs' do
|
34
|
+
job_tracker.update(status: 'completed')
|
35
|
+
render
|
36
|
+
expect(rendered).to have_content '✅'
|
37
|
+
expect(rendered).to have_content 'job completed'
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'display job started events' do
|
41
|
+
render
|
42
|
+
expect(rendered).to have_selector 'tr', text: '1 job started', normalize_ws: true
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'records who started the job' do
|
46
|
+
render
|
47
|
+
expect(rendered).to have_selector 'tr', text: "2 job created by #{user.email}", normalize_ws: true
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'displays logged messages' do
|
51
|
+
job_tracker.events.create(data: { message: 'this is a useful log message' })
|
52
|
+
job_tracker.events.create(data: { message: 'and so is this' })
|
53
|
+
|
54
|
+
render
|
55
|
+
expect(rendered).to have_selector 'tr', text: 'this is a useful log message'
|
56
|
+
expect(rendered).to have_selector 'tr', text: 'and so is this'
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'displays job progress information' do
|
60
|
+
allow(job_tracker).to receive_messages(progress: 37, total: 51)
|
61
|
+
|
62
|
+
render
|
63
|
+
expect(rendered).to have_content 'processed 37 / 51'
|
64
|
+
end
|
65
|
+
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
describe 'spotlight/metadata_configurations/_metadata_field', type: :view do
|
4
4
|
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
-
let(:field) { Blacklight::Configuration::Field.new immutable: OpenStruct.new(another_view_type: false) }
|
5
|
+
let(:field) { Blacklight::Configuration::Field.new label: 'Some label', immutable: OpenStruct.new(another_view_type: false) }
|
6
6
|
let(:builder) { ActionView::Helpers::FormBuilder.new 'z', nil, view, {} }
|
7
|
-
let(:p) { 'spotlight/metadata_configurations/metadata_field
|
7
|
+
let(:p) { 'spotlight/metadata_configurations/metadata_field' }
|
8
8
|
|
9
9
|
before do
|
10
10
|
assign(:exhibit, exhibit)
|
@@ -17,8 +17,7 @@ describe 'spotlight/metadata_configurations/_metadata_field', type: :view do
|
|
17
17
|
)
|
18
18
|
end
|
19
19
|
|
20
|
-
it 'uses the
|
21
|
-
allow(view).to receive(:index_field_label).with(anything, 'some_key').and_return 'Some label'
|
20
|
+
it 'uses the metadata field label' do
|
22
21
|
render partial: p, locals: { key: 'some_key', config: field, f: builder }
|
23
22
|
expect(rendered).to have_selector '.field-label', text: 'Some label'
|
24
23
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_browse_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/browse_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/browse_block' }
|
5
5
|
let(:page) { double('Page', display_sidebar?: true) }
|
6
6
|
let(:search) { FactoryBot.create(:search) }
|
7
7
|
let(:block) do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_iframe_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/iframe_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/iframe_block' }
|
5
5
|
let(:block) do
|
6
6
|
OpenStruct.new
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_link_to_search_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/link_to_search_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/link_to_search_block' }
|
5
5
|
let(:page) { double('Page', display_sidebar?: true) }
|
6
6
|
let(:search) { FactoryBot.create(:search, query_params: { a: 1 }) }
|
7
7
|
let(:block) do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_rule_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/rule_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/rule_block' }
|
5
5
|
|
6
6
|
it 'has an hr' do
|
7
7
|
render partial: p
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_block' }
|
5
5
|
let(:page) { double('Page') }
|
6
6
|
let(:block) do
|
7
7
|
SirTrevorRails::Blocks::SolrDocumentsBlock.new({ type: 'block', data: { title: 'Some title', text: 'Some text', 'text-align' => 'right' } }, page)
|
@@ -9,10 +9,14 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :vi
|
|
9
9
|
let(:doc) { blacklight_config.document_model.new(id: 1) }
|
10
10
|
let(:blacklight_config) do
|
11
11
|
Blacklight::Configuration.new do |config|
|
12
|
-
config.view.embed
|
13
|
-
config.view.embed.locals = { a: 1 }
|
12
|
+
config.view.embed(partials: %w[a b c], locals: { a: 1 })
|
14
13
|
end
|
15
14
|
end
|
15
|
+
let(:stub_presenter) do
|
16
|
+
instance_double(Blacklight::DocumentPresenter, heading: 'blah', thumbnail: thumbnail_presenter)
|
17
|
+
end
|
18
|
+
|
19
|
+
let(:thumbnail_presenter) { instance_double(Blacklight::ThumbnailPresenter, exists?: true, thumbnail_tag: 'thumb') }
|
16
20
|
|
17
21
|
before do
|
18
22
|
allow(block).to receive(:each_document).and_yield({}, doc)
|
@@ -21,7 +25,7 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :vi
|
|
21
25
|
|
22
26
|
before do
|
23
27
|
allow(view).to receive(:blacklight_config).and_return(blacklight_config)
|
24
|
-
allow(view).to receive_messages(
|
28
|
+
allow(view).to receive_messages(document_presenter: stub_presenter, document_link_params: {})
|
25
29
|
end
|
26
30
|
|
27
31
|
context 'with a multi-image object' do
|
@@ -1,10 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_carousel_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_carousel_block' }
|
5
5
|
let(:block) do
|
6
6
|
SirTrevorRails::Blocks::SolrDocumentsCarouselBlock.new({ type: 'block', data: {} }, page)
|
7
7
|
end
|
8
|
+
let(:stub_presenter) do
|
9
|
+
instance_double(Blacklight::DocumentPresenter, heading: 'blah', thumbnail: thumbnail_presenter)
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:thumbnail_presenter) { instance_double(Blacklight::ThumbnailPresenter, exists?: true, thumbnail_tag: 'thumb') }
|
8
13
|
|
9
14
|
before do
|
10
15
|
allow(block).to receive(:each_document).and_return([
|
@@ -14,7 +19,7 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb',
|
|
14
19
|
])
|
15
20
|
allow(block).to receive_messages(documents?: true)
|
16
21
|
allow(view).to receive_messages(solr_documents_carousel_block: block)
|
17
|
-
allow(view).to receive_messages(
|
22
|
+
allow(view).to receive_messages(document_presenter: stub_presenter, blacklight_config: Blacklight::Configuration.new)
|
18
23
|
end
|
19
24
|
|
20
25
|
it 'has a slideshow block' do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_embed_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_embed_block' }
|
5
5
|
let(:page) { double('Page') }
|
6
6
|
let(:block) do
|
7
7
|
SirTrevorRails::Blocks::SolrDocumentsEmbedBlock.new({ type: 'block', data: { title: 'Some title', text: 'Some text', 'text-align' => 'right' } }, page)
|
@@ -9,10 +9,14 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', typ
|
|
9
9
|
let(:doc) { blacklight_config.document_model.new(id: 1) }
|
10
10
|
let(:blacklight_config) do
|
11
11
|
Blacklight::Configuration.new do |config|
|
12
|
-
config.view.embed
|
13
|
-
config.view.embed.locals = { a: 1 }
|
12
|
+
config.view.embed(partials: %w[a b c], locals: { a: 1 })
|
14
13
|
end
|
15
14
|
end
|
15
|
+
let(:stub_presenter) do
|
16
|
+
instance_double(Blacklight::DocumentPresenter, heading: 'blah', thumbnail: thumbnail_presenter)
|
17
|
+
end
|
18
|
+
|
19
|
+
let(:thumbnail_presenter) { instance_double(Blacklight::ThumbnailPresenter, exists?: true, thumbnail_tag: 'thumb') }
|
16
20
|
|
17
21
|
before do
|
18
22
|
allow(block).to receive(:each_document).and_yield({}, doc)
|
@@ -20,8 +24,7 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', typ
|
|
20
24
|
end
|
21
25
|
|
22
26
|
before do
|
23
|
-
allow(view).to
|
24
|
-
allow(view).to receive_messages(has_thumbnail?: true, render_thumbnail_tag: 'thumb')
|
27
|
+
allow(view).to receive_messages(blacklight_config: blacklight_config, document_presenter: stub_presenter)
|
25
28
|
end
|
26
29
|
|
27
30
|
it 'has a embed block' do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
describe 'spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb', type: :view do
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_features_block
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_features_block' }
|
5
5
|
let(:block) do
|
6
6
|
SirTrevorRails::Blocks::SolrDocumentsFeaturesBlock.new({ type: 'block', data: { 'show-primary-caption' => true, 'primary-caption-field' => 'x' } }, page)
|
7
7
|
end
|
@@ -19,7 +19,8 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb',
|
|
19
19
|
allow(block).to receive(:each_document).and_return([doc1, doc2, doc3])
|
20
20
|
allow(block).to receive_messages(documents?: true)
|
21
21
|
allow(view).to receive_messages(solr_documents_features_block: block)
|
22
|
-
allow(view).to receive_messages(
|
22
|
+
allow(view).to receive_messages(blacklight_config: blacklight_config)
|
23
|
+
allow_any_instance_of(Blacklight::ThumbnailPresenter).to receive_messages(exists?: true, thumbnail_tag: 'thumb')
|
23
24
|
end
|
24
25
|
|
25
26
|
it 'has a slideshow block' do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block
|
4
|
-
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_grid_block
|
3
|
+
describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block', type: :view do
|
4
|
+
let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_grid_block' }
|
5
5
|
let(:page) { double('Page') }
|
6
6
|
let(:block) do
|
7
7
|
SirTrevorRails::Blocks::SolrDocumentsGridBlock.new({ type: 'block', data: { title: 'Some title', text: 'Some text', 'text-align' => 'right' } }, page)
|
@@ -10,6 +10,12 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb', type
|
|
10
10
|
Blacklight::Configuration.new
|
11
11
|
end
|
12
12
|
|
13
|
+
let(:stub_presenter) do
|
14
|
+
instance_double(Blacklight::DocumentPresenter, heading: 'blah', thumbnail: thumbnail_presenter)
|
15
|
+
end
|
16
|
+
|
17
|
+
let(:thumbnail_presenter) { instance_double(Blacklight::ThumbnailPresenter, exists?: true, thumbnail_tag: 'thumb') }
|
18
|
+
|
13
19
|
before do
|
14
20
|
allow(block).to receive(:each_document).and_return([
|
15
21
|
[{}, SolrDocument.new(id: 1)],
|
@@ -21,8 +27,7 @@ describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb', type
|
|
21
27
|
before do
|
22
28
|
allow(view).to receive_messages(
|
23
29
|
blacklight_config: blacklight_config,
|
24
|
-
|
25
|
-
render_thumbnail_tag: 'thumb'
|
30
|
+
document_presenter: stub_presenter
|
26
31
|
)
|
27
32
|
end
|
28
33
|
|
@@ -11,14 +11,17 @@ describe 'spotlight/tags/index.html.erb', type: :view do
|
|
11
11
|
allow(view).to receive_messages(exhibit_tag_path: '/tags')
|
12
12
|
allow(view).to receive(:current_exhibit).and_return(exhibit)
|
13
13
|
allow(view).to receive(:url_to_tag_facet, &:first)
|
14
|
+
allow(view).to receive_messages(update_all_exhibit_tags_path: '/update_all')
|
15
|
+
allow(view).to receive(:exhibit_path)
|
14
16
|
end
|
15
17
|
|
16
18
|
describe 'Tags' do
|
17
19
|
it 'is displayed' do
|
18
20
|
render
|
21
|
+
puts rendered
|
19
22
|
[tag1.tag.name, tag2.tag.name].each do |name|
|
20
|
-
expect(rendered).to have_css('
|
21
|
-
expect(rendered).to have_link(name, href: '
|
23
|
+
expect(rendered).to have_css('h4', text: name)
|
24
|
+
expect(rendered).to have_link(name, href: '#edit-in-place')
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,8 +11,22 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: activejob-status
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
16
30
|
- !ruby/object:Gem::Dependency
|
17
31
|
name: acts-as-taggable-on
|
18
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,14 +67,14 @@ dependencies:
|
|
53
67
|
requirements:
|
54
68
|
- - "~>"
|
55
69
|
- !ruby/object:Gem::Version
|
56
|
-
version: '7.
|
70
|
+
version: '7.18'
|
57
71
|
type: :runtime
|
58
72
|
prerelease: false
|
59
73
|
version_requirements: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
75
|
- - "~>"
|
62
76
|
- !ruby/object:Gem::Version
|
63
|
-
version: '7.
|
77
|
+
version: '7.18'
|
64
78
|
- !ruby/object:Gem::Dependency
|
65
79
|
name: bootstrap_form
|
66
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,16 +93,22 @@ dependencies:
|
|
79
93
|
name: breadcrumbs_on_rails
|
80
94
|
requirement: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
|
-
- - "
|
96
|
+
- - ">="
|
83
97
|
- !ruby/object:Gem::Version
|
84
98
|
version: '3.0'
|
99
|
+
- - "<"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '5'
|
85
102
|
type: :runtime
|
86
103
|
prerelease: false
|
87
104
|
version_requirements: !ruby/object:Gem::Requirement
|
88
105
|
requirements:
|
89
|
-
- - "
|
106
|
+
- - ">="
|
90
107
|
- !ruby/object:Gem::Version
|
91
108
|
version: '3.0'
|
109
|
+
- - "<"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '5'
|
92
112
|
- !ruby/object:Gem::Dependency
|
93
113
|
name: cancancan
|
94
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,16 +127,16 @@ dependencies:
|
|
107
127
|
name: carrierwave
|
108
128
|
requirement: !ruby/object:Gem::Requirement
|
109
129
|
requirements:
|
110
|
-
- - "
|
130
|
+
- - "~>"
|
111
131
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
132
|
+
version: '2.2'
|
113
133
|
type: :runtime
|
114
134
|
prerelease: false
|
115
135
|
version_requirements: !ruby/object:Gem::Requirement
|
116
136
|
requirements:
|
117
|
-
- - "
|
137
|
+
- - "~>"
|
118
138
|
- !ruby/object:Gem::Version
|
119
|
-
version: '
|
139
|
+
version: '2.2'
|
120
140
|
- !ruby/object:Gem::Dependency
|
121
141
|
name: clipboard-rails
|
122
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -425,6 +445,9 @@ dependencies:
|
|
425
445
|
name: rails
|
426
446
|
requirement: !ruby/object:Gem::Requirement
|
427
447
|
requirements:
|
448
|
+
- - ">="
|
449
|
+
- !ruby/object:Gem::Version
|
450
|
+
version: '5.2'
|
428
451
|
- - "<"
|
429
452
|
- !ruby/object:Gem::Version
|
430
453
|
version: '6.2'
|
@@ -432,6 +455,9 @@ dependencies:
|
|
432
455
|
prerelease: false
|
433
456
|
version_requirements: !ruby/object:Gem::Requirement
|
434
457
|
requirements:
|
458
|
+
- - ">="
|
459
|
+
- !ruby/object:Gem::Version
|
460
|
+
version: '5.2'
|
435
461
|
- - "<"
|
436
462
|
- !ruby/object:Gem::Version
|
437
463
|
version: '6.2'
|
@@ -851,7 +877,6 @@ files:
|
|
851
877
|
- LICENSE
|
852
878
|
- README.md
|
853
879
|
- Rakefile
|
854
|
-
- app/assets/images/blacklight/add_circle.svg
|
855
880
|
- app/assets/images/blacklight/arrow-alt-circle-left.svg
|
856
881
|
- app/assets/images/blacklight/arrow-alt-circle-right.svg
|
857
882
|
- app/assets/images/blacklight/arrow_back_ios.svg
|
@@ -859,14 +884,14 @@ files:
|
|
859
884
|
- app/assets/images/blacklight/check.svg
|
860
885
|
- app/assets/images/blacklight/check_circle.svg
|
861
886
|
- app/assets/images/blacklight/chevron_right.svg
|
862
|
-
- app/assets/images/blacklight/
|
887
|
+
- app/assets/images/blacklight/close.svg
|
863
888
|
- app/assets/images/blacklight/edit.svg
|
864
889
|
- app/assets/images/blacklight/error.svg
|
865
890
|
- app/assets/images/blacklight/highlight_off.svg
|
866
891
|
- app/assets/images/blacklight/info.svg
|
867
|
-
- app/assets/images/blacklight/remove_circle.svg
|
868
|
-
- app/assets/images/blacklight/resize_small.svg
|
869
892
|
- app/assets/images/blacklight/warning.svg
|
893
|
+
- app/assets/images/blacklight/zoom_in.svg
|
894
|
+
- app/assets/images/blacklight/zoom_out.svg
|
870
895
|
- app/assets/images/spotlight/blocks/sir-trevor-icons.svg
|
871
896
|
- app/assets/images/spotlight/default_browse_thumbnail.jpg
|
872
897
|
- app/assets/images/spotlight/default_thumbnail.jpg
|
@@ -901,6 +926,7 @@ files:
|
|
901
926
|
- app/assets/javascripts/spotlight/admin/crop.es6
|
902
927
|
- app/assets/javascripts/spotlight/admin/croppable.js
|
903
928
|
- app/assets/javascripts/spotlight/admin/edit_in_place.js
|
929
|
+
- app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js
|
904
930
|
- app/assets/javascripts/spotlight/admin/exhibits.js
|
905
931
|
- app/assets/javascripts/spotlight/admin/form_observer.js
|
906
932
|
- app/assets/javascripts/spotlight/admin/iiif.es6
|
@@ -908,8 +934,8 @@ files:
|
|
908
934
|
- app/assets/javascripts/spotlight/admin/locks.js
|
909
935
|
- app/assets/javascripts/spotlight/admin/multi_image_selector.js
|
910
936
|
- app/assets/javascripts/spotlight/admin/pages.js.erb
|
937
|
+
- app/assets/javascripts/spotlight/admin/progress_monitor.js
|
911
938
|
- app/assets/javascripts/spotlight/admin/readonly_checkbox.js
|
912
|
-
- app/assets/javascripts/spotlight/admin/reindex_monitor.js
|
913
939
|
- app/assets/javascripts/spotlight/admin/search_typeahead.js
|
914
940
|
- app/assets/javascripts/spotlight/admin/select_related_input.js
|
915
941
|
- app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js
|
@@ -948,6 +974,7 @@ files:
|
|
948
974
|
- app/assets/stylesheets/spotlight/_header.scss
|
949
975
|
- app/assets/stylesheets/spotlight/_item_text_block.scss
|
950
976
|
- app/assets/stylesheets/spotlight/_mixins.scss
|
977
|
+
- app/assets/stylesheets/spotlight/_modals.scss
|
951
978
|
- app/assets/stylesheets/spotlight/_multi_image_selector.scss
|
952
979
|
- app/assets/stylesheets/spotlight/_multi_up_item_grid.scss
|
953
980
|
- app/assets/stylesheets/spotlight/_nestable.scss
|
@@ -962,6 +989,7 @@ files:
|
|
962
989
|
- app/assets/stylesheets/spotlight/_utilities.scss
|
963
990
|
- app/assets/stylesheets/spotlight/_variables.scss
|
964
991
|
- app/assets/stylesheets/spotlight/_variables_bootstrap.scss
|
992
|
+
- app/assets/stylesheets/spotlight/_view_larger.scss
|
965
993
|
- app/assets/stylesheets/spotlight/browse_group_categories_block.scss
|
966
994
|
- app/assets/stylesheets/spotlight/typeahead.css
|
967
995
|
- app/builders/spotlight/bootstrap_breadcrumbs_builder.rb
|
@@ -976,6 +1004,8 @@ files:
|
|
976
1004
|
- app/controllers/spotlight/application_controller.rb
|
977
1005
|
- app/controllers/spotlight/attachments_controller.rb
|
978
1006
|
- app/controllers/spotlight/browse_controller.rb
|
1007
|
+
- app/controllers/spotlight/bulk_actions_controller.rb
|
1008
|
+
- app/controllers/spotlight/bulk_updates_controller.rb
|
979
1009
|
- app/controllers/spotlight/catalog_controller.rb
|
980
1010
|
- app/controllers/spotlight/concerns/application_controller.rb
|
981
1011
|
- app/controllers/spotlight/concerns/catalog_search_context.rb
|
@@ -992,6 +1022,7 @@ files:
|
|
992
1022
|
- app/controllers/spotlight/filters_controller.rb
|
993
1023
|
- app/controllers/spotlight/groups_controller.rb
|
994
1024
|
- app/controllers/spotlight/home_pages_controller.rb
|
1025
|
+
- app/controllers/spotlight/job_trackers_controller.rb
|
995
1026
|
- app/controllers/spotlight/languages_controller.rb
|
996
1027
|
- app/controllers/spotlight/lock_controller.rb
|
997
1028
|
- app/controllers/spotlight/metadata_configurations_controller.rb
|
@@ -1013,6 +1044,7 @@ files:
|
|
1013
1044
|
- app/helpers/spotlight/browse_helper.rb
|
1014
1045
|
- app/helpers/spotlight/crop_helper.rb
|
1015
1046
|
- app/helpers/spotlight/crud_link_helpers.rb
|
1047
|
+
- app/helpers/spotlight/job_trackers_helper.rb
|
1016
1048
|
- app/helpers/spotlight/languages_helper.rb
|
1017
1049
|
- app/helpers/spotlight/main_app_helpers.rb
|
1018
1050
|
- app/helpers/spotlight/masthead_helper.rb
|
@@ -1025,10 +1057,22 @@ files:
|
|
1025
1057
|
- app/helpers/spotlight/searches_helper.rb
|
1026
1058
|
- app/helpers/spotlight/title_helper.rb
|
1027
1059
|
- app/helpers/spotlight/translations_helper.rb
|
1060
|
+
- app/jobs/concerns/spotlight/gather_documents.rb
|
1061
|
+
- app/jobs/concerns/spotlight/job_tracking.rb
|
1062
|
+
- app/jobs/concerns/spotlight/limit_concurrency.rb
|
1063
|
+
- app/jobs/spotlight/add_tags_job.rb
|
1028
1064
|
- app/jobs/spotlight/add_uploads_from_csv.rb
|
1065
|
+
- app/jobs/spotlight/application_job.rb
|
1066
|
+
- app/jobs/spotlight/change_visibility_job.rb
|
1067
|
+
- app/jobs/spotlight/cleanup_job_trackers_job.rb
|
1029
1068
|
- app/jobs/spotlight/default_thumbnail_job.rb
|
1069
|
+
- app/jobs/spotlight/process_bulk_updates_csv_job.rb
|
1070
|
+
- app/jobs/spotlight/reindex_exhibit_job.rb
|
1030
1071
|
- app/jobs/spotlight/reindex_job.rb
|
1072
|
+
- app/jobs/spotlight/remove_tags_job.rb
|
1031
1073
|
- app/jobs/spotlight/rename_sidecar_field_job.rb
|
1074
|
+
- app/jobs/spotlight/rename_tags_job.rb
|
1075
|
+
- app/jobs/spotlight/update_job_trackers_job.rb
|
1032
1076
|
- app/mailers/spotlight/confirmation_mailer.rb
|
1033
1077
|
- app/mailers/spotlight/contact_mailer.rb
|
1034
1078
|
- app/mailers/spotlight/indexing_complete_mailer.rb
|
@@ -1036,12 +1080,13 @@ files:
|
|
1036
1080
|
- app/models/ability.rb
|
1037
1081
|
- app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb
|
1038
1082
|
- app/models/concerns/spotlight/blacklight_configuration_defaults.rb
|
1083
|
+
- app/models/concerns/spotlight/browse_category_search_builder.rb
|
1039
1084
|
- app/models/concerns/spotlight/custom_translation_extension.rb
|
1040
1085
|
- app/models/concerns/spotlight/exhibit_analytics.rb
|
1041
1086
|
- app/models/concerns/spotlight/exhibit_defaults.rb
|
1042
1087
|
- app/models/concerns/spotlight/exhibit_documents.rb
|
1043
|
-
- app/models/concerns/spotlight/resources/open_graph.rb
|
1044
1088
|
- app/models/concerns/spotlight/resources/web.rb
|
1089
|
+
- app/models/concerns/spotlight/search_builder.rb
|
1045
1090
|
- app/models/concerns/spotlight/sitemap.rb
|
1046
1091
|
- app/models/concerns/spotlight/solr_document.rb
|
1047
1092
|
- app/models/concerns/spotlight/solr_document/atomic_updates.rb
|
@@ -1068,13 +1113,16 @@ files:
|
|
1068
1113
|
- app/models/spotlight/analytics/ga.rb
|
1069
1114
|
- app/models/spotlight/analytics/ga_model.rb
|
1070
1115
|
- app/models/spotlight/attachment.rb
|
1116
|
+
- app/models/spotlight/background_job_progress.rb
|
1071
1117
|
- app/models/spotlight/blacklight_configuration.rb
|
1118
|
+
- app/models/spotlight/bulk_update.rb
|
1072
1119
|
- app/models/spotlight/contact.rb
|
1073
1120
|
- app/models/spotlight/contact_email.rb
|
1074
1121
|
- app/models/spotlight/contact_form.rb
|
1075
1122
|
- app/models/spotlight/contact_image.rb
|
1076
1123
|
- app/models/spotlight/custom_field.rb
|
1077
1124
|
- app/models/spotlight/custom_search_field.rb
|
1125
|
+
- app/models/spotlight/event.rb
|
1078
1126
|
- app/models/spotlight/exhibit.rb
|
1079
1127
|
- app/models/spotlight/exhibit_thumbnail.rb
|
1080
1128
|
- app/models/spotlight/feature_page.rb
|
@@ -1084,6 +1132,7 @@ files:
|
|
1084
1132
|
- app/models/spotlight/group.rb
|
1085
1133
|
- app/models/spotlight/group_member.rb
|
1086
1134
|
- app/models/spotlight/home_page.rb
|
1135
|
+
- app/models/spotlight/job_tracker.rb
|
1087
1136
|
- app/models/spotlight/language.rb
|
1088
1137
|
- app/models/spotlight/lock.rb
|
1089
1138
|
- app/models/spotlight/main_navigation.rb
|
@@ -1092,8 +1141,6 @@ files:
|
|
1092
1141
|
- app/models/spotlight/page_configurations.rb
|
1093
1142
|
- app/models/spotlight/page_content.rb
|
1094
1143
|
- app/models/spotlight/page_content/sir_trevor.rb
|
1095
|
-
- app/models/spotlight/reindex_progress.rb
|
1096
|
-
- app/models/spotlight/reindexing_log_entry.rb
|
1097
1144
|
- app/models/spotlight/resource.rb
|
1098
1145
|
- app/models/spotlight/resources/csv_upload.rb
|
1099
1146
|
- app/models/spotlight/resources/iiif_harvester.rb
|
@@ -1107,22 +1154,35 @@ files:
|
|
1107
1154
|
- app/models/spotlight/solr_document_sidecar.rb
|
1108
1155
|
- app/models/spotlight/temporary_image.rb
|
1109
1156
|
- app/presenters/spotlight/iiif_manifest_presenter.rb
|
1157
|
+
- app/services/spotlight/bulk_updates_csv_template_service.rb
|
1110
1158
|
- app/services/spotlight/carrierwave_file_resolver.rb
|
1111
1159
|
- app/services/spotlight/clone_translated_page_from_locale.rb
|
1160
|
+
- app/services/spotlight/etl.rb
|
1161
|
+
- app/services/spotlight/etl/context.rb
|
1162
|
+
- app/services/spotlight/etl/executor.rb
|
1163
|
+
- app/services/spotlight/etl/loaders.rb
|
1164
|
+
- app/services/spotlight/etl/pipeline.rb
|
1165
|
+
- app/services/spotlight/etl/solr_loader.rb
|
1166
|
+
- app/services/spotlight/etl/sources.rb
|
1167
|
+
- app/services/spotlight/etl/step.rb
|
1168
|
+
- app/services/spotlight/etl/transforms.rb
|
1112
1169
|
- app/services/spotlight/exhibit_import_export_service.rb
|
1113
1170
|
- app/services/spotlight/iiif_resource_resolver.rb
|
1114
1171
|
- app/services/spotlight/invite_users_service.rb
|
1115
|
-
- app/services/spotlight/resources/iiif_builder.rb
|
1116
|
-
- app/services/spotlight/solr_document_builder.rb
|
1117
|
-
- app/services/spotlight/upload_solr_document_builder.rb
|
1118
1172
|
- app/services/spotlight/validity_checker.rb
|
1119
1173
|
- app/uploaders/spotlight/attachment_uploader.rb
|
1174
|
+
- app/uploaders/spotlight/bulk_updates_uploader.rb
|
1120
1175
|
- app/uploaders/spotlight/featured_image_uploader.rb
|
1121
1176
|
- app/values/custom_field_name.rb
|
1122
1177
|
- app/views/blacklight/nav/_bookmark.html.erb
|
1123
1178
|
- app/views/blacklight/nav/_saved_searches.html.erb
|
1124
1179
|
- app/views/blacklight/nav/_search_history.html.erb
|
1180
|
+
- app/views/catalog/_add_tags.html.erb
|
1181
|
+
- app/views/catalog/_bulk_actions.html.erb
|
1182
|
+
- app/views/catalog/_change_visibility.html.erb
|
1183
|
+
- app/views/catalog/_curator_actions.html.erb
|
1125
1184
|
- app/views/catalog/_image_default.html.erb
|
1185
|
+
- app/views/catalog/_remove_tags.html.erb
|
1126
1186
|
- app/views/catalog/_save_search.html.erb
|
1127
1187
|
- app/views/devise/confirmations/new.html.erb
|
1128
1188
|
- app/views/devise/mailer/invitation_instructions.html.erb
|
@@ -1157,6 +1217,11 @@ files:
|
|
1157
1217
|
- app/views/spotlight/browse/_tophat.html.erb
|
1158
1218
|
- app/views/spotlight/browse/index.html.erb
|
1159
1219
|
- app/views/spotlight/browse/show.html.erb
|
1220
|
+
- app/views/spotlight/bulk_updates/_download.html.erb
|
1221
|
+
- app/views/spotlight/bulk_updates/_overview.html.erb
|
1222
|
+
- app/views/spotlight/bulk_updates/_progress_panel.html.erb
|
1223
|
+
- app/views/spotlight/bulk_updates/_upload.html.erb
|
1224
|
+
- app/views/spotlight/bulk_updates/edit.html.erb
|
1160
1225
|
- app/views/spotlight/catalog/_admin_header.html.erb
|
1161
1226
|
- app/views/spotlight/catalog/_admin_index_header_default.html.erb
|
1162
1227
|
- app/views/spotlight/catalog/_admin_thumbnail_default.html.erb
|
@@ -1224,6 +1289,7 @@ files:
|
|
1224
1289
|
- app/views/spotlight/home_pages/_tophat.html.erb
|
1225
1290
|
- app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb
|
1226
1291
|
- app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb
|
1292
|
+
- app/views/spotlight/job_trackers/show.html.erb
|
1227
1293
|
- app/views/spotlight/locks/_lock.html.erb
|
1228
1294
|
- app/views/spotlight/metadata_configurations/_metadata_field.html.erb
|
1229
1295
|
- app/views/spotlight/metadata_configurations/edit.html.erb
|
@@ -1295,6 +1361,7 @@ files:
|
|
1295
1361
|
- app/views/spotlight/sites/_exhibit.html.erb
|
1296
1362
|
- app/views/spotlight/sites/edit.html.erb
|
1297
1363
|
- app/views/spotlight/sites/edit_exhibits.html.erb
|
1364
|
+
- app/views/spotlight/tags/_tag.html.erb
|
1298
1365
|
- app/views/spotlight/tags/index.html.erb
|
1299
1366
|
- app/views/spotlight/translations/_browse_categories.html.erb
|
1300
1367
|
- app/views/spotlight/translations/_general.html.erb
|
@@ -1386,6 +1453,12 @@ files:
|
|
1386
1453
|
- db/migrate/20191205112300_add_unique_index_to_sidecars.rb
|
1387
1454
|
- db/migrate/20200403161512_add_subtitle_to_searches.rb
|
1388
1455
|
- db/migrate/20210113092223_create_spotlight_groups.rb
|
1456
|
+
- db/migrate/20210122082032_create_job_trackers.rb
|
1457
|
+
- db/migrate/20210126123041_create_events.rb
|
1458
|
+
- db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb
|
1459
|
+
- db/migrate/20210305171150_create_bulk_updates.rb
|
1460
|
+
- db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
|
1461
|
+
- db/migrate/20210506070809_add_indexes_for_featured_images.rb
|
1389
1462
|
- lib/blacklight/spotlight.rb
|
1390
1463
|
- lib/generators/spotlight/install_generator.rb
|
1391
1464
|
- lib/generators/spotlight/scaffold_resource_generator.rb
|
@@ -1415,6 +1488,8 @@ files:
|
|
1415
1488
|
- spec/controllers/spotlight/application_controller_spec.rb
|
1416
1489
|
- spec/controllers/spotlight/attachments_controller_spec.rb
|
1417
1490
|
- spec/controllers/spotlight/browse_controller_spec.rb
|
1491
|
+
- spec/controllers/spotlight/bulk_actions_controller_spec.rb
|
1492
|
+
- spec/controllers/spotlight/bulk_updates_controller_spec.rb
|
1418
1493
|
- spec/controllers/spotlight/catalog_controller_spec.rb
|
1419
1494
|
- spec/controllers/spotlight/confirmations_controller_spec.rb
|
1420
1495
|
- spec/controllers/spotlight/contact_email_controller_spec.rb
|
@@ -1429,6 +1504,7 @@ files:
|
|
1429
1504
|
- spec/controllers/spotlight/filters_controller_spec.rb
|
1430
1505
|
- spec/controllers/spotlight/groups_controller_spec.rb
|
1431
1506
|
- spec/controllers/spotlight/home_pages_controller_spec.rb
|
1507
|
+
- spec/controllers/spotlight/job_trackers_controller_spec.rb
|
1432
1508
|
- spec/controllers/spotlight/languages_controller_spec.rb
|
1433
1509
|
- spec/controllers/spotlight/metadata_configurations_controller_spec.rb
|
1434
1510
|
- spec/controllers/spotlight/pages_controller_spec.rb
|
@@ -1445,6 +1521,7 @@ files:
|
|
1445
1521
|
- spec/controllers/spotlight/versions_controller_spec.rb
|
1446
1522
|
- spec/controllers/spotlight/view_configurations_controller_spec.rb
|
1447
1523
|
- spec/examples.txt
|
1524
|
+
- spec/factories/bulk_updates.rb
|
1448
1525
|
- spec/factories/contact_emails.rb
|
1449
1526
|
- spec/factories/contact_images.rb
|
1450
1527
|
- spec/factories/contacts.rb
|
@@ -1454,10 +1531,10 @@ files:
|
|
1454
1531
|
- spec/factories/exhibits.rb
|
1455
1532
|
- spec/factories/featured_images.rb
|
1456
1533
|
- spec/factories/group.rb
|
1534
|
+
- spec/factories/job_trackers.rb
|
1457
1535
|
- spec/factories/language.rb
|
1458
1536
|
- spec/factories/main_navigation.rb
|
1459
1537
|
- spec/factories/pages.rb
|
1460
|
-
- spec/factories/reindexing_log_entries.rb
|
1461
1538
|
- spec/factories/resources.rb
|
1462
1539
|
- spec/factories/roles.rb
|
1463
1540
|
- spec/factories/searches.rb
|
@@ -1473,6 +1550,7 @@ files:
|
|
1473
1550
|
- spec/features/browse_category_admin_spec.rb
|
1474
1551
|
- spec/features/browse_category_navigation_spec.rb
|
1475
1552
|
- spec/features/browse_category_spec.rb
|
1553
|
+
- spec/features/bulk_actions_spec.rb
|
1476
1554
|
- spec/features/catalog_spec.rb
|
1477
1555
|
- spec/features/confirm_email_spec.rb
|
1478
1556
|
- spec/features/create_exhibit_spec.rb
|
@@ -1525,11 +1603,14 @@ files:
|
|
1525
1603
|
- spec/features/translation_scope_spec.rb
|
1526
1604
|
- spec/fixtures/800x600.png
|
1527
1605
|
- spec/fixtures/avatar.png
|
1606
|
+
- spec/fixtures/bulk-update-template.csv
|
1528
1607
|
- spec/fixtures/csv-upload-fixture.csv
|
1529
1608
|
- spec/fixtures/gk446cj2442-manifest.json
|
1530
1609
|
- spec/fixtures/iiif_responses.rb
|
1531
1610
|
- spec/fixtures/json-upload-fixture.json
|
1532
1611
|
- spec/fixtures/sample_solr_documents.yml
|
1612
|
+
- spec/fixtures/updated-bulk-update-template-w-tags.csv
|
1613
|
+
- spec/fixtures/updated-bulk-update-template.csv
|
1533
1614
|
- spec/helpers/spotlight/application_helper_spec.rb
|
1534
1615
|
- spec/helpers/spotlight/browse_helper_spec.rb
|
1535
1616
|
- spec/helpers/spotlight/crop_helper_spec.rb
|
@@ -1545,9 +1626,14 @@ files:
|
|
1545
1626
|
- spec/helpers/spotlight/title_helper_spec.rb
|
1546
1627
|
- spec/helpers/spotlight/translations_helper_spec.rb
|
1547
1628
|
- spec/i18n_spec.rb
|
1629
|
+
- spec/jobs/spotlight/add_tags_job_spec.rb
|
1548
1630
|
- spec/jobs/spotlight/add_uploads_from_csv_spec.rb
|
1631
|
+
- spec/jobs/spotlight/change_visibility_job_spec.rb
|
1549
1632
|
- spec/jobs/spotlight/default_thumbnail_job_spec.rb
|
1633
|
+
- spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb
|
1634
|
+
- spec/jobs/spotlight/reindex_exhibit_job_spec.rb
|
1550
1635
|
- spec/jobs/spotlight/reindex_job_spec.rb
|
1636
|
+
- spec/jobs/spotlight/remove_tags_job_spec.rb
|
1551
1637
|
- spec/jobs/spotlight/rename_sidecar_field_job_spec.rb
|
1552
1638
|
- spec/lib/migration/iiif_spec.rb
|
1553
1639
|
- spec/lib/migration/page_language_spec.rb
|
@@ -1566,7 +1652,9 @@ files:
|
|
1566
1652
|
- spec/models/spotlight/about_page_spec.rb
|
1567
1653
|
- spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb
|
1568
1654
|
- spec/models/spotlight/analytics/ga_spec.rb
|
1655
|
+
- spec/models/spotlight/background_job_progress_spec.rb
|
1569
1656
|
- spec/models/spotlight/blacklight_configuration_spec.rb
|
1657
|
+
- spec/models/spotlight/browse_category_search_builder_spec.rb
|
1570
1658
|
- spec/models/spotlight/contact_email_spec.rb
|
1571
1659
|
- spec/models/spotlight/contact_form_spec.rb
|
1572
1660
|
- spec/models/spotlight/contact_image_spec.rb
|
@@ -1587,13 +1675,10 @@ files:
|
|
1587
1675
|
- spec/models/spotlight/masthead_spec.rb
|
1588
1676
|
- spec/models/spotlight/page_configurations_spec.rb
|
1589
1677
|
- spec/models/spotlight/page_spec.rb
|
1590
|
-
- spec/models/spotlight/reindex_progress_spec.rb
|
1591
|
-
- spec/models/spotlight/reindexing_log_entry_spec.rb
|
1592
1678
|
- spec/models/spotlight/resource_spec.rb
|
1593
1679
|
- spec/models/spotlight/resources/iiif_harvester_spec.rb
|
1594
1680
|
- spec/models/spotlight/resources/iiif_manifest_spec.rb
|
1595
1681
|
- spec/models/spotlight/resources/iiif_service_spec.rb
|
1596
|
-
- spec/models/spotlight/resources/open_graph_spec.rb
|
1597
1682
|
- spec/models/spotlight/resources/upload_spec.rb
|
1598
1683
|
- spec/models/spotlight/resources/web_spec.rb
|
1599
1684
|
- spec/models/spotlight/role_spec.rb
|
@@ -1609,12 +1694,17 @@ files:
|
|
1609
1694
|
- spec/routing/spotlight/exhibit_catalog_spec.rb
|
1610
1695
|
- spec/routing/spotlight/featured_images_spec.rb
|
1611
1696
|
- spec/routing/spotlight/pages_routing_spec.rb
|
1697
|
+
- spec/services/spotlight/bulk_updates_csv_template_service_spec.rb
|
1612
1698
|
- spec/services/spotlight/carrierwave_file_resolver_spec.rb
|
1613
1699
|
- spec/services/spotlight/clone_translated_page_from_locale_spec.rb
|
1700
|
+
- spec/services/spotlight/etl/context_spec.rb
|
1701
|
+
- spec/services/spotlight/etl/executor_spec.rb
|
1702
|
+
- spec/services/spotlight/etl/pipeline_spec.rb
|
1703
|
+
- spec/services/spotlight/etl/solr_loader_spec.rb
|
1704
|
+
- spec/services/spotlight/etl/step_spec.rb
|
1614
1705
|
- spec/services/spotlight/exhibit_import_export_service_spec.rb
|
1615
1706
|
- spec/services/spotlight/iiif_resource_resolver_spec.rb
|
1616
1707
|
- spec/services/spotlight/invite_users_service_spec.rb
|
1617
|
-
- spec/services/spotlight/solr_document_builder_spec.rb
|
1618
1708
|
- spec/spec_helper.rb
|
1619
1709
|
- spec/support/controllers/engine_helpers.rb
|
1620
1710
|
- spec/support/disable_friendly_id_deprecation_warnings.rb
|
@@ -1661,6 +1751,7 @@ files:
|
|
1661
1751
|
- spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb
|
1662
1752
|
- spec/views/spotlight/home_pages/_empty.html.erb_spec.rb
|
1663
1753
|
- spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb
|
1754
|
+
- spec/views/spotlight/job_trackers/show.html.erb_spec.rb
|
1664
1755
|
- spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb
|
1665
1756
|
- spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
|
1666
1757
|
- spec/views/spotlight/pages/_form.html.erb_spec.rb
|
@@ -1736,12 +1827,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1736
1827
|
requirements:
|
1737
1828
|
- - ">="
|
1738
1829
|
- !ruby/object:Gem::Version
|
1739
|
-
version: '2.
|
1830
|
+
version: '2.6'
|
1740
1831
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1741
1832
|
requirements:
|
1742
|
-
- - "
|
1833
|
+
- - ">="
|
1743
1834
|
- !ruby/object:Gem::Version
|
1744
|
-
version:
|
1835
|
+
version: '0'
|
1745
1836
|
requirements: []
|
1746
1837
|
rubygems_version: 3.2.3
|
1747
1838
|
signing_key:
|
@@ -1756,6 +1847,8 @@ test_files:
|
|
1756
1847
|
- spec/controllers/spotlight/application_controller_spec.rb
|
1757
1848
|
- spec/controllers/spotlight/attachments_controller_spec.rb
|
1758
1849
|
- spec/controllers/spotlight/browse_controller_spec.rb
|
1850
|
+
- spec/controllers/spotlight/bulk_actions_controller_spec.rb
|
1851
|
+
- spec/controllers/spotlight/bulk_updates_controller_spec.rb
|
1759
1852
|
- spec/controllers/spotlight/catalog_controller_spec.rb
|
1760
1853
|
- spec/controllers/spotlight/confirmations_controller_spec.rb
|
1761
1854
|
- spec/controllers/spotlight/contact_email_controller_spec.rb
|
@@ -1770,6 +1863,7 @@ test_files:
|
|
1770
1863
|
- spec/controllers/spotlight/filters_controller_spec.rb
|
1771
1864
|
- spec/controllers/spotlight/groups_controller_spec.rb
|
1772
1865
|
- spec/controllers/spotlight/home_pages_controller_spec.rb
|
1866
|
+
- spec/controllers/spotlight/job_trackers_controller_spec.rb
|
1773
1867
|
- spec/controllers/spotlight/languages_controller_spec.rb
|
1774
1868
|
- spec/controllers/spotlight/metadata_configurations_controller_spec.rb
|
1775
1869
|
- spec/controllers/spotlight/pages_controller_spec.rb
|
@@ -1786,6 +1880,7 @@ test_files:
|
|
1786
1880
|
- spec/controllers/spotlight/versions_controller_spec.rb
|
1787
1881
|
- spec/controllers/spotlight/view_configurations_controller_spec.rb
|
1788
1882
|
- spec/examples.txt
|
1883
|
+
- spec/factories/bulk_updates.rb
|
1789
1884
|
- spec/factories/contact_emails.rb
|
1790
1885
|
- spec/factories/contact_images.rb
|
1791
1886
|
- spec/factories/contacts.rb
|
@@ -1795,10 +1890,10 @@ test_files:
|
|
1795
1890
|
- spec/factories/exhibits.rb
|
1796
1891
|
- spec/factories/featured_images.rb
|
1797
1892
|
- spec/factories/group.rb
|
1893
|
+
- spec/factories/job_trackers.rb
|
1798
1894
|
- spec/factories/language.rb
|
1799
1895
|
- spec/factories/main_navigation.rb
|
1800
1896
|
- spec/factories/pages.rb
|
1801
|
-
- spec/factories/reindexing_log_entries.rb
|
1802
1897
|
- spec/factories/resources.rb
|
1803
1898
|
- spec/factories/roles.rb
|
1804
1899
|
- spec/factories/searches.rb
|
@@ -1814,6 +1909,7 @@ test_files:
|
|
1814
1909
|
- spec/features/browse_category_admin_spec.rb
|
1815
1910
|
- spec/features/browse_category_navigation_spec.rb
|
1816
1911
|
- spec/features/browse_category_spec.rb
|
1912
|
+
- spec/features/bulk_actions_spec.rb
|
1817
1913
|
- spec/features/catalog_spec.rb
|
1818
1914
|
- spec/features/confirm_email_spec.rb
|
1819
1915
|
- spec/features/create_exhibit_spec.rb
|
@@ -1866,11 +1962,14 @@ test_files:
|
|
1866
1962
|
- spec/features/translation_scope_spec.rb
|
1867
1963
|
- spec/fixtures/800x600.png
|
1868
1964
|
- spec/fixtures/avatar.png
|
1965
|
+
- spec/fixtures/bulk-update-template.csv
|
1869
1966
|
- spec/fixtures/csv-upload-fixture.csv
|
1870
1967
|
- spec/fixtures/gk446cj2442-manifest.json
|
1871
1968
|
- spec/fixtures/iiif_responses.rb
|
1872
1969
|
- spec/fixtures/json-upload-fixture.json
|
1873
1970
|
- spec/fixtures/sample_solr_documents.yml
|
1971
|
+
- spec/fixtures/updated-bulk-update-template-w-tags.csv
|
1972
|
+
- spec/fixtures/updated-bulk-update-template.csv
|
1874
1973
|
- spec/helpers/spotlight/application_helper_spec.rb
|
1875
1974
|
- spec/helpers/spotlight/browse_helper_spec.rb
|
1876
1975
|
- spec/helpers/spotlight/crop_helper_spec.rb
|
@@ -1886,9 +1985,14 @@ test_files:
|
|
1886
1985
|
- spec/helpers/spotlight/title_helper_spec.rb
|
1887
1986
|
- spec/helpers/spotlight/translations_helper_spec.rb
|
1888
1987
|
- spec/i18n_spec.rb
|
1988
|
+
- spec/jobs/spotlight/add_tags_job_spec.rb
|
1889
1989
|
- spec/jobs/spotlight/add_uploads_from_csv_spec.rb
|
1990
|
+
- spec/jobs/spotlight/change_visibility_job_spec.rb
|
1890
1991
|
- spec/jobs/spotlight/default_thumbnail_job_spec.rb
|
1992
|
+
- spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb
|
1993
|
+
- spec/jobs/spotlight/reindex_exhibit_job_spec.rb
|
1891
1994
|
- spec/jobs/spotlight/reindex_job_spec.rb
|
1995
|
+
- spec/jobs/spotlight/remove_tags_job_spec.rb
|
1892
1996
|
- spec/jobs/spotlight/rename_sidecar_field_job_spec.rb
|
1893
1997
|
- spec/lib/migration/iiif_spec.rb
|
1894
1998
|
- spec/lib/migration/page_language_spec.rb
|
@@ -1907,7 +2011,9 @@ test_files:
|
|
1907
2011
|
- spec/models/spotlight/about_page_spec.rb
|
1908
2012
|
- spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb
|
1909
2013
|
- spec/models/spotlight/analytics/ga_spec.rb
|
2014
|
+
- spec/models/spotlight/background_job_progress_spec.rb
|
1910
2015
|
- spec/models/spotlight/blacklight_configuration_spec.rb
|
2016
|
+
- spec/models/spotlight/browse_category_search_builder_spec.rb
|
1911
2017
|
- spec/models/spotlight/contact_email_spec.rb
|
1912
2018
|
- spec/models/spotlight/contact_form_spec.rb
|
1913
2019
|
- spec/models/spotlight/contact_image_spec.rb
|
@@ -1928,13 +2034,10 @@ test_files:
|
|
1928
2034
|
- spec/models/spotlight/masthead_spec.rb
|
1929
2035
|
- spec/models/spotlight/page_configurations_spec.rb
|
1930
2036
|
- spec/models/spotlight/page_spec.rb
|
1931
|
-
- spec/models/spotlight/reindex_progress_spec.rb
|
1932
|
-
- spec/models/spotlight/reindexing_log_entry_spec.rb
|
1933
2037
|
- spec/models/spotlight/resource_spec.rb
|
1934
2038
|
- spec/models/spotlight/resources/iiif_harvester_spec.rb
|
1935
2039
|
- spec/models/spotlight/resources/iiif_manifest_spec.rb
|
1936
2040
|
- spec/models/spotlight/resources/iiif_service_spec.rb
|
1937
|
-
- spec/models/spotlight/resources/open_graph_spec.rb
|
1938
2041
|
- spec/models/spotlight/resources/upload_spec.rb
|
1939
2042
|
- spec/models/spotlight/resources/web_spec.rb
|
1940
2043
|
- spec/models/spotlight/role_spec.rb
|
@@ -1950,12 +2053,17 @@ test_files:
|
|
1950
2053
|
- spec/routing/spotlight/exhibit_catalog_spec.rb
|
1951
2054
|
- spec/routing/spotlight/featured_images_spec.rb
|
1952
2055
|
- spec/routing/spotlight/pages_routing_spec.rb
|
2056
|
+
- spec/services/spotlight/bulk_updates_csv_template_service_spec.rb
|
1953
2057
|
- spec/services/spotlight/carrierwave_file_resolver_spec.rb
|
1954
2058
|
- spec/services/spotlight/clone_translated_page_from_locale_spec.rb
|
2059
|
+
- spec/services/spotlight/etl/context_spec.rb
|
2060
|
+
- spec/services/spotlight/etl/executor_spec.rb
|
2061
|
+
- spec/services/spotlight/etl/pipeline_spec.rb
|
2062
|
+
- spec/services/spotlight/etl/solr_loader_spec.rb
|
2063
|
+
- spec/services/spotlight/etl/step_spec.rb
|
1955
2064
|
- spec/services/spotlight/exhibit_import_export_service_spec.rb
|
1956
2065
|
- spec/services/spotlight/iiif_resource_resolver_spec.rb
|
1957
2066
|
- spec/services/spotlight/invite_users_service_spec.rb
|
1958
|
-
- spec/services/spotlight/solr_document_builder_spec.rb
|
1959
2067
|
- spec/spec_helper.rb
|
1960
2068
|
- spec/support/controllers/engine_helpers.rb
|
1961
2069
|
- spec/support/disable_friendly_id_deprecation_warnings.rb
|
@@ -2002,6 +2110,7 @@ test_files:
|
|
2002
2110
|
- spec/views/spotlight/featured_images/_upload_form.html.erb_spec.rb
|
2003
2111
|
- spec/views/spotlight/home_pages/_empty.html.erb_spec.rb
|
2004
2112
|
- spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb
|
2113
|
+
- spec/views/spotlight/job_trackers/show.html.erb_spec.rb
|
2005
2114
|
- spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb
|
2006
2115
|
- spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
|
2007
2116
|
- spec/views/spotlight/pages/_form.html.erb_spec.rb
|