hyrax 4.0.0 → 5.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +124 -232
  3. data/.dassie/.env +8 -2
  4. data/.dassie/Gemfile +27 -42
  5. data/.dassie/Gemfile.dassie +2 -0
  6. data/.dassie/app/assets/config/manifest.js +2 -0
  7. data/.dassie/app/assets/stylesheets/hyrax.scss +1 -0
  8. data/.dassie/config/environments/test.rb +1 -0
  9. data/.dassie/config/initializers/hyrax.rb +3 -1
  10. data/.dassie/config/initializers/riiif.rb +11 -7
  11. data/.dassie/config/metadata/collection_resource.yaml +3 -0
  12. data/.dassie/config/metadata/monograph.yaml +8 -0
  13. data/.dassie/config/metadata/sample_metadata.yaml +1 -0
  14. data/.dassie/config/redis.yml +2 -0
  15. data/.dassie/db/migrate/20230725222727_create_hyrax_counter_metrics.hyrax.rb +14 -0
  16. data/.dassie/db/migrate/20230803165135_change_work_id_to_string.rb +5 -0
  17. data/.dassie/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.hyrax.rb +8 -0
  18. data/.dassie/db/migrate/20230821153635_add_fields_to_counter_metric.rb +8 -0
  19. data/.dassie/db/schema.rb +22 -3
  20. data/.dockerignore +7 -0
  21. data/.github/PULL_REQUEST_TEMPLATE.md +10 -7
  22. data/.github/release.yml +5 -2
  23. data/.gitignore +1 -1
  24. data/.koppie/.env +13 -4
  25. data/.koppie/Gemfile +10 -12
  26. data/.koppie/Gemfile.koppie +2 -0
  27. data/.koppie/Rakefile +0 -2
  28. data/.koppie/app/models/ability.rb +1 -5
  29. data/.koppie/app/models/user.rb +0 -2
  30. data/.koppie/config/application.rb +2 -1
  31. data/.koppie/config/arkivo.yml +6 -0
  32. data/.koppie/config/blacklight.yml +2 -2
  33. data/.koppie/config/environments/test.rb +1 -0
  34. data/.koppie/config/features.yml +2 -0
  35. data/.koppie/config/initializers/1_valkyrie.rb +29 -6
  36. data/.koppie/config/initializers/arkivo_constraint.rb +12 -0
  37. data/.koppie/config/initializers/hyrax.rb +10 -4
  38. data/.koppie/config/initializers/riiif.rb +11 -7
  39. data/.koppie/config/metadata/collection_resource.yaml +49 -0
  40. data/.koppie/config/metadata/generic_work.yaml +2 -0
  41. data/.koppie/config/metadata/monograph.yaml +10 -0
  42. data/.koppie/config/role_map.yml +3 -25
  43. data/.koppie/config/routes.rb +1 -2
  44. data/.koppie/config/solr.yml +1 -1
  45. data/.koppie/config/valkyrie_index.yml +4 -10
  46. data/.koppie/config/zotero.yml +6 -0
  47. data/.koppie/db/migrate/20230725222727_create_hyrax_counter_metrics.hyrax.rb +14 -0
  48. data/.koppie/db/migrate/20230803165135_change_work_id_to_string.rb +5 -0
  49. data/.koppie/db/schema.rb +12 -1
  50. data/.koppie/yarn.lock +23 -23
  51. data/.regen +1 -1
  52. data/CONTAINERS.md +1 -3
  53. data/Dockerfile +17 -13
  54. data/Gemfile +4 -21
  55. data/Gemfile.dassie +2 -0
  56. data/Gemfile.koppie +2 -0
  57. data/README.md +0 -1
  58. data/Rakefile +0 -11
  59. data/app/actors/hyrax/actors/base_actor.rb +4 -3
  60. data/app/actors/hyrax/actors/embargo_actor.rb +3 -3
  61. data/app/actors/hyrax/actors/lease_actor.rb +5 -2
  62. data/app/assets/javascripts/hyrax/batch_select_all.js +1 -1
  63. data/app/assets/javascripts/hyrax/file_manager/member.es6 +1 -1
  64. data/app/assets/javascripts/hyrax/file_manager/sorting.es6 +3 -2
  65. data/app/assets/stylesheets/hyrax/_file-listing.scss +0 -2
  66. data/app/assets/stylesheets/hyrax/_work-show.scss +19 -3
  67. data/app/assets/stylesheets/hyrax/sidebar.scss +23 -0
  68. data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +8 -2
  69. data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +7 -1
  70. data/app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb +79 -0
  71. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +64 -14
  72. data/app/controllers/hyrax/admin/workflows_controller.rb +48 -3
  73. data/app/controllers/hyrax/api/items_controller.rb +2 -3
  74. data/app/controllers/hyrax/batch_edits_controller.rb +39 -10
  75. data/app/controllers/hyrax/batch_uploads_controller.rb +5 -1
  76. data/app/controllers/hyrax/dashboard/collections_controller.rb +4 -1
  77. data/app/controllers/hyrax/downloads_controller.rb +8 -1
  78. data/app/controllers/hyrax/file_sets_controller.rb +50 -6
  79. data/app/controllers/hyrax/my/collections_controller.rb +2 -0
  80. data/app/controllers/hyrax/single_use_links_viewer_controller.rb +16 -2
  81. data/app/forms/concerns/hyrax/basic_metadata_form_fields_behavior.rb +38 -0
  82. data/app/forms/hyrax/forms/collection_form.rb +0 -15
  83. data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +0 -34
  84. data/app/forms/hyrax/forms/file_set_edit_form.rb +1 -1
  85. data/app/forms/hyrax/forms/file_set_form.rb +2 -2
  86. data/app/forms/hyrax/forms/pcdm_object_form.rb +21 -0
  87. data/app/forms/hyrax/forms/permission_template_form.rb +2 -7
  88. data/app/forms/hyrax/forms/resource_batch_edit_form.rb +118 -0
  89. data/app/forms/hyrax/forms/resource_form.rb +21 -34
  90. data/app/forms/hyrax/forms/work_embargo_form.rb +1 -0
  91. data/app/forms/hyrax/forms/work_form.rb +1 -1
  92. data/app/forms/hyrax/forms/work_lease_form.rb +1 -0
  93. data/app/helpers/hyrax/dashboard_helper_behavior.rb +30 -9
  94. data/app/helpers/hyrax/membership_helper.rb +13 -1
  95. data/app/helpers/hyrax/work_form_helper.rb +0 -107
  96. data/app/indexers/hyrax/file_set_indexer.rb +6 -0
  97. data/app/indexers/hyrax/location_indexer.rb +29 -0
  98. data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +36 -5
  99. data/app/indexers/hyrax/valkyrie_work_indexer.rb +9 -2
  100. data/app/inputs/controlled_vocabulary_input.rb +1 -1
  101. data/app/jobs/characterize_job.rb +1 -1
  102. data/app/jobs/create_work_job.rb +36 -4
  103. data/app/jobs/valkyrie_characterization_job.rb +9 -0
  104. data/app/jobs/valkyrie_create_derivatives_job.rb +8 -7
  105. data/app/jobs/valkyrie_ingest_job.rb +1 -4
  106. data/app/models/admin_set.rb +1 -31
  107. data/app/models/collection_branding_info.rb +2 -9
  108. data/app/models/concerns/hyrax/ability.rb +2 -1
  109. data/app/models/concerns/hyrax/collection_behavior.rb +4 -12
  110. data/app/models/concerns/hyrax/file_set/derivatives.rb +3 -2
  111. data/app/models/concerns/hyrax/riiif_file.rb +30 -0
  112. data/app/models/concerns/hyrax/solr_document_behavior.rb +20 -3
  113. data/app/models/hyrax/collection_type.rb +5 -14
  114. data/app/models/hyrax/counter_metric.rb +7 -0
  115. data/app/models/hyrax/file_metadata.rb +9 -9
  116. data/app/models/hyrax/file_set.rb +76 -15
  117. data/app/models/hyrax/orcid_validator.rb +0 -6
  118. data/app/models/hyrax/resource.rb +30 -2
  119. data/app/models/hyrax/work.rb +2 -5
  120. data/app/presenters/hyrax/collection_presenter.rb +0 -17
  121. data/app/presenters/hyrax/embargo_presenter.rb +4 -0
  122. data/app/presenters/hyrax/file_set_presenter.rb +6 -0
  123. data/app/presenters/hyrax/iiif_manifest_presenter.rb +3 -7
  124. data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +6 -4
  125. data/app/presenters/hyrax/presenter_renderer.rb +0 -7
  126. data/app/presenters/hyrax/version_list_presenter.rb +19 -10
  127. data/app/presenters/hyrax/version_presenter.rb +19 -4
  128. data/app/presenters/hyrax/work_show_presenter.rb +6 -11
  129. data/app/search_builders/hyrax/file_set_search_builder.rb +1 -1
  130. data/app/search_builders/hyrax/valkyrie_abstract_type_relation.rb +37 -0
  131. data/app/search_builders/hyrax/valkyrie_work_relation.rb +9 -0
  132. data/app/services/hyrax/admin_set_create_service.rb +0 -17
  133. data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +16 -9
  134. data/app/services/hyrax/collections/collection_member_service.rb +1 -1
  135. data/app/services/hyrax/custom_queries/find_by_date_range.rb +55 -0
  136. data/app/services/hyrax/custom_queries/find_count_by.rb +62 -0
  137. data/app/services/hyrax/custom_queries/find_file_metadata.rb +1 -1
  138. data/app/services/hyrax/custom_queries/find_models_by_access.rb +59 -0
  139. data/app/services/hyrax/derivative_bucketed_storage.rb +25 -0
  140. data/app/services/hyrax/derivative_path.rb +14 -4
  141. data/app/services/hyrax/embargo_manager.rb +106 -13
  142. data/app/services/hyrax/embargo_service.rb +12 -10
  143. data/app/services/hyrax/file_set_derivatives_service.rb +14 -13
  144. data/app/services/hyrax/fixity_check_failure_service.rb +1 -1
  145. data/app/services/hyrax/identifier/dispatcher.rb +9 -2
  146. data/app/services/hyrax/lease_manager.rb +88 -8
  147. data/app/services/hyrax/listeners/file_metadata_listener.rb +16 -8
  148. data/app/services/hyrax/listeners/member_cleanup_listener.rb +2 -28
  149. data/app/services/hyrax/listeners/metadata_index_listener.rb +11 -0
  150. data/app/services/hyrax/listeners/workflow_listener.rb +8 -11
  151. data/app/services/hyrax/lock_manager.rb +1 -2
  152. data/app/services/hyrax/persist_directly_contained_output_file_service.rb +24 -2
  153. data/app/services/hyrax/riiif_file_resolver.rb +50 -0
  154. data/app/services/hyrax/simple_schema_loader.rb +31 -0
  155. data/app/services/hyrax/solr_query_service.rb +7 -6
  156. data/app/services/hyrax/statistics/depositors/summary.rb +1 -1
  157. data/app/services/hyrax/statistics/over_time.rb +1 -1
  158. data/app/services/hyrax/statistics/users/over_time.rb +3 -1
  159. data/app/services/hyrax/statistics/valkyrie_query_service.rb +49 -0
  160. data/app/services/hyrax/statistics/works/count.rb +1 -1
  161. data/app/services/hyrax/thumbnail_path_service.rb +5 -0
  162. data/app/services/hyrax/valkyrie_persist_derivatives.rb +16 -11
  163. data/app/services/hyrax/valkyrie_upload.rb +16 -28
  164. data/app/services/hyrax/versioning_service.rb +30 -15
  165. data/app/services/hyrax/visibility_intention.rb +1 -4
  166. data/app/services/hyrax/visibility_propagator.rb +1 -1
  167. data/app/services/hyrax/work_uploads_handler.rb +1 -1
  168. data/app/services/hyrax/workflow/actionable_objects.rb +28 -3
  169. data/app/services/hyrax/workflow/grant_edit_to_depositor.rb +1 -1
  170. data/app/services/hyrax/workflow/grant_read_to_depositor.rb +1 -1
  171. data/app/services/hyrax/workflow/permission_query.rb +23 -2
  172. data/app/validators/hyrax/collection_membership_validator.rb +1 -1
  173. data/app/views/catalog/_search_form.html.erb +1 -1
  174. data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
  175. data/app/views/hyrax/admin/workflows/_tabs.html.erb +9 -0
  176. data/app/views/hyrax/admin/workflows/index.html.erb +53 -76
  177. data/app/views/hyrax/base/_file_manager_members.html.erb +2 -2
  178. data/app/views/hyrax/base/_file_manager_resource_form.html.erb +1 -1
  179. data/app/views/hyrax/base/_form.html.erb +0 -10
  180. data/app/views/hyrax/base/_form_permission_embargo.html.erb +1 -1
  181. data/app/views/hyrax/base/_form_permission_lease.html.erb +1 -1
  182. data/app/views/hyrax/base/_form_visibility_component.html.erb +4 -4
  183. data/app/views/hyrax/base/_items.html.erb +1 -1
  184. data/app/views/hyrax/base/_show_actions.html.erb +1 -1
  185. data/app/views/hyrax/base/_workflow_actions.html.erb +25 -23
  186. data/app/views/hyrax/base/file_manager.html.erb +1 -1
  187. data/app/views/hyrax/base/show.json.jbuilder +4 -3
  188. data/app/views/hyrax/collections/_show_document_list_row.html.erb +1 -1
  189. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +1 -1
  190. data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +1 -1
  191. data/app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb +3 -3
  192. data/app/views/hyrax/file_sets/_versioning.html.erb +5 -5
  193. data/app/views/hyrax/file_sets/media_display/_audio.html.erb +4 -4
  194. data/app/views/hyrax/file_sets/media_display/_default.html.erb +1 -1
  195. data/app/views/hyrax/file_sets/media_display/_video.html.erb +2 -2
  196. data/app/views/hyrax/file_sets/show.html.erb +5 -3
  197. data/app/views/hyrax/homepage/_explore_collections.html.erb +1 -1
  198. data/app/views/hyrax/my/_search_form.html.erb +1 -1
  199. data/app/views/hyrax/notifications/_notifications.html.erb +1 -1
  200. data/app/views/hyrax/users/_vitals.html.erb +1 -1
  201. data/bin/dev-entrypoint.sh +13 -0
  202. data/chart/hyrax/Chart.yaml +18 -14
  203. data/chart/hyrax/README.md +34 -21
  204. data/chart/hyrax/templates/_helpers.tpl +34 -1
  205. data/chart/hyrax/templates/configmap-env.yaml +12 -2
  206. data/chart/hyrax/templates/secrets.yaml +1 -1
  207. data/chart/hyrax/values.yaml +39 -14
  208. data/config/initializers/file_length_patch.rb +10 -0
  209. data/config/initializers/listeners.rb +4 -10
  210. data/config/initializers/storage_adapter_initializer.rb +1 -1
  211. data/config/locales/hyrax.en.yml +8 -0
  212. data/config/metadata/basic_metadata.yaml +52 -0
  213. data/config/metadata/core_metadata.yaml +4 -0
  214. data/config/metadata/file_set_metadata.yaml +20 -1
  215. data/config/metadata/hyrax_internal_metadata.yaml +57 -0
  216. data/docker-compose-koppie.yml +36 -22
  217. data/docker-compose-sirenia.yml +202 -0
  218. data/docker-compose.yml +42 -26
  219. data/documentation/developing-your-hyrax-based-app.md +6 -14
  220. data/documentation/legacyREADME.md +3 -1
  221. data/hyrax.gemspec +12 -13
  222. data/karma.conf.js +9 -10
  223. data/lib/generators/hyrax/collection_resource/templates/collection_metadata.yaml +2 -0
  224. data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +1 -1
  225. data/lib/generators/hyrax/templates/config/initializers/riiif.rb +11 -7
  226. data/lib/generators/hyrax/templates/db/migrate/20230725222727_create_hyrax_counter_metrics.rb.erb +14 -0
  227. data/lib/generators/hyrax/templates/db/migrate/20230803165135_change_work_id_to_string.rb.erb +5 -0
  228. data/lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb +8 -0
  229. data/lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb +8 -0
  230. data/lib/generators/hyrax/templates/db/seeds.rb +1 -1
  231. data/lib/generators/hyrax/work_resource/templates/form.rb.erb +1 -1
  232. data/lib/generators/hyrax/work_resource/templates/metadata.yaml +2 -0
  233. data/lib/hyrax/active_fedora_dummy_model.rb +6 -1
  234. data/lib/hyrax/configuration.rb +147 -43
  235. data/lib/hyrax/controlled_vocabularies/location.rb +7 -1
  236. data/lib/hyrax/engine.rb +2 -1
  237. data/lib/hyrax/form_fields.rb +6 -0
  238. data/lib/hyrax/publisher.rb +23 -3
  239. data/lib/hyrax/redis_event_store.rb +7 -8
  240. data/lib/hyrax/resource_name.rb +4 -0
  241. data/lib/hyrax/specs/capybara.rb +25 -37
  242. data/lib/hyrax/specs/shared_specs/hydra_works.rb +34 -7
  243. data/lib/hyrax/specs/shared_specs/indexers.rb +24 -6
  244. data/lib/hyrax/transactions/collection_destroy.rb +3 -2
  245. data/lib/hyrax/transactions/container.rb +47 -0
  246. data/lib/hyrax/transactions/file_metadata_destroy.rb +20 -0
  247. data/lib/hyrax/transactions/file_set_destroy.rb +3 -1
  248. data/lib/hyrax/transactions/file_set_update.rb +21 -0
  249. data/lib/hyrax/transactions/steps/add_file_sets.rb +6 -0
  250. data/lib/hyrax/transactions/steps/add_to_parent.rb +1 -1
  251. data/lib/hyrax/transactions/steps/apply_permission_template.rb +40 -0
  252. data/lib/hyrax/transactions/steps/delete_all_file_metadata.rb +46 -0
  253. data/lib/hyrax/transactions/steps/delete_all_file_sets.rb +46 -0
  254. data/lib/hyrax/transactions/steps/file_metadata_delete.rb +40 -0
  255. data/lib/hyrax/transactions/steps/remove_from_membership.rb +45 -0
  256. data/lib/hyrax/transactions/steps/save.rb +21 -0
  257. data/lib/hyrax/transactions/work_create.rb +1 -0
  258. data/lib/hyrax/transactions/work_destroy.rb +3 -2
  259. data/lib/hyrax/version.rb +1 -1
  260. data/lib/hyrax.rb +1 -0
  261. data/lib/tasks/collection_type_global_id.rake +9 -4
  262. data/lib/tasks/embargo_lease.rake +1 -0
  263. data/lib/valkyrie/indexing/solr/indexing_adapter.rb +2 -0
  264. data/lib/wings/active_fedora_converter/default_work.rb +7 -2
  265. data/lib/wings/active_fedora_converter/file_metadata_node.rb +1 -1
  266. data/lib/wings/active_fedora_converter.rb +53 -11
  267. data/lib/wings/attribute_transformer.rb +24 -17
  268. data/lib/wings/model_transformer.rb +23 -12
  269. data/lib/wings/orm_converter.rb +23 -18
  270. data/lib/wings/setup.rb +23 -3
  271. data/lib/wings/valkyrie/persister.rb +4 -2
  272. data/lib/wings/valkyrie/storage.rb +8 -90
  273. data/lib/wings.rb +5 -0
  274. data/package.json +3 -1
  275. data/tasks/hyrax_dev.rake +2 -33
  276. data/template.rb +1 -1
  277. metadata +104 -81
  278. data/.engine_cart.yml +0 -3
  279. data/app/forms/hyrax/forms/file_manager_form.rb +0 -35
  280. data/app/services/hyrax/collections/migration_service.rb +0 -113
  281. data/app/views/hyrax/base/_form_collections_error.html.erb +0 -1
  282. data/app/views/hyrax/base/_form_in_works_error.html.erb +0 -3
  283. data/app/views/hyrax/base/_form_ordered_members_error.html.erb +0 -3
  284. data/app/views/hyrax/base/_form_visibility_error.html.erb +0 -19
  285. data/app/views/hyrax/users/_user_util_links_extra.html.erb +0 -0
  286. data/lib/hyrax/specs/shared_specs/valkyrie_storage_versions.rb +0 -9
@@ -6,33 +6,35 @@
6
6
  </button>
7
7
  <%= form_tag main_app.hyrax_workflow_action_path(presenter), method: :put do %>
8
8
  <div id="workflow_controls_collapse" class="card-body collapse">
9
- <div class="col-sm-3 workflow-actions">
10
- <h3><%= t('.actions') %></h3>
9
+ <div class="row">
10
+ <div class="col-sm-3 workflow-actions">
11
+ <h3><%= t('.actions') %></h3>
11
12
 
12
- <% presenter.workflow.actions.each do |key, label| %>
13
- <div class="form-check">
14
- <label class="form-check-label">
15
- <%= radio_button_tag 'workflow_action[name]', key, key == 'comment_only', class: 'form-check-input' %>
16
- <%= label %>
17
- </label>
18
- </div>
19
- <% end %>
20
- </div>
21
- <div class="col-sm-9 workflow-comments">
22
- <div class="form-group">
23
- <label for="workflow_action_comment"><%= t('.review_comment') %>:</label>
24
- <textarea class="form-control" name="workflow_action[comment]" id="workflow_action_comment"></textarea>
13
+ <% presenter.workflow.actions.each do |key, label| %>
14
+ <div class="form-check">
15
+ <label class="form-check-label">
16
+ <%= radio_button_tag 'workflow_action[name]', key, key == 'comment_only', class: 'form-check-input' %>
17
+ <%= label %>
18
+ </label>
19
+ </div>
20
+ <% end %>
25
21
  </div>
22
+ <div class="col-sm-9 workflow-comments">
23
+ <div class="form-group">
24
+ <label for="workflow_action_comment"><%= t('.review_comment') %>:</label>
25
+ <textarea class="form-control" name="workflow_action[comment]" id="workflow_action_comment"></textarea>
26
+ </div>
26
27
 
27
- <input class="btn btn-primary" type="submit" value="Submit" />
28
+ <input class="btn btn-primary" type="submit" value="Submit" />
28
29
 
29
- <h4><%= t('.previous_comments') %></h4>
30
- <dl>
31
- <% presenter.workflow.comments.each do |comment| %>
32
- <dt><%= comment.name_of_commentor %></dt>
33
- <dd><%= comment.comment %></dd>
34
- <% end %>
35
- </dl>
30
+ <h4><%= t('.previous_comments') %></h4>
31
+ <dl>
32
+ <% presenter.workflow.comments.each do |comment| %>
33
+ <dt><%= comment.name_of_commentor %></dt>
34
+ <dd><%= comment.comment %></dd>
35
+ <% end %>
36
+ </dl>
37
+ </div>
36
38
  </div>
37
39
  </div>
38
40
  <% end %>
@@ -5,7 +5,7 @@
5
5
  </li>
6
6
  </ul>
7
7
 
8
- <% if !@form.member_presenters.empty? %>
8
+ <% if !@form.member_presenters.blank? %>
9
9
  <div class="row" data-action="file-manager">
10
10
  <div class="col-lg-3" id="file-manager-tools">
11
11
  <h2><%= t('.toolbar') %></h2>
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
- @curation_concern = Wings::ActiveFedoraConverter.convert(resource: @curation_concern) if
3
- @curation_concern.is_a? Hyrax::Resource
2
+ @curation_concern = ::Wings::ActiveFedoraConverter.convert(resource: @curation_concern) if
3
+ @curation_concern.is_a?(Hyrax::Resource) && Object.const_defined?("Wings")
4
4
 
5
- json.extract! @curation_concern, *[:id] + @curation_concern.class.fields.reject { |f| [:has_model].include? f }
5
+ json.extract! @curation_concern, *@curation_concern.class.fields.reject { |f| [:has_model].include? f }
6
+ json.id @curation_concern.id.to_s
6
7
  json.version @curation_concern.try(:etag)
@@ -7,7 +7,7 @@
7
7
  </td>
8
8
  <td>
9
9
  <div class="media">
10
- <%= link_to [main_app, document], "class" => "media-left", "aria-hidden" => "true" do %>
10
+ <%= link_to [main_app, document], "class" => "media-left mr-3", "aria-hidden" => "true" do %>
11
11
  <%= document_presenter(document)&.thumbnail&.thumbnail_tag(
12
12
  { class: "d-none d-md-block file_listing_thumbnail", alt: "#{document.title_or_label} #{t('hyrax.homepage.admin_sets.thumbnail')}" },
13
13
  { suppress_link: true }
@@ -12,7 +12,7 @@
12
12
  <input type="checkbox" name="batch_document_ids[]" id="batch_document_<%= id %>" value="<%= id %>" class="batch_document_selector"
13
13
  data-hasaccess="<%= (can?(:edit, collection_presenter.solr_document)) %>" />
14
14
  <% else %>
15
- <input type="checkbox" class="disabled" disabled=true />
15
+ <input type="checkbox" class="disabled batch_document_selector" disabled=true />
16
16
  <% end %>
17
17
  </td>
18
18
  <td>
@@ -7,7 +7,7 @@
7
7
  </td>
8
8
  <td>
9
9
  <div class="media">
10
- <%= link_to [main_app, document], "class" => "media-left", "aria-hidden" => "true" do %>
10
+ <%= link_to [main_app, document], "class" => "media-left mr-3", "aria-hidden" => "true" do %>
11
11
  <%= document_presenter(document)&.thumbnail&.thumbnail_tag(
12
12
  { class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
13
13
  ) %>
@@ -11,8 +11,8 @@
11
11
  <% if show_sort_and_per_page? && collection_member_sort_fields.many? %>
12
12
  <div class="sort-toggle">
13
13
  <%= form_tag dashboard_collection_path(collection), method: :get, class: 'per_page' do %>
14
- <div class="form-group row form-control-lg">
15
- <fieldset class="col-sm-9">
14
+ <div class="form-group row">
15
+ <fieldset class="col-sm-7 col-lg-8">
16
16
  <legend class="sr-only"><%= t('hyrax.sort_label') %></legend>
17
17
  <%= label_tag(:sort, t(".sort_by")) %>
18
18
  <%= select_tag(:sort, options_from_collection_for_select(collection_member_sort_fields, 'first', lambda {|field| field.last.label}, h(params[:sort]))) %>
@@ -22,7 +22,7 @@
22
22
  <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:per_page, :sort)) %>
23
23
  <button class="btn btn-info"><span class="fa fa-refresh"></span> <%= t('helpers.action.refresh') %></button>
24
24
  </fieldset>
25
- <div class="col-sm-3">
25
+ <div class="col-sm-5 col-lg-4">
26
26
  <%= render 'hyrax/collections/view_type_group' %>
27
27
  </div>
28
28
  </div>
@@ -1,6 +1,6 @@
1
1
  <div id="versioning_display" class="tab-pane">
2
2
  <h2><%= t('.header') %></h2>
3
- <%= simple_form_for [main_app, curation_concern], html: { multipart: true, class: 'nav-safety' } do |f| %>
3
+ <% if @version_list.supports_multiple_versions? %><%= simple_form_for [main_app, curation_concern], html: { multipart: true, class: 'nav-safety' } do |f| %>
4
4
  <div id="fileuploadVersioning">
5
5
  <!-- Redirect browsers with JavaScript disabled to the origin page -->
6
6
  <noscript><input type="hidden" name="redirect" value="<%= main_app.root_path %>"/></noscript>
@@ -45,10 +45,10 @@
45
45
  <%= t('.upload') %>
46
46
  <% end %>
47
47
 
48
- </div> <!-- fileuploadVersioning -->
49
- <% end %>
48
+ </div> <!-- /fileuploadVersioning -->
49
+ <% end %><% end %>
50
50
 
51
- <%= form_for [main_app, curation_concern],
51
+ <% if !@version_list.empty? %><%= form_for [main_app, curation_concern],
52
52
  html: { class: 'edit_file_set_previous_version nav-safety' } do |f| %>
53
53
  <h3><%= t('.restore') %></h3>
54
54
  <% @version_list.each do |version| %>
@@ -68,7 +68,7 @@
68
68
  type: 'submit' do %>
69
69
  <%= t('.save') %>
70
70
  <% end %>
71
- <% end %>
71
+ <% end %><% end %>
72
72
 
73
73
  <%= render 'hyrax/uploads/js_templates_versioning' %>
74
74
 
@@ -2,8 +2,8 @@
2
2
  <div>
3
3
  <h2 class="sr-only"><%= t('hyrax.file_set.show.downloadable_content.heading') %></h2>
4
4
  <audio controls="controls" class="audiojs" style="width:100%" controlsList="nodownload" preload="auto">
5
- <source src="<%= hyrax.download_path(file_set, file: 'ogg') %>" type="audio/ogg" />
6
- <source src="<%= hyrax.download_path(file_set, file: 'mp3') %>" type="audio/mpeg" />
5
+ <source src="<%= hyrax.download_path(file_set, file: 'ogg', mime_type: 'audio/ogg') %>" type="audio/ogg" />
6
+ <source src="<%= hyrax.download_path(file_set, file: 'mp3', mime_type: 'audio/mpeg') %>" type="audio/mpeg" />
7
7
  <%= t('hyrax.file_set.show.downloadable_content.audio_tag_not_supported') %>
8
8
  </audio>
9
9
  <%= link_to t('hyrax.file_set.show.downloadable_content.audio_link'),
@@ -15,8 +15,8 @@
15
15
  <% else %>
16
16
  <div>
17
17
  <audio controls="controls" class="audiojs" style="width:100%" controlsList="nodownload" preload="auto">
18
- <source src="<%= hyrax.download_path(file_set, file: 'ogg') %>" type="audio/ogg" />
19
- <source src="<%= hyrax.download_path(file_set, file: 'mp3') %>" type="audio/mpeg" />
18
+ <source src="<%= hyrax.download_path(file_set, file: 'ogg', mime_type: 'audio/ogg') %>" type="audio/ogg" />
19
+ <source src="<%= hyrax.download_path(file_set, file: 'mp3', mime_type: 'audio/mpeg') %>" type="audio/mpeg" />
20
20
  <%= t('hyrax.file_set.show.downloadable_content.audio_tag_not_supported') %>
21
21
  </audio>
22
22
  </div>
@@ -4,7 +4,7 @@
4
4
  <p /><%= link_to t('hyrax.file_set.show.download'),
5
5
  hyrax.download_path(file_set),
6
6
  id: "file_download",
7
- data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids },
7
+ data: { label: file_set.id.to_s, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids },
8
8
  target: "_new" %>
9
9
  <% end %>
10
10
  </div>
@@ -2,8 +2,8 @@
2
2
  <div>
3
3
  <h2 class="sr-only"><%= t('hyrax.file_set.show.downloadable_content.heading') %></h2>
4
4
  <video controls="controls" class="video-js vjs-default-skin" style="width:100%" data-setup="{}" controlsList="nodownload" preload="auto">
5
- <source src="<%= hyrax.download_path(file_set, file: 'webm') %>" type="video/webm" />
6
- <source src="<%= hyrax.download_path(file_set, file: 'mp4') %>" type="video/mp4" />
5
+ <source src="<%= hyrax.download_path(file_set, file: 'webm', mime_type: 'video/webm') %>" type="video/webm" />
6
+ <source src="<%= hyrax.download_path(file_set, file: 'mp4', mime_type: 'video/mp4') %>" type="video/mp4" />
7
7
  <%= t('hyrax.file_set.show.downloadable_content.video_tag_not_supported') %>
8
8
  </video>
9
9
  <%= link_to t('hyrax.file_set.show.downloadable_content.video_link'),
@@ -11,8 +11,10 @@
11
11
  <%= render 'file_set_title', presenter: @presenter %>
12
12
  </header>
13
13
 
14
- <%# TODO: render 'show_descriptions' See https://github.com/samvera/hyrax/issues/1481 %>
15
- <%= render 'show_details' %>
14
+ <% @presenter.show_partials.each do |partial_path| %>
15
+ <%= render partial_path %>
16
+ <% end %>
17
+
16
18
  <%= render 'hyrax/users/activity_log', events: @presenter.events %>
17
19
  </div><!-- /columns second -->
18
20
  </div> <!-- /.row -->
@@ -22,4 +24,4 @@
22
24
  <span class='hide analytics-event' data-category="file-set-in-collection" data-action="file-set-in-collection-view" data-name="<%= collection_id %>" >
23
25
  <% end %>
24
26
  <span class='hide analytics-event' data-category="file-set-in-work" data-action="file-set-in-work-view" data-name="<%= @presenter.parent.id %>" >
25
- <span class='hide analytics-event' data-category="file-set" data-action="file-set-view" data-name="<%= @presenter.id %>" >
27
+ <span class='hide analytics-event' data-category="file-set" data-action="file-set-view" data-name="<%= @presenter.id %>" >
@@ -23,7 +23,7 @@
23
23
  <ul class="list-inline collection-highlights-list">
24
24
  <li class="list-inline-item">
25
25
  <%= link_to t('hyrax.homepage.admin_sets.link'),
26
- main_app.search_catalog_path(f: { human_readable_type_sim: ["Collection"]}),
26
+ main_app.search_catalog_path(f: { generic_type_sim: ["Collection"]}),
27
27
  class: 'btn btn-secondary' %>
28
28
  </li>
29
29
  </ul>
@@ -7,7 +7,7 @@
7
7
  </label>
8
8
 
9
9
  <div class="input-group mb-sm-auto col-sm-9">
10
- <%= text_field_tag :q, current_search_parameters , class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>
10
+ <%= text_field_tag :q, current_search_parameters , 'aria-label': 'Search', class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>
11
11
  <div class="input-group-append">
12
12
  <button type="submit" class="btn btn-primary" id="search-submit-header">
13
13
  <%= t('hyrax.search.button.html') %>
@@ -1,6 +1,6 @@
1
1
  <% if messages.present? %>
2
2
  <div class="table-responsive">
3
- <table class="table table-striped datatable">
3
+ <table class="table table-striped datatable" data-order='[[0, "desc"]]'>
4
4
  <thead>
5
5
  <tr>
6
6
  <th><%= t('hyrax.mailbox.date') %></th>
@@ -9,7 +9,7 @@
9
9
 
10
10
  <div class="list-group-item">
11
11
  <span class="badge dark-text"><%= number_of_works(user) %></span>
12
- <span class="fa fa-upload" aria-hidden="true"></span> <%= link_to_field('', '', t("hyrax.dashboard.stats.works"), {generic_type: "Work", depositor: user.to_s}) %>
12
+ <span class="fa fa-upload" aria-hidden="true"></span> <%= link_to_works(user) %>
13
13
 
14
14
  <ul class="views-downloads-dashboard list-unstyled">
15
15
  <li><span class="badge badge-optional dark-text"><%= user.total_file_views %></span> <%= t("hyrax.dashboard.stats.file_views").pluralize(user.total_file_views) %></li>
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ mkdir -p /app/samvera/hyrax-webapp/tmp/pids
5
+ rm -f /app/samvera/hyrax-webapp/tmp/pids/*
6
+
7
+ # Copy gems installed in the image to the dev bundle
8
+ mkdir -p /app/bundle/ruby/$RUBY_MAJOR.0
9
+ cp -Rn /usr/local/bundle/* /app/bundle/ruby/$RUBY_MAJOR.0
10
+ bundle install
11
+
12
+ # Run the command
13
+ exec "$@"
@@ -2,34 +2,38 @@ apiVersion: v2
2
2
  name: hyrax
3
3
  description: An open-source, Samvera-powered digital repository system
4
4
  type: application
5
- version: 3.1.0
5
+ version: 3.5.0
6
6
  appVersion: 3.3.0
7
7
  dependencies:
8
8
  - name: fcrepo
9
- version: 0.8.0
9
+ version: 1.0.0
10
10
  repository: oci://ghcr.io/samvera
11
11
  condition: fcrepo.enabled
12
12
  - name: memcached
13
- version: 6.3.13
14
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
13
+ version: 6.6.0
14
+ repository: oci://registry-1.docker.io/bitnamicharts
15
15
  condition: memcached.enabled
16
16
  - name: minio
17
- version: 12.1.14
18
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
17
+ version: 12.8.0
18
+ repository: oci://registry-1.docker.io/bitnamicharts
19
19
  condition: minio.enabled
20
20
  - name: postgresql
21
- version: 12.2.5
22
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
21
+ version: 12.9.0
22
+ repository: oci://registry-1.docker.io/bitnamicharts
23
23
  condition: postgresql.enabled
24
24
  - name: redis
25
- version: 17.8.7
26
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
25
+ version: 17.16.0
26
+ repository: oci://registry-1.docker.io/bitnamicharts
27
27
  condition: redis.enabled
28
28
  - name: solr
29
- version: 7.2.1
30
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
29
+ version: 8.0.0
30
+ repository: oci://registry-1.docker.io/bitnamicharts
31
31
  condition: solr.enabled
32
32
  - name: nginx
33
- version: 13.2.30
34
- repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
33
+ version: 15.2.0
34
+ repository: oci://registry-1.docker.io/bitnamicharts
35
35
  condition: nginx.enabled
36
+ - name: fits
37
+ version: 0.2.0
38
+ repository: https://samvera-labs.github.io/fits-charts
39
+ condition: fits.enabled
@@ -35,28 +35,30 @@ production environments.
35
35
 
36
36
  The chart populates the following environment variables:
37
37
 
38
- | Variable | Description | Condition |
39
- |-------------------|--------------------------------|------------------------|
40
- | DB_PASSWORD | Postgresql password | n/a |
41
- | DB_PORT | Postgresql service port | n/a |
42
- | DB_HOST | Postgresql hostname | n/a |
43
- | DB_USERNAME | Postgresql username | n/a |
44
- | MEMCACHED_HOST | Memcached host | `memcached.enabled` |
45
- | RACK_ENV | app environment ('production') | n/a |
46
- | RAILS_ENV | app environment ('production') | n/a |
47
- | REDIS_HOST | Redis service host | `redis.enabled` |
48
- | FCREPO_BASE_PATH | Fedora Commons root path | n/a |
49
- | FCREPO_HOST | Fedora Commons host | n/a |
50
- | FCREPO_PORT | Fedora Commons port | n/a |
51
- | FCREPO_REST_PATH | Fedora Commons REST endpoint | n/a |
52
- | SKIP_HYRAX_ENGINE_SEED | Flag to load Hyrax engine seed file | n/a |
53
- | SOLR_ADMIN_USER | Solr user for basic auth | n/a |
54
- | SOLR_ADMIN_PASSWORD | Solr password for basic auth | n/a |
55
- | SOLR_COLLECTION_NAME | The name of the solr collection to use | n/a |
38
+ | Variable | Description | Condition |
39
+ |-------------------|--------------------------------|------------------------------------------|
40
+ | CH12N_TOOL | Tool for characterization | `fits.enabled` or `externalFits.enabled` |
41
+ | DB_PASSWORD | Postgresql password | n/a |
42
+ | DB_PORT | Postgresql service port | n/a |
43
+ | DB_HOST | Postgresql hostname | n/a |
44
+ | DB_USERNAME | Postgresql username | n/a |
45
+ | MEMCACHED_HOST | Memcached host | `memcached.enabled` |
46
+ | RACK_ENV | app environment ('production') | n/a |
47
+ | RAILS_ENV | app environment ('production') | n/a |
48
+ | REDIS_HOST | Redis service host | `redis.enabled` |
49
+ | FCREPO_BASE_PATH | Fedora Commons root path | n/a |
50
+ | FCREPO_HOST | Fedora Commons host | n/a |
51
+ | FCREPO_PORT | Fedora Commons port | n/a |
52
+ | FCREPO_REST_PATH | Fedora Commons REST endpoint | n/a |
53
+ | FITS_SERVLET_URL | URL for FITS servlet | `fits.enabled` or `externalFits.enabled` |
54
+ | SKIP_HYRAX_ENGINE_SEED | Flag to load Hyrax engine seed file | n/a |
55
+ | SOLR_ADMIN_USER | Solr user for basic auth | n/a |
56
+ | SOLR_ADMIN_PASSWORD | Solr password for basic auth | n/a |
57
+ | SOLR_COLLECTION_NAME | The name of the solr collection to use | n/a |
56
58
  | SOLR_CONFIGSET_NAME | The name of the solr configset to use for config management tasks | n/a |
57
- | SOLR_HOST | Solr service host | n/a |
58
- | SOLR_PORT | Solr service port | n/a |
59
- | SOLR_URL | Solr service full URL | n/a |
59
+ | SOLR_HOST | Solr service host | n/a |
60
+ | SOLR_PORT | Solr service port | n/a |
61
+ | SOLR_URL | Solr service full URL | n/a |
60
62
 
61
63
  ## With an external SolrCloud
62
64
 
@@ -89,6 +91,17 @@ To use an existing or external `fcrepo` instance, use the chart values:
89
91
  - `fcrepo.enabled`: false
90
92
  - `externalFcrepoHost`: "myfedora.hostname.example.com"
91
93
 
94
+
95
+ # Optional Fits Service
96
+
97
+ Running fits as a servlet will result in much faster fits responses. This is because the loading cost of the
98
+ various Java components far out weighs the processing time of those components.
99
+
100
+ To enable fits as a service:
101
+
102
+ - ``fits.enabled: true` or `externalFits.enabled: true` and specify the
103
+ existing `externalFits.url`
104
+
92
105
  ## For DevOps:
93
106
 
94
107
  For those interested in trying out or contributing to this Chart, it's helpful
@@ -86,6 +86,23 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
86
86
  {{- end }}
87
87
  {{- end -}}
88
88
 
89
+
90
+ {{/*
91
+ Create default fully qualified service names.
92
+ We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
93
+ */}}
94
+ {{- define "hyrax.fits.fullname" -}}
95
+ {{- printf "%s-%s" .Release.Name "fits" | trunc 63 | trimSuffix "-" -}}
96
+ {{- end -}}
97
+
98
+ {{- define "hyrax.fits.host" -}}
99
+ {{- if .Values.fits.enabled }}
100
+ {{- include "hyrax.fits.fullname" . }}
101
+ {{- else }}
102
+ {{- .Values.externalFitsHost | default "NO_FITS_HOST_DEFINED" }}
103
+ {{- end }}
104
+ {{- end -}}
105
+
89
106
  {{- define "hyrax.memcached.fullname" -}}
90
107
  {{- printf "%s-%s" .Release.Name "memcached" | trunc 63 | trimSuffix "-" -}}
91
108
  {{- end -}}
@@ -130,6 +147,18 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
130
147
  {{- end }}
131
148
  {{- end -}}
132
149
 
150
+ {{- define "hyrax.postgresql.port" -}}
151
+ {{- if .Values.postgresql.enabled }}
152
+ {{- .Values.postgresql.containerPorts.postgresql | default 5432 }}
153
+ {{- else }}
154
+ {{- .Values.externalPostgresql.port | default 5432 }}
155
+ {{- end }}
156
+ {{- end -}}
157
+
158
+ {{- define "hyrax.postgresql.url" -}}
159
+ {{- printf "postgresql://%s:%s@%s/%s?pool=5" ( include "hyrax.postgresql.username" . ) ( include "hyrax.postgresql.password" . ) ( include "hyrax.postgresql.host" . ) ( include "hyrax.postgresql.database" . ) -}}
160
+ {{- end -}}
161
+
133
162
  {{- define "hyrax.redis.fullname" -}}
134
163
  {{- printf "%s-%s" .Release.Name "redis" | trunc 63 | trimSuffix "-" -}}
135
164
  {{- end -}}
@@ -172,7 +201,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
172
201
  {{- end -}}
173
202
 
174
203
  {{- define "hyrax.solr.port" -}}
175
- {{- .Values.externalSolrPort | default "8983" }}
204
+ {{- if .Values.solr.enabled }}
205
+ {{- .Values.solr.containerPorts.http | default 8983 }}
206
+ {{- else }}
207
+ {{- .Values.externalSolrPort }}
208
+ {{- end }}
176
209
  {{- end -}}
177
210
 
178
211
  {{- define "hyrax.solr.url" -}}
@@ -8,8 +8,13 @@ metadata:
8
8
  app.kubernetes.io/instance: {{ .Release.Name }}
9
9
  app.kubernetes.io/managed-by: {{ .Release.Service }}
10
10
  data:
11
+ {{- if (or .Values.fits.enabled .Values.externalFits.enabled) }}
12
+ CH12N_TOOL: "fits_servlet"
13
+ {{- else }}
14
+ CH12N_TOOL: "fits"
15
+ {{- end }}
11
16
  DB_HOST: {{ template "hyrax.postgresql.host" . }}
12
- DB_PORT: "5432"
17
+ DB_PORT: {{ include "hyrax.postgresql.port" . | quote }}
13
18
  DB_USERNAME: {{ template "hyrax.postgresql.database" . }}
14
19
  {{- if .Values.memcached.enabled }}
15
20
  MEMCACHED_HOST: {{ template "hyrax.memcached.fullname" . }}
@@ -29,6 +34,11 @@ data:
29
34
  FCREPO_BASE_PATH: {{ .Values.fcrepoBasePathOverride | default (printf "/%s" (include "hyrax.fullname" .)) | quote }}
30
35
  FCREPO_PORT: {{ .Values.fcrepo.servicePort | default 8080 | quote }}
31
36
  FCREPO_REST_PATH: {{ .Values.fcrepo.restPath | default "rest" }}
37
+ {{- if .Values.fits.enabled }}
38
+ FITS_SERVLET_URL: http://{{ template "hyrax.fits.host" . }}:{{ .Values.fits.servicePort | default 8080 }}{{ .Values.fits.subPath | default "/fits" }}
39
+ {{- else if .Values.externalFits.enabled }}
40
+ FITS_SERVLET_URL: {{ .Values.externalFits.url }}
41
+ {{- end }}
32
42
  REDIS_PROVIDER: SIDEKIQ_REDIS_URL
33
43
  {{- if .Values.minio.enabled }}
34
44
  MINIO_ENDPOINT: {{ template "hyrax.minio.fullname" . }}
@@ -38,5 +48,5 @@ data:
38
48
  SOLR_COLLECTION_NAME: {{ template "hyrax.solr.collectionName" . }}
39
49
  SOLR_CONFIGSET_NAME: {{ template "hyrax.fullname" . }}
40
50
  SOLR_HOST: {{ template "hyrax.solr.host" . }}
41
- SOLR_PORT: {{ (include "hyrax.solr.port" .) | quote }}
51
+ SOLR_PORT: {{ include "hyrax.solr.port" . | quote}}
42
52
  SOLR_URL: {{ template "hyrax.solr.url" . }}
@@ -8,7 +8,7 @@ type: Opaque
8
8
  data:
9
9
  SECRET_KEY_BASE: {{ randAlphaNum 20 | b64enc | quote }}
10
10
  DB_PASSWORD: {{ include "hyrax.postgresql.password" . | b64enc }}
11
- DATABASE_URL: {{ printf "postgresql://%s:%s@%s/%s?pool=5" ( include "hyrax.postgresql.username" . ) ( include "hyrax.postgresql.password" . ) ( include "hyrax.postgresql.host" . ) ( include "hyrax.postgresql.database" . ) | b64enc }}
11
+ DATABASE_URL: {{ include "hyrax.postgresql.url" . | b64enc }}
12
12
  {{- if .Values.minio.enabled }}
13
13
  MINIO_ACCESS_KEY: {{ .Values.minio.auth.rootUser | b64enc}}
14
14
  MINIO_SECRET_KEY: {{ .Values.minio.auth.rootPassword | b64enc}}