hyrax 3.4.1 → 3.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +26 -17
  3. data/.dassie/.env +1 -1
  4. data/.dassie/Gemfile +1 -1
  5. data/.dassie/app/forms/collection_resource_form.rb +8 -0
  6. data/.dassie/app/indexers/collection_resource_indexer.rb +8 -0
  7. data/.dassie/app/models/collection_resource.rb +35 -0
  8. data/.dassie/config/initializers/file_services.rb +4 -0
  9. data/.dassie/config/initializers/hyrax.rb +2 -1
  10. data/.dassie/config/metadata/collection_resource.yaml +23 -0
  11. data/.dassie/db/seeds.rb +2 -0
  12. data/.dassie/spec/forms/collection_resource_form_spec.rb +13 -0
  13. data/.dassie/spec/indexers/collection_resource_indexer_spec.rb +14 -0
  14. data/.dassie/spec/models/collection_resource_spec.rb +13 -0
  15. data/.regen +1 -1
  16. data/.rubocop.yml +1 -1
  17. data/.rubocop_fixme.yml +19 -2
  18. data/CONTAINERS.md +18 -13
  19. data/Dockerfile +2 -2
  20. data/app/assets/javascripts/hyrax/collections_v2.es6 +13 -0
  21. data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +1 -3
  22. data/app/controllers/hyrax/dashboard/collections_controller.rb +159 -75
  23. data/app/controllers/hyrax/single_use_links_viewer_controller.rb +1 -1
  24. data/app/forms/hyrax/forms/collection_form.rb +1 -1
  25. data/app/forms/hyrax/forms/pcdm_collection_form.rb +29 -2
  26. data/app/forms/hyrax/forms/resource_form.rb +15 -1
  27. data/app/forms/hyrax/forms/widgets/admin_set_visibility.rb +1 -1
  28. data/app/indexers/hyrax/pcdm_collection_indexer.rb +0 -1
  29. data/app/jobs/characterize_job.rb +5 -1
  30. data/app/jobs/import_url_job.rb +4 -6
  31. data/app/jobs/valkyrie_ingest_job.rb +15 -77
  32. data/app/models/admin_set.rb +8 -0
  33. data/app/models/concerns/hyrax/collection_behavior.rb +1 -1
  34. data/app/models/concerns/hyrax/user.rb +11 -0
  35. data/app/models/concerns/hyrax/work_behavior.rb +1 -1
  36. data/app/models/featured_work_list.rb +0 -1
  37. data/app/models/hyrax/file_metadata.rb +32 -2
  38. data/app/models/hyrax/file_set.rb +1 -3
  39. data/app/models/hyrax/group.rb +19 -0
  40. data/app/models/hyrax/pcdm_collection.rb +0 -1
  41. data/app/models/job_io_wrapper.rb +1 -1
  42. data/app/presenters/hyrax/member_presenter_factory.rb +2 -4
  43. data/app/presenters/hyrax/work_show_presenter.rb +3 -3
  44. data/app/services/hyrax/access_control_list.rb +7 -6
  45. data/app/services/hyrax/adapters/nesting_index_adapter.rb +3 -3
  46. data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +3 -5
  47. data/app/services/hyrax/collections/collection_member_service.rb +3 -5
  48. data/app/services/hyrax/listeners/file_metadata_listener.rb +11 -0
  49. data/app/services/hyrax/listeners/member_cleanup_listener.rb +14 -18
  50. data/app/services/hyrax/multiple_membership_checker.rb +2 -0
  51. data/app/services/hyrax/valkyrie_persist_derivatives.rb +50 -0
  52. data/app/services/hyrax/valkyrie_upload.rb +94 -0
  53. data/app/services/hyrax/workflow/workflow_importer.rb +7 -9
  54. data/app/services/hyrax/workflow/workflow_schema.rb +3 -5
  55. data/app/strategies/hyrax/strategies/yaml_strategy.rb +4 -6
  56. data/app/uploaders/hyrax/uploaded_file_uploader.rb +4 -4
  57. data/app/validators/hyrax/collection_membership_validator.rb +16 -15
  58. data/app/views/catalog/_index_header_list_default.html.erb +8 -1
  59. data/app/views/catalog/_thumbnail_list_default.html.erb +8 -3
  60. data/app/views/collections/edit_fields/_based_near.html.erb +7 -7
  61. data/app/views/hyrax/dashboard/collections/_form.html.erb +3 -2
  62. data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +1 -0
  63. data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +1 -1
  64. data/app/views/hyrax/my/works/_tabs.html.erb +6 -1
  65. data/chart/hyrax/Chart.yaml +10 -6
  66. data/chart/hyrax/templates/_helpers.tpl +4 -0
  67. data/chart/hyrax/templates/cron-embargo.yaml +5 -0
  68. data/chart/hyrax/templates/cron-lease.yaml +5 -0
  69. data/chart/hyrax/templates/deployment-worker.yaml +11 -0
  70. data/chart/hyrax/templates/ingress.yaml +7 -6
  71. data/chart/hyrax/values.yaml +152 -0
  72. data/config/features.rb +48 -50
  73. data/config/initializers/{valkryrie_storage.rb → storage_adapter_initializer.rb} +5 -0
  74. data/config/locales/hyrax.de.yml +12 -12
  75. data/docker-compose.yml +1 -0
  76. data/documentation/developing-your-hyrax-based-app.md +1 -1
  77. data/documentation/legacyREADME.md +1 -1
  78. data/hyrax.gemspec +5 -3
  79. data/lib/generators/hyrax/collection_resource/USAGE +20 -0
  80. data/lib/generators/hyrax/collection_resource/collection_resource_generator.rb +133 -0
  81. data/lib/generators/hyrax/collection_resource/templates/collection.rb.erb +34 -0
  82. data/lib/generators/hyrax/collection_resource/templates/collection_form.rb.erb +7 -0
  83. data/lib/generators/hyrax/collection_resource/templates/collection_form_spec.rb.erb +13 -0
  84. data/lib/generators/hyrax/collection_resource/templates/collection_indexer.rb.erb +7 -0
  85. data/lib/generators/hyrax/collection_resource/templates/collection_indexer_spec.rb.erb +13 -0
  86. data/lib/generators/hyrax/collection_resource/templates/collection_metadata.yaml +22 -0
  87. data/lib/generators/hyrax/collection_resource/templates/collection_spec.rb.erb +12 -0
  88. data/lib/generators/hyrax/install_generator.rb +9 -0
  89. data/lib/hyrax/configuration.rb +12 -0
  90. data/lib/hyrax/publisher.rb +4 -0
  91. data/lib/hyrax/specs/shared_specs/hydra_works.rb +0 -1
  92. data/lib/hyrax/transactions/collection_update.rb +2 -0
  93. data/lib/hyrax/transactions/container.rb +10 -0
  94. data/lib/hyrax/transactions/steps/save_collection_banner.rb +59 -0
  95. data/lib/hyrax/transactions/steps/save_collection_logo.rb +109 -0
  96. data/lib/hyrax/version.rb +1 -1
  97. data/lib/wings/active_fedora_converter/file_metadata_node.rb +48 -0
  98. data/lib/wings/active_fedora_converter/instance_builder.rb +68 -0
  99. data/lib/wings/active_fedora_converter.rb +3 -3
  100. data/lib/wings/services/custom_queries/find_file_metadata.rb +19 -8
  101. data/lib/wings/valkyrie/query_service.rb +4 -6
  102. data/template.rb +1 -1
  103. metadata +63 -13
  104. data/app/views/catalog/_index_header_list_hyrax_pcdm_collection.html.erb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 865d623446e36dc64e73cf82ef855955e83d8d8f730a65f439b9b89664641c3f
4
- data.tar.gz: 87aec067e009093bbd119d6d39639c5c6927b2b26173088ca7000b1241f71caa
3
+ metadata.gz: 9b16b002450d8ab2e549a1e79a558df2cdcc5a4f906d5cad461a010de5d3083d
4
+ data.tar.gz: e31cfe1456a09806f220c3a80582c708ea04707fb927dce8bcd1fa897d738c94
5
5
  SHA512:
6
- metadata.gz: d75dbf03372ee072f394a88af8449ff947ff42b21de9b10a83428ac98af5d01783f21e7f123ee00e3c0dd7b6d3808d4e7d59f0238e1fda703da8358d2b567447
7
- data.tar.gz: 6dae952fde3a2f2fdc329775d8efe14929e23c0f92284d1848abfa8a7a8a041e4b5a197a4fa0581d3934ddc9267d0e3ca64c455a5f65b81f5287bde8110fb19e
6
+ metadata.gz: c559a06ad78eb3b2e13ab6f11cc7fd0a5ee94a0da1670b0c67557610cf0d65fde294a6998ce46c634bff1a24ad3a17d6eb4755ec7ddf87e7c339ef7c46a0e717
7
+ data.tar.gz: d95bd5690258a422be6913a1fb7bed33c225288948c74d6864ec3f7740d4791fd7dcca321b89f81efc33083048965102635281ff5b0de815701125a95c8e24f7
data/.circleci/config.yml CHANGED
@@ -6,7 +6,7 @@ jobs:
6
6
  parameters:
7
7
  ruby_version:
8
8
  type: string
9
- default: 2.5.8
9
+ default: 2.5.9
10
10
  bundler_version:
11
11
  type: string
12
12
  default: 1.17.3
@@ -67,7 +67,7 @@ jobs:
67
67
  parameters:
68
68
  ruby_version:
69
69
  type: string
70
- default: 2.5.8
70
+ default: 2.5.9
71
71
  bundler_version:
72
72
  type: string
73
73
  default: 1.17.3
@@ -86,6 +86,15 @@ jobs:
86
86
  steps:
87
87
  - attach_workspace:
88
88
  at: ~/
89
+ - when:
90
+ condition:
91
+ equal: [ '2.5.9', << parameters.ruby_version >> ]
92
+ steps:
93
+ - run:
94
+ name: "Lock browse everything for Ruby 2.5"
95
+ command: |
96
+ sed -i.bak "s/browse-everything.*/browse-everything\', \'1.1.2\'/" hyrax.gemspec
97
+ bundle
89
98
  - samvera/engine_cart_generate:
90
99
  cache_key: v1-internal-test-app-{{ checksum "hyrax.gemspec" }}-{{ checksum ".regen" }}-{{ checksum ".circleci/config.yml" }}-<< parameters.rails_version >>-<< parameters.ruby_version >>
91
100
  - samvera/bundle:
@@ -101,7 +110,7 @@ jobs:
101
110
  parameters:
102
111
  ruby_version:
103
112
  type: string
104
- default: 2.5.8
113
+ default: 2.5.9
105
114
  bundler_version:
106
115
  type: string
107
116
  default: 1.17.3
@@ -150,43 +159,43 @@ jobs:
150
159
  --header 'Content-Type: application/json'
151
160
  workflows:
152
161
  version: 2
153
- ruby2-5-8:
162
+ ruby2-5:
154
163
  jobs:
155
164
  - bundle:
156
- ruby_version: "2.5.8"
165
+ ruby_version: "2.5.9"
157
166
  rails_version: "5.2.6"
158
167
  - build:
159
- ruby_version: "2.5.8"
168
+ ruby_version: "2.5.9"
160
169
  rails_version: "5.2.6"
161
170
  requires:
162
171
  - bundle
163
172
  - test:
164
- name: "ruby2-5-8"
165
- ruby_version: "2.5.8"
173
+ name: "ruby2-5"
174
+ ruby_version: "2.5.9"
166
175
  requires:
167
176
  - build
168
- ruby2-6-6:
177
+ ruby2-6:
169
178
  jobs:
170
179
  - bundle:
171
- ruby_version: "2.6.6"
180
+ ruby_version: "2.6.7"
172
181
  rails_version: "5.2.6"
173
182
  - build:
174
- ruby_version: "2.6.6"
183
+ ruby_version: "2.6.7"
175
184
  rails_version: "5.2.6"
176
185
  requires:
177
186
  - bundle
178
187
  - test:
179
- name: "ruby2-6-6"
180
- ruby_version: "2.6.6"
188
+ name: "ruby2-6"
189
+ ruby_version: "2.6.7"
181
190
  requires:
182
191
  - build
183
192
  - test:
184
- name: "ruby2-6-6-valkyrie"
185
- ruby_version: "2.6.6"
193
+ name: "ruby2-6-valkyrie"
194
+ ruby_version: "2.6.7"
186
195
  hyrax_valkyrie: "true"
187
196
  requires:
188
197
  - build
189
- ruby2-7-4:
198
+ ruby2-7:
190
199
  jobs:
191
200
  - bundle:
192
201
  ruby_version: "2.7.4"
@@ -199,7 +208,7 @@ workflows:
199
208
  requires:
200
209
  - bundle
201
210
  - test:
202
- name: "ruby2-7-4"
211
+ name: "ruby2-7"
203
212
  ruby_version: "2.7.4"
204
213
  bundler_version: "2.1.4"
205
214
  requires:
data/.dassie/.env CHANGED
@@ -1,4 +1,4 @@
1
1
  MEMCACHED_HOST=memcached
2
2
  REDIS_PROVIDER=SIDEKIQ_REDIS_URL
3
- SIDEKIQ_REDIS_URL=redis://redis:6379/0
4
3
  SEED_DASSIE=true
4
+ SIDEKIQ_REDIS_URL=redis://redis:6379/0
data/.dassie/Gemfile CHANGED
@@ -8,7 +8,7 @@ else
8
8
  end
9
9
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
10
10
 
11
- ruby '2.7.4'
11
+ ruby '2.7.5'
12
12
 
13
13
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
14
14
  gem 'rails', '~> 5.2.4', '>= 5.2.4.4'
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ class CollectionResourceForm < Hyrax::Forms::PcdmCollectionForm
6
+ include Hyrax::FormFields(:basic_metadata)
7
+ include Hyrax::FormFields(:collection_resource)
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ class CollectionResourceIndexer < Hyrax::PcdmCollectionIndexer
6
+ include Hyrax::Indexer(:basic_metadata)
7
+ include Hyrax::Indexer(:collection_resource)
8
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ class CollectionResource < Hyrax::PcdmCollection
6
+ # @note Do not directly update `basic_metadata.yaml`. It is also used by works.
7
+ #
8
+ # To change metadata for collections
9
+ # * extend by adding fields to `/config/metadata/collection_resource.yaml`
10
+ # * remove all basic metadata
11
+ # * if you generated `with_basic_metadata` and now don't want any basic metadata,
12
+ # comment out or delete the schema include statement for `:basic_metadata`
13
+ # * update form and indexer classes to also remove the `:basic_metadata` schema include
14
+ # * remove some basic metadata
15
+ # * comment out or delete the schema include statement for `:basic_metadata`
16
+ # * update form and indexer classes to also remove the `:basic_metadata` schema include
17
+ # * copy fields you want to keep from `/config/metadata/basic_metadata.yaml`
18
+ # to `/config/metadata/collection_resource.yaml`
19
+ # * override some basic metadata
20
+ # * fields are not allowed to repeat, so to override any basic metadata, you
21
+ # must first comment out or delete the schema include statement for `:basic_metadata`
22
+ # * update form and indexer classes to also remove the `:basic_metadata` schema include
23
+ # * copy all fields you want to keep unchanged or to override from `/config/metadata/basic_metadata.yaml`
24
+ # to `/config/metadata/collection_resource.yaml`
25
+ # * update them in `config/metadata/collection_resource.yaml to have the desired
26
+ # characteristics
27
+ #
28
+ # Alternative:
29
+ # * comment out or delete schema include statements
30
+ # * add Valkyrie attributes to this class
31
+ # * update form and indexer to process the attributes
32
+ #
33
+ include Hyrax::Schema(:basic_metadata)
34
+ include Hyrax::Schema(:collection_resource)
35
+ end
@@ -0,0 +1,4 @@
1
+ ActiveSupport::Reloader.to_prepare do
2
+ Hydra::Derivatives.config.output_file_service = Hyrax::ValkyriePersistDerivatives
3
+ Hydra::Derivatives.config.source_file_service = Hyrax::LocalFileService
4
+ end
@@ -54,7 +54,8 @@ Hyrax.config do |config|
54
54
  ##
55
55
  # NOTE: To Valkyrie works, use Monograph which is_a Hyrax::Work is_a Valkyrie::Resource
56
56
  # To use Valkyrie models, uncomment the following lines.
57
- # config.collection_model = 'Hyrax::PcdmCollection'
57
+ # config.collection_model = 'Hyrax::PcdmCollection' # collection without basic metadata
58
+ # config.collection_model = 'CollectionResource' # collection with basic metadata
58
59
  # config.admin_set_model = 'Hyrax::AdministrativeSet'
59
60
  end
60
61
 
@@ -0,0 +1,23 @@
1
+ # Simple yaml config-driven schema which is used to define model attributes,
2
+ # index key names, and form properties.
3
+ #
4
+ # Originally generated with no metadata via
5
+ # `rails generate hyrax:collection_resource CollectionResource`
6
+ #
7
+ # A few custom fields are added for testing purposes.
8
+
9
+ ---
10
+ attributes:
11
+ target_audience:
12
+ type: string
13
+ form:
14
+ primary: true
15
+ multiple: true
16
+ department:
17
+ type: string
18
+ form:
19
+ primary: true
20
+ course:
21
+ type: string
22
+ form:
23
+ primary: false
data/.dassie/db/seeds.rb CHANGED
@@ -68,6 +68,8 @@ if wipe_data
68
68
  end
69
69
 
70
70
  if seed_dassie
71
+ puts 'Seeding Dassie ...'
72
+
71
73
  Hyrax::RequiredDataSeeder.new.generate_seed_data
72
74
  Hyrax::TestDataSeeders::UserSeeder.generate_seeds
73
75
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ require 'rails_helper'
6
+ require 'valkyrie/specs/shared_specs'
7
+
8
+ RSpec.describe CollectionResourceForm do
9
+ let(:change_set) { described_class.new(resource) }
10
+ let(:resource) { CollectionResource.new }
11
+
12
+ it_behaves_like 'a Valkyrie::ChangeSet'
13
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ require 'rails_helper'
6
+ require 'hyrax/specs/shared_specs/indexers'
7
+
8
+ RSpec.describe CollectionResourceIndexer do
9
+ let(:indexer_class) { described_class }
10
+ let(:resource) { CollectionResource.new }
11
+
12
+ it_behaves_like 'a Hyrax::Resource indexer'
13
+ it_behaves_like 'a Basic metadata indexer'
14
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated via
4
+ # `rails generate hyrax:collection_resource CollectionResource`
5
+ require 'rails_helper'
6
+ require 'hyrax/specs/shared_specs/hydra_works'
7
+
8
+ RSpec.describe CollectionResource do
9
+ subject(:collection) { described_class.new }
10
+
11
+ it_behaves_like 'a Hyrax::PcdmCollection'
12
+ it_behaves_like 'a model with basic metadata'
13
+ end
data/.regen CHANGED
@@ -1 +1 @@
1
- 41
1
+ 46
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ inherit_gem:
5
5
  bixby: bixby_default.yml
6
6
 
7
7
  AllCops:
8
- TargetRubyVersion: 2.4
8
+ TargetRubyVersion: 2.5
9
9
  DisplayCopNames: true
10
10
  Exclude:
11
11
  - 'db/**/*'
data/.rubocop_fixme.yml CHANGED
@@ -171,14 +171,31 @@ RSpec/RepeatedDescription:
171
171
  - 'spec/models/sipity/workflow_state_action_spec.rb'
172
172
  - 'spec/models/sipity/workflow_state_spec.rb'
173
173
 
174
- # Offense count: 1
174
+ # Offense count: 2
175
175
  # Configuration parameters: Include.
176
176
  # Include: app/models/**/*.rb
177
177
  Rails/HasManyOrHasOneDependent:
178
178
  Exclude:
179
179
  - 'app/models/admin_set.rb'
180
+ - 'app/models/hyrax/permission_template.rb'
180
181
 
181
182
  # Offense count: 1
182
- Style/MethodMissingSuper:
183
+ Rails/SkipsModelValidations:
184
+ Exclude:
185
+ - 'app/services/hyrax/works/migration_service.rb'
186
+
187
+ # Offense count: 12
188
+ Lint/MissingSuper:
183
189
  Exclude:
190
+ - 'app/actors/hyrax/actors/interpret_visibility_actor.rb'
191
+ - 'app/actors/hyrax/actors/ordered_members_actor.rb'
184
192
  - 'app/models/concerns/hyrax/file_set/characterization.rb'
193
+ - 'app/presenters/hyrax/file_usage.rb'
194
+ - 'app/presenters/hyrax/work_usage.rb'
195
+ - 'app/services/hyrax/batch_create_failure_service.rb'
196
+ - 'app/services/hyrax/batch_create_success_service.rb'
197
+ - 'app/services/hyrax/collection_types/create_service.rb'
198
+ - 'app/services/hyrax/solr_query_service.rb'
199
+ - 'lib/hyrax/form_fields.rb'
200
+ - 'lib/hyrax/health_checks/solr_check.rb'
201
+ - 'lib/hyrax/schema.rb'
data/CONTAINERS.md CHANGED
@@ -143,28 +143,32 @@ _This is for applications that mount Hyrax and is separate from the docker conta
143
143
 
144
144
  ### Maintaining
145
145
 
146
- We publish several Hyrax images to hub.docker.com under the
147
- [`samveralabs` group][dockerhub-samveralabs]. To build them, do:
146
+ We publish several Hyrax images to the [GitHub container registry][ghcr] under
147
+ the [Samvera organization][samvera-packages]. To build them:
148
148
 
149
149
  ```sh
150
- # build an image for an app using Postgresql (`gem 'pg'`)
151
- docker build --target hyrax --tag samveralabs/hyrax:(git rev-parse HEAD) .
152
- docker push samveralabs/hyrax:(git rev-parse HEAD)
150
+ export HYRAX_VERSION=v3.4.1 # or desired version
151
+ git checkout $HYRAX_VERSION
153
152
 
154
- # or; build a development image with sqlite
155
- docker build --target hyrax --tag samveralabs/hyrax:(git rev-parse HEAD)-sqlite --build-arg DATABASE_APK_PACKAGE="sqlite" .
156
- docker push samveralabs/hyrax:(git rev-parse HEAD)-sqlite
153
+ docker build --target hyrax-base --tag ghcr.io/samvera/hyrax/hyrax-base:$(git rev-parse HEAD) .
154
+
155
+ docker tag ghcr.io/samvera/hyrax/hyrax-base:$(git rev-parse HEAD) ghcr.io/samvera/hyrax/hyrax-base:$HYRAX_VERSION
156
+
157
+ docker push ghcr.io/samvera/hyrax/hyrax-base:$(git rev-parse HEAD)
158
+ docker push ghcr.io/samvera/hyrax/hyrax-base:$HYRAX_VERSION
157
159
  ```
158
160
 
161
+ Do the same for `hyrax-worker-base`.
162
+
159
163
  We also publish an image for the stable test application `dassie`:
160
164
 
161
165
  ```sh
162
- docker build --target hyrax-engine-dev --tag samveralabs/dassie:(git rev-parse HEAD) .
166
+ docker build --target hyrax-engine-dev --tag ghcr.io/samvera/hyrax/dassie:$(git rev-parse HEAD) .
163
167
 
164
- docker tag samveralabs/dassie:(git rev-parse HEAD) samveralabs/dassie:$HYRAX_VERSION
168
+ docker tag ghcr.io/samvera/hyrax/dassie:$(git rev-parse HEAD) ghcr.io/samvera/hyrax/dassie:$HYRAX_VERSION
165
169
 
166
- docker push samveralabs/dassie:(git rev-parse HEAD)
167
- docker push samveralabs/dassie:$HYRAX_VERSION
170
+ docker push ghcr.io/samvera/hyrax/dassie:$(git rev-parse HEAD)
171
+ docker push ghcr.io/samvera/hyrax/dassie:$HYRAX_VERSION
168
172
  ```
169
173
 
170
174
  ## Deploying to Production
@@ -180,4 +184,5 @@ helm dependency update chart/hyrax
180
184
  helm install -n hyrax --set image.tag=(git rev-parse HEAD) dassie chart/hyrax
181
185
  ```
182
186
 
183
- [dockerhub-samveralabs]: https://hub.docker.com/r/samveralabs
187
+ [ghcr]: https://docs.github.com/en/enterprise-cloud@latest/packages/working-with-a-github-packages-registry/working-with-the-container-registry
188
+ [samvera-packages]: https://github.com/orgs/samvera/packages
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- ARG RUBY_VERSION=2.7.4
2
- FROM ruby:$RUBY_VERSION-alpine3.14 as hyrax-base
1
+ ARG RUBY_VERSION=2.7.5
2
+ FROM ruby:$RUBY_VERSION-alpine3.15 as hyrax-base
3
3
 
4
4
  ARG DATABASE_APK_PACKAGE="postgresql-dev"
5
5
  ARG EXTRA_APK_PACKAGES="git"
@@ -1,10 +1,12 @@
1
1
  import CollectionUtilities from 'hyrax/collections_utils';
2
+ import Editor from 'hyrax/editor';
2
3
 
3
4
  export default class CollectionsV2 {
4
5
  constructor() {
5
6
  this.collectionUtilities = new CollectionUtilities();
6
7
  this.setupAddSharingHandler();
7
8
  this.sharingAddButtonDisabler();
9
+ this.setupEditor();
8
10
  }
9
11
 
10
12
  /**
@@ -54,4 +56,15 @@ export default class CollectionsV2 {
54
56
  )
55
57
  );
56
58
  }
59
+
60
+ /**
61
+ * Set up editor to enable Geonames autocomplete for Location data
62
+ * @return {void}
63
+ */
64
+ setupEditor() {
65
+ var element = $("[data-behavior='collection-form']");
66
+ if (element.length > 0) {
67
+ new Editor(element).init();
68
+ }
69
+ }
57
70
  }
@@ -41,9 +41,7 @@ module Hyrax
41
41
  private
42
42
 
43
43
  def presenter
44
- @presenter ||= begin
45
- presenter_class.new(curation_concern, current_ability)
46
- end
44
+ @presenter ||= presenter_class.new(curation_concern, current_ability)
47
45
  end
48
46
 
49
47
  def curation_concern