hyrax 1.1.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1201) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +5 -4
  3. data/.eslintrc +1 -1
  4. data/.fcrepo_wrapper +4 -0
  5. data/.github/CODE_OF_CONDUCT.md +36 -0
  6. data/.github/CONTRIBUTING.md +73 -17
  7. data/.github/PULL_REQUEST_TEMPLATE.md +4 -4
  8. data/.github/SUPPORT.md +3 -0
  9. data/.hound.yml +4 -0
  10. data/.rubocop.yml +57 -21
  11. data/{.rubocop_todo.yml → .rubocop_fixme.yml} +15 -35
  12. data/.solr_wrapper +6 -0
  13. data/.travis.yml +13 -11
  14. data/Gemfile +3 -3
  15. data/LICENSE +205 -15
  16. data/README.md +87 -54
  17. data/Rakefile +0 -0
  18. data/app/actors/hyrax/actors/abstract_actor.rb +79 -12
  19. data/app/actors/hyrax/actors/add_to_work_actor.rb +27 -27
  20. data/app/actors/hyrax/actors/apply_order_actor.rb +21 -21
  21. data/app/actors/hyrax/actors/apply_permission_template_actor.rb +25 -0
  22. data/app/actors/hyrax/actors/assign_representative_actor.rb +8 -6
  23. data/app/actors/hyrax/actors/attach_members_actor.rb +14 -18
  24. data/app/actors/hyrax/actors/base_actor.rb +58 -32
  25. data/app/actors/hyrax/actors/cleanup_file_sets_actor.rb +30 -0
  26. data/app/actors/hyrax/actors/cleanup_trophies_actor.rb +20 -0
  27. data/app/actors/hyrax/actors/collections_membership_actor.rb +35 -0
  28. data/app/actors/hyrax/actors/create_with_files_actor.rb +53 -0
  29. data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +55 -0
  30. data/app/actors/hyrax/actors/default_admin_set_actor.rb +48 -0
  31. data/app/actors/hyrax/actors/environment.rb +21 -0
  32. data/app/actors/hyrax/actors/featured_work_actor.rb +32 -0
  33. data/app/actors/hyrax/actors/file_actor.rb +35 -39
  34. data/app/actors/hyrax/actors/file_set_actor.rb +76 -67
  35. data/app/actors/hyrax/actors/initialize_workflow_actor.rb +6 -4
  36. data/app/actors/hyrax/actors/interpret_visibility_actor.rb +60 -49
  37. data/app/actors/hyrax/actors/model_actor.rb +32 -0
  38. data/app/actors/hyrax/actors/optimistic_lock_validator.rb +7 -5
  39. data/app/actors/hyrax/actors/terminator.rb +18 -0
  40. data/app/actors/hyrax/actors/transactional_request.rb +8 -4
  41. data/app/assets/javascripts/hyrax.js +13 -6
  42. data/app/assets/javascripts/hyrax/admin/admin_set/group_participants.es6 +20 -0
  43. data/app/assets/javascripts/hyrax/admin/admin_set/participants.es6 +13 -2
  44. data/app/assets/javascripts/hyrax/admin/admin_set/registered_users.es6 +31 -0
  45. data/app/assets/javascripts/hyrax/admin/admin_set_controls.es6 +16 -8
  46. data/app/assets/javascripts/hyrax/admin/graphs.es6 +1 -1
  47. data/app/assets/javascripts/hyrax/app.js +52 -29
  48. data/app/assets/javascripts/hyrax/authority_select.es6 +31 -37
  49. data/app/assets/javascripts/hyrax/autocomplete.es6 +13 -7
  50. data/app/assets/javascripts/hyrax/autocomplete/default.es6 +10 -5
  51. data/app/assets/javascripts/hyrax/autocomplete/linked_data.es6 +65 -0
  52. data/app/assets/javascripts/hyrax/batch_select.es6 +11 -0
  53. data/app/assets/javascripts/hyrax/batch_select_all.js +17 -25
  54. data/app/assets/javascripts/hyrax/browse_everything.js +11 -7
  55. data/app/assets/javascripts/hyrax/collections/editor.es6 +11 -0
  56. data/app/assets/javascripts/hyrax/config.js.erb +3 -0
  57. data/app/assets/javascripts/hyrax/editor.es6 +49 -2
  58. data/app/assets/javascripts/hyrax/editor/controlled_vocabulary.es6 +122 -0
  59. data/app/assets/javascripts/hyrax/{fileupload.js.erb → fileupload.js} +0 -5
  60. data/app/assets/javascripts/hyrax/monkey_patch_turbolinks.js.coffee +1 -1
  61. data/app/assets/javascripts/hyrax/notification.es6 +37 -0
  62. data/app/assets/javascripts/hyrax/notifications.es6 +5 -10
  63. data/app/assets/javascripts/hyrax/per_page.es6 +15 -0
  64. data/app/assets/javascripts/hyrax/save_work/save_work_control.es6 +8 -1
  65. data/app/assets/javascripts/hyrax/save_work/visibility_component.es6 +8 -13
  66. data/app/assets/javascripts/hyrax/sorting.js +0 -8
  67. data/app/assets/javascripts/hyrax/tabs.js +3 -1
  68. data/app/assets/javascripts/hyrax/thumbnail_select.es6 +29 -0
  69. data/app/assets/javascripts/hyrax/trophy.js +1 -1
  70. data/app/assets/javascripts/hyrax/uploader.js +1 -5
  71. data/app/assets/stylesheets/hyrax/_batch-edit.scss +8 -4
  72. data/app/assets/stylesheets/hyrax/_buttons.scss +9 -7
  73. data/app/assets/stylesheets/hyrax/_catalog.scss +11 -0
  74. data/app/assets/stylesheets/hyrax/_collections.scss +6 -19
  75. data/app/assets/stylesheets/hyrax/_file-listing.scss +5 -25
  76. data/app/assets/stylesheets/hyrax/_file_manager.scss +1 -0
  77. data/app/assets/stylesheets/hyrax/_footer.scss +5 -0
  78. data/app/assets/stylesheets/hyrax/_forms.scss +25 -1
  79. data/app/assets/stylesheets/hyrax/_header.scss +6 -0
  80. data/app/assets/stylesheets/hyrax/_hyrax.scss +8 -2
  81. data/app/assets/stylesheets/hyrax/_positioning.scss +3 -126
  82. data/app/assets/stylesheets/hyrax/_styles.scss +0 -4
  83. data/app/assets/stylesheets/hyrax/_users.scss +15 -0
  84. data/app/assets/stylesheets/hyrax/_variables.scss +1 -0
  85. data/app/assets/stylesheets/hyrax/_work_editor.scss +17 -0
  86. data/app/assets/stylesheets/hyrax/controlled_vocabulary.scss +7 -0
  87. data/app/assets/stylesheets/hyrax/dashboard.scss +247 -0
  88. data/app/assets/stylesheets/hyrax/sidebar.scss +147 -0
  89. data/app/assets/stylesheets/typeahead.css +64 -0
  90. data/app/authorities/qa/authorities/find_works.rb +11 -2
  91. data/app/controlled_vocabularies/hyrax/controlled_vocabularies/location.rb +13 -0
  92. data/app/controllers/concerns/hyrax/admin/stats_behavior.rb +2 -2
  93. data/app/controllers/concerns/hyrax/admin/users_controller_behavior.rb +11 -1
  94. data/app/controllers/concerns/hyrax/breadcrumbs.rb +1 -1
  95. data/app/controllers/concerns/hyrax/breadcrumbs_for_collections.rb +1 -1
  96. data/app/controllers/concerns/hyrax/breadcrumbs_for_works.rb +26 -14
  97. data/app/controllers/concerns/hyrax/collections.rb +4 -0
  98. data/{lib → app/controllers/concerns}/hyrax/collections/accepts_batches.rb +1 -1
  99. data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +1 -190
  100. data/app/controllers/concerns/hyrax/controller.rb +1 -23
  101. data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +38 -0
  102. data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +37 -0
  103. data/app/controllers/concerns/hyrax/manages_embargoes.rb +18 -0
  104. data/app/controllers/concerns/hyrax/parent_container.rb +2 -2
  105. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +225 -11
  106. data/app/controllers/hyrax/admin/admin_sets_controller.rb +32 -18
  107. data/app/controllers/hyrax/admin/appearances_controller.rb +33 -0
  108. data/app/controllers/hyrax/admin/features_controller.rb +4 -3
  109. data/app/controllers/hyrax/admin/permission_template_accesses_controller.rb +16 -7
  110. data/app/controllers/hyrax/admin/users_controller.rb +1 -1
  111. data/app/controllers/hyrax/admin/workflow_roles_controller.rb +2 -2
  112. data/app/controllers/hyrax/admin/workflows_controller.rb +10 -11
  113. data/app/controllers/hyrax/api/zotero_controller.rb +4 -4
  114. data/app/controllers/hyrax/batch_edits_controller.rb +99 -2
  115. data/app/controllers/hyrax/batch_uploads_controller.rb +92 -2
  116. data/app/controllers/hyrax/citations_controller.rb +2 -2
  117. data/app/controllers/hyrax/collections_controller.rb +26 -0
  118. data/app/controllers/hyrax/contact_form_controller.rb +42 -1
  119. data/app/controllers/hyrax/content_blocks_controller.rb +25 -19
  120. data/app/controllers/hyrax/dashboard/collections_controller.rb +311 -0
  121. data/app/controllers/hyrax/dashboard/profiles_controller.rb +69 -0
  122. data/app/controllers/hyrax/dashboard/works_controller.rb +31 -0
  123. data/app/controllers/hyrax/dashboard_controller.rb +16 -1
  124. data/app/controllers/hyrax/depositors_controller.rb +41 -1
  125. data/app/controllers/hyrax/downloads_controller.rb +83 -1
  126. data/app/controllers/hyrax/embargoes_controller.rb +5 -0
  127. data/app/controllers/hyrax/featured_work_lists_controller.rb +1 -1
  128. data/app/controllers/hyrax/file_sets_controller.rb +236 -1
  129. data/app/controllers/hyrax/fixity_checks_controller.rb +32 -0
  130. data/app/controllers/hyrax/homepage_controller.rb +47 -1
  131. data/app/controllers/hyrax/leases_controller.rb +5 -0
  132. data/app/controllers/hyrax/my/collections_controller.rb +8 -5
  133. data/app/controllers/hyrax/my/highlights_controller.rb +3 -3
  134. data/app/controllers/hyrax/my/shares_controller.rb +3 -3
  135. data/app/controllers/hyrax/my/works_controller.rb +10 -5
  136. data/app/controllers/hyrax/my_controller.rb +79 -2
  137. data/app/controllers/hyrax/{mailbox_controller.rb → notifications_controller.rb} +5 -1
  138. data/app/controllers/hyrax/pages_controller.rb +42 -3
  139. data/app/controllers/hyrax/permissions_controller.rb +30 -1
  140. data/app/controllers/hyrax/single_use_links_controller.rb +46 -1
  141. data/app/controllers/hyrax/single_use_links_viewer_controller.rb +87 -12
  142. data/app/controllers/hyrax/static_controller.rb +0 -1
  143. data/app/controllers/hyrax/stats_controller.rb +2 -2
  144. data/app/controllers/hyrax/transfers_controller.rb +79 -1
  145. data/app/controllers/hyrax/uploads_controller.rb +12 -1
  146. data/app/controllers/hyrax/users_controller.rb +67 -1
  147. data/app/controllers/hyrax/workflow_actions_controller.rb +15 -9
  148. data/app/forms/hyrax/forms/admin/appearance.rb +139 -0
  149. data/app/forms/hyrax/forms/admin_set_form.rb +12 -6
  150. data/app/forms/hyrax/forms/batch_edit_form.rb +22 -21
  151. data/app/forms/hyrax/forms/collection_form.rb +50 -11
  152. data/app/forms/hyrax/forms/file_set_edit_form.rb +2 -2
  153. data/app/forms/hyrax/forms/permission_template_form.rb +2 -8
  154. data/app/forms/hyrax/forms/work_form.rb +46 -9
  155. data/app/forms/hyrax/forms/workflow_action_form.rb +2 -1
  156. data/app/forms/hyrax/forms/workflow_responsibility_form.rb +0 -6
  157. data/app/helpers/hyrax/ability_helper.rb +2 -2
  158. data/app/helpers/hyrax/batch_edits_helper.rb +16 -0
  159. data/app/helpers/hyrax/citations_behaviors/formatters/chicago_formatter.rb +14 -22
  160. data/app/helpers/hyrax/citations_behaviors/formatters/open_url_formatter.rb +17 -21
  161. data/app/helpers/hyrax/citations_behaviors/publication_behavior.rb +4 -3
  162. data/app/helpers/hyrax/citations_behaviors/title_behavior.rb +1 -1
  163. data/app/helpers/hyrax/collections_helper.rb +12 -4
  164. data/app/helpers/hyrax/content_block_helper_behavior.rb +5 -41
  165. data/app/helpers/hyrax/dashboard_helper_behavior.rb +0 -41
  166. data/app/helpers/hyrax/file_set_helper.rb +2 -0
  167. data/app/helpers/hyrax/hyrax_helper_behavior.rb +20 -7
  168. data/app/helpers/hyrax/trophy_helper.rb +5 -3
  169. data/app/indexers/concerns/hyrax/indexes_basic_metadata.rb +9 -0
  170. data/app/indexers/concerns/hyrax/indexes_linked_metadata.rb +9 -0
  171. data/app/indexers/hyrax/admin_set_indexer.rb +0 -1
  172. data/app/indexers/hyrax/basic_metadata_indexer.rb +57 -0
  173. data/app/indexers/hyrax/collection_indexer.rb +4 -1
  174. data/app/indexers/hyrax/collection_with_basic_metadata_indexer.rb +5 -0
  175. data/app/indexers/hyrax/deep_indexing_service.rb +102 -0
  176. data/app/indexers/hyrax/file_set_indexer.rb +19 -19
  177. data/app/indexers/hyrax/work_indexer.rb +7 -6
  178. data/app/inputs/controlled_vocabulary_input.rb +87 -0
  179. data/app/inputs/multi_value_select_input.rb +2 -0
  180. data/app/jobs/attach_files_to_work_job.rb +25 -21
  181. data/app/jobs/batch_create_job.rb +1 -1
  182. data/app/jobs/characterize_job.rb +7 -5
  183. data/app/jobs/create_derivatives_job.rb +1 -1
  184. data/app/jobs/create_work_job.rb +7 -5
  185. data/app/jobs/event_job.rb +4 -5
  186. data/app/jobs/fixity_check_job.rb +63 -0
  187. data/app/jobs/hyrax/application_job.rb +7 -0
  188. data/app/jobs/hyrax/grant_edit_job.rb +14 -0
  189. data/app/jobs/hyrax/grant_edit_to_members_job.rb +24 -0
  190. data/app/jobs/hyrax/grant_read_job.rb +14 -0
  191. data/app/jobs/hyrax/grant_read_to_members_job.rb +24 -0
  192. data/app/jobs/hyrax/revoke_edit_from_members_job.rb +23 -0
  193. data/app/jobs/hyrax/revoke_edit_job.rb +14 -0
  194. data/app/jobs/import_export_job.rb +31 -0
  195. data/app/jobs/import_url_job.rb +27 -23
  196. data/app/jobs/ingest_job.rb +18 -0
  197. data/app/jobs/ingest_local_file_job.rb +1 -1
  198. data/app/jobs/inherit_permissions_job.rb +1 -1
  199. data/app/jobs/resolrize_job.rb +1 -1
  200. data/app/jobs/visibility_copy_job.rb +20 -11
  201. data/app/models/admin_set.rb +109 -3
  202. data/app/models/batch_upload_item.rb +3 -1
  203. data/app/models/checksum_audit_log.rb +59 -12
  204. data/app/models/concerns/hyrax/ability.rb +61 -8
  205. data/app/models/concerns/hyrax/basic_metadata.rb +26 -57
  206. data/app/models/concerns/hyrax/collection_behavior.rb +9 -9
  207. data/app/models/concerns/hyrax/{required_metadata.rb → core_metadata.rb} +3 -1
  208. data/app/models/concerns/hyrax/file_set/belongs_to_works.rb +2 -2
  209. data/app/models/concerns/hyrax/file_set/derivatives.rb +1 -1
  210. data/app/models/concerns/hyrax/file_set/indexing.rb +0 -1
  211. data/app/models/concerns/hyrax/file_set_behavior.rb +2 -2
  212. data/app/models/concerns/hyrax/nested_works.rb +1 -1
  213. data/app/models/concerns/hyrax/proxy_deposit.rb +1 -1
  214. data/app/models/concerns/hyrax/solr_document/metadata.rb +88 -0
  215. data/app/models/concerns/hyrax/solr_document_behavior.rb +9 -151
  216. data/app/models/concerns/hyrax/user.rb +16 -9
  217. data/app/models/concerns/hyrax/with_file_sets.rb +0 -25
  218. data/app/models/concerns/hyrax/work_behavior.rb +3 -4
  219. data/app/models/content_block.rb +102 -1
  220. data/app/models/featured_work_list.rb +7 -3
  221. data/app/models/hyrax/operation.rb +6 -4
  222. data/app/models/hyrax/permission_template.rb +2 -2
  223. data/app/models/hyrax/permission_template_access.rb +26 -1
  224. data/app/models/hyrax/uploaded_file.rb +2 -0
  225. data/app/models/job_io_wrapper.rb +105 -0
  226. data/app/models/proxy_deposit_request.rb +16 -12
  227. data/app/models/single_use_link.rb +1 -1
  228. data/app/models/sipity/method.rb +11 -0
  229. data/app/presenters/hyrax/admin/users_presenter.rb +1 -1
  230. data/app/presenters/hyrax/admin_set_options_presenter.rb +7 -2
  231. data/app/presenters/hyrax/admin_stats_presenter.rb +21 -13
  232. data/app/presenters/hyrax/characterization_behavior.rb +1 -1
  233. data/app/presenters/hyrax/collection_options_presenter.rb +1 -1
  234. data/app/presenters/hyrax/collection_presenter.rb +4 -3
  235. data/app/presenters/hyrax/dashboard/user_presenter.rb +60 -0
  236. data/app/presenters/hyrax/embargo_presenter.rb +1 -1
  237. data/app/presenters/hyrax/file_set_presenter.rb +12 -17
  238. data/app/presenters/hyrax/fixity_status_presenter.rb +89 -0
  239. data/app/presenters/hyrax/homepage_presenter.rb +15 -3
  240. data/app/presenters/hyrax/lease_presenter.rb +1 -1
  241. data/app/presenters/hyrax/member_presenter_factory.rb +3 -1
  242. data/app/presenters/hyrax/menu_presenter.rb +31 -7
  243. data/app/presenters/hyrax/permission_badge.rb +12 -14
  244. data/app/presenters/hyrax/presenter_factory.rb +25 -6
  245. data/app/presenters/hyrax/presenter_renderer.rb +1 -1
  246. data/app/presenters/hyrax/select_type_presenter.rb +16 -0
  247. data/app/presenters/hyrax/transfers_presenter.rb +37 -0
  248. data/app/presenters/hyrax/trophy_presenter.rb +1 -5
  249. data/app/presenters/hyrax/twitter_presenter.rb +18 -0
  250. data/app/presenters/hyrax/work_show_presenter.rb +25 -15
  251. data/app/presenters/hyrax/workflow_presenter.rb +7 -0
  252. data/app/renderers/hyrax/renderers/attribute_renderer.rb +2 -2
  253. data/app/renderers/hyrax/renderers/faceted_attribute_renderer.rb +1 -1
  254. data/app/renderers/hyrax/renderers/{rights_attribute_renderer.rb → license_attribute_renderer.rb} +4 -6
  255. data/app/search_builders/hyrax/README.md +3 -3
  256. data/app/search_builders/hyrax/admin_set_search_builder.rb +3 -21
  257. data/app/search_builders/hyrax/collection_member_search_builder.rb +9 -1
  258. data/app/search_builders/hyrax/collection_search_builder.rb +1 -25
  259. data/app/search_builders/hyrax/deposit_search_builder.rb +26 -0
  260. data/app/search_builders/hyrax/filter_by_type.rb +1 -3
  261. data/app/search_builders/hyrax/member_with_files_search_builder.rb +1 -1
  262. data/app/search_builders/hyrax/my/collections_search_builder.rb +8 -0
  263. data/app/search_builders/hyrax/{find_works_search_builder.rb → my/find_works_search_builder.rb} +2 -3
  264. data/app/search_builders/hyrax/{my_highlights_search_builder.rb → my/highlights_search_builder.rb} +2 -2
  265. data/app/search_builders/hyrax/my/search_builder.rb +21 -0
  266. data/app/search_builders/hyrax/{my_search_builder_behavior.rb → my/search_builder_behavior.rb} +1 -1
  267. data/app/search_builders/hyrax/{my_shares_search_builder.rb → my/shares_search_builder.rb} +3 -3
  268. data/app/search_builders/hyrax/{my_works_search_builder.rb → my/works_search_builder.rb} +6 -2
  269. data/app/search_builders/hyrax/parent_collection_search_builder.rb +12 -0
  270. data/app/search_builders/hyrax/search_builder.rb +0 -8
  271. data/app/search_builders/hyrax/search_filters.rb +11 -5
  272. data/app/search_builders/hyrax/single_admin_set_search_builder.rb +4 -2
  273. data/app/search_builders/hyrax/works_search_builder.rb +6 -1
  274. data/app/services/hyrax/admin_set_create_service.rb +37 -12
  275. data/app/services/hyrax/admin_set_service.rb +3 -2
  276. data/app/services/hyrax/analytics.rb +1 -1
  277. data/app/services/hyrax/collection_thumbnail_path_service.rb +1 -0
  278. data/{lib → app/services}/hyrax/collections/search_service.rb +1 -1
  279. data/app/services/hyrax/collections_service.rb +2 -2
  280. data/app/services/hyrax/curation_concern.rb +39 -7
  281. data/app/services/hyrax/default_middleware_stack.rb +27 -0
  282. data/app/services/hyrax/file_set_csv_service.rb +1 -1
  283. data/app/services/hyrax/file_set_derivatives_service.rb +6 -1
  284. data/app/services/hyrax/file_set_fixity_check_service.rb +122 -0
  285. data/app/services/hyrax/fixity_check_failure_service.rb +25 -0
  286. data/app/services/hyrax/form_metadata_service.rb +9 -3
  287. data/app/services/hyrax/lock_manager.rb +1 -14
  288. data/app/services/hyrax/microdata.rb +44 -13
  289. data/app/services/hyrax/noid.rb +0 -5
  290. data/app/services/hyrax/qa_select_service.rb +1 -1
  291. data/app/services/hyrax/quick_classification_query.rb +2 -2
  292. data/app/services/hyrax/repository_fixity_check_service.rb +12 -0
  293. data/app/services/hyrax/resource_types_service.rb +4 -1
  294. data/app/services/hyrax/statistics/depositors/summary.rb +9 -1
  295. data/app/services/hyrax/statistics/system_stats.rb +9 -0
  296. data/app/services/hyrax/statistics/term_query.rb +7 -0
  297. data/app/services/hyrax/statistics/works/count.rb +11 -0
  298. data/app/services/hyrax/thumbnail_path_service.rb +1 -1
  299. data/app/services/hyrax/user_stat_importer.rb +20 -18
  300. data/app/services/hyrax/workflow/abstract_notification.rb +1 -3
  301. data/app/services/hyrax/workflow/changes_required_notification.rb +1 -3
  302. data/app/services/hyrax/workflow/deposited_notification.rb +1 -3
  303. data/app/services/hyrax/workflow/grant_edit_to_depositor.rb +5 -0
  304. data/app/services/hyrax/workflow/grant_read_to_depositor.rb +3 -0
  305. data/app/services/hyrax/workflow/notification_service.rb +12 -4
  306. data/app/services/hyrax/workflow/pending_review_notification.rb +1 -3
  307. data/app/services/hyrax/workflow/permission_generator.rb +26 -2
  308. data/app/services/hyrax/workflow/permission_query.rb +21 -24
  309. data/app/services/hyrax/workflow/revoke_edit_from_depositor.rb +3 -0
  310. data/app/services/hyrax/workflow/workflow_action_service.rb +3 -3
  311. data/app/services/hyrax/working_directory.rb +3 -0
  312. data/app/uploaders/hyrax/avatar_uploader.rb +1 -1
  313. data/app/views/_flash_msg.html.erb +1 -1
  314. data/app/views/_masthead.html.erb +0 -2
  315. data/app/views/_user_util_links.html.erb +7 -10
  316. data/app/views/catalog/_document.html.erb +1 -3
  317. data/app/views/catalog/_index_list_default.html.erb +2 -1
  318. data/app/views/catalog/_search_form.html.erb +5 -5
  319. data/app/views/catalog/_thumbnail_list_default.html.erb +1 -2
  320. data/app/views/collections/edit_fields/_based_near.html.erb +8 -0
  321. data/app/views/hyrax/admin/admin_sets/_form.html.erb +3 -1
  322. data/app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb +12 -3
  323. data/app/views/hyrax/admin/admin_sets/_show_document_list.html.erb +1 -1
  324. data/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb +2 -2
  325. data/app/views/hyrax/admin/admin_sets/edit.html.erb +1 -1
  326. data/app/views/hyrax/admin/admin_sets/index.html.erb +8 -9
  327. data/app/views/hyrax/admin/admin_sets/index.json.jbuilder +5 -0
  328. data/app/views/hyrax/admin/admin_sets/new.html.erb +1 -1
  329. data/app/views/hyrax/admin/admin_sets/show.html.erb +22 -16
  330. data/app/views/hyrax/admin/appearances/show.html.erb +16 -0
  331. data/app/views/hyrax/admin/features/index.html.erb +5 -5
  332. data/app/views/hyrax/admin/stats/_deposits.html.erb +1 -2
  333. data/app/views/hyrax/admin/stats/_new_users.html.erb +1 -2
  334. data/app/views/hyrax/admin/stats/_works.html.erb +6 -6
  335. data/app/views/hyrax/admin/users/index.html.erb +3 -4
  336. data/app/views/hyrax/admin/workflow_roles/index.html.erb +58 -39
  337. data/app/views/hyrax/admin/workflows/index.html.erb +1 -1
  338. data/app/views/hyrax/base/_attribute_rows.html.erb +2 -1
  339. data/app/views/hyrax/base/_attributes.html.erb +1 -1
  340. data/app/views/hyrax/base/_form.html.erb +4 -3
  341. data/app/views/hyrax/base/_form_files.html.erb +2 -2
  342. data/app/views/hyrax/base/_form_member_of_collections.html.erb +1 -0
  343. data/app/views/hyrax/base/_form_metadata.html.erb +15 -15
  344. data/app/views/hyrax/base/_form_permission_under_embargo.html.erb +5 -4
  345. data/app/views/hyrax/base/_form_permission_under_lease.html.erb +3 -4
  346. data/app/views/hyrax/base/_form_progress.html.erb +6 -3
  347. data/app/views/hyrax/base/_form_share.html.erb +6 -6
  348. data/app/views/hyrax/base/_form_visibility_component.html.erb +9 -1
  349. data/app/views/hyrax/base/_guts4form.html.erb +39 -37
  350. data/app/views/hyrax/base/_metadata.html.erb +1 -1
  351. data/app/views/hyrax/base/_relationships_parent_rows.html.erb +8 -20
  352. data/app/views/hyrax/base/_work_title.erb +3 -1
  353. data/app/views/hyrax/base/edit.html.erb +1 -1
  354. data/app/views/hyrax/base/show.html.erb +5 -3
  355. data/app/views/hyrax/base/show.json.jbuilder +1 -1
  356. data/app/views/hyrax/base/unavailable.html.erb +3 -2
  357. data/app/views/hyrax/batch_edits/edit.html.erb +1 -1
  358. data/app/views/{batch_select → hyrax/batch_select}/_add_button.html.erb +0 -0
  359. data/app/views/hyrax/batch_uploads/_form.html.erb +2 -3
  360. data/app/views/hyrax/citations/work.html.erb +0 -2
  361. data/app/views/hyrax/collections/_collection_description.erb +1 -1
  362. data/app/views/hyrax/{my/_index_partials → collections}/_default_group.html.erb +4 -4
  363. data/app/views/hyrax/collections/_document_list.html.erb +1 -1
  364. data/app/views/hyrax/{my/_index_partials → collections}/_list_collections.html.erb +1 -1
  365. data/app/views/hyrax/collections/_list_works.html.erb +36 -0
  366. data/app/views/hyrax/collections/_media_display.html.erb +8 -1
  367. data/app/views/hyrax/collections/_search_form.html.erb +1 -1
  368. data/app/views/hyrax/collections/_show_document_list.html.erb +0 -3
  369. data/app/views/hyrax/collections/_show_document_list_row.html.erb +0 -5
  370. data/app/views/hyrax/collections/_sort_and_per_page.html.erb +0 -10
  371. data/app/views/hyrax/collections/show.html.erb +2 -5
  372. data/app/views/hyrax/content_blocks/_form.html.erb +63 -0
  373. data/app/views/hyrax/content_blocks/edit.html.erb +9 -0
  374. data/app/views/hyrax/content_blocks/templates/agreement.html.erb +44 -0
  375. data/app/views/hyrax/content_blocks/templates/terms.html.erb +62 -0
  376. data/app/views/hyrax/{admin/_collections.html.erb → dashboard/_admin_sets.html.erb} +3 -5
  377. data/app/views/hyrax/dashboard/_index_partials/_transfers.html.erb +3 -3
  378. data/app/views/hyrax/dashboard/_sidebar.html.erb +19 -0
  379. data/app/views/hyrax/{collections → dashboard/collections}/_batch_edits_actions.html.erb +0 -0
  380. data/app/views/hyrax/dashboard/collections/_bookmark_control.html.erb +23 -0
  381. data/app/views/hyrax/dashboard/collections/_button_create_collection.html.erb +1 -0
  382. data/app/views/hyrax/{collections → dashboard/collections}/_button_for_remove_selected_from_collection.html.erb +1 -1
  383. data/app/views/hyrax/{collections → dashboard/collections}/_button_for_update_collection.html.erb +1 -1
  384. data/app/views/hyrax/{collections → dashboard/collections}/_button_remove_from_collection.html.erb +1 -1
  385. data/app/views/hyrax/dashboard/collections/_document_list.html.erb +13 -0
  386. data/app/views/hyrax/{collections → dashboard/collections}/_edit_actions.html.erb +3 -2
  387. data/app/views/hyrax/dashboard/collections/_form.html.erb +86 -0
  388. data/app/views/hyrax/dashboard/collections/_form_default_group.html.erb +25 -0
  389. data/app/views/hyrax/{collections → dashboard/collections}/_form_for_select_collection.html.erb +5 -5
  390. data/app/views/hyrax/{collections → dashboard/collections}/_form_permission.html.erb +0 -0
  391. data/app/views/hyrax/dashboard/collections/_form_share.html.erb +90 -0
  392. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +45 -0
  393. data/app/views/hyrax/dashboard/collections/_list_works.html.erb +40 -0
  394. data/app/views/hyrax/{collections → dashboard/collections}/_show_actions.html.erb +4 -3
  395. data/app/views/hyrax/dashboard/collections/_show_descriptions.html.erb +7 -0
  396. data/app/views/hyrax/dashboard/collections/_show_document_list.html.erb +17 -0
  397. data/app/views/hyrax/{collections → dashboard/collections}/_show_document_list_menu.html.erb +1 -1
  398. data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +49 -0
  399. data/app/views/hyrax/dashboard/collections/_show_fields.html.erb +0 -0
  400. data/app/views/hyrax/{collections → dashboard/collections}/_single_item_action_fields.html.erb +0 -0
  401. data/app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb +32 -0
  402. data/app/views/hyrax/{collections → dashboard/collections}/_work_action_menu.html.erb +0 -0
  403. data/app/views/hyrax/dashboard/collections/edit.html.erb +35 -0
  404. data/app/views/hyrax/{collections → dashboard/collections}/edit_fields/_description.html.erb +0 -0
  405. data/app/views/hyrax/dashboard/collections/new.html.erb +11 -0
  406. data/app/views/hyrax/dashboard/collections/show.html.erb +36 -0
  407. data/app/views/hyrax/{users → dashboard/profiles}/_edit_primary.html.erb +3 -8
  408. data/app/views/hyrax/{users → dashboard/profiles}/_edit_secondary.html.erb +0 -0
  409. data/app/views/hyrax/{users → dashboard/profiles}/_trophy_edit.html.erb +0 -0
  410. data/app/views/hyrax/{users → dashboard/profiles}/_zotero.html.erb +0 -0
  411. data/app/views/hyrax/dashboard/profiles/edit.html.erb +14 -0
  412. data/app/views/hyrax/dashboard/profiles/show.html.erb +22 -0
  413. data/app/views/hyrax/{admin/show.html.erb → dashboard/show_admin.html.erb} +1 -1
  414. data/app/views/hyrax/dashboard/{_index_partials/_contents.html.erb → show_user.html.erb} +14 -10
  415. data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +27 -0
  416. data/app/views/hyrax/dashboard/sidebar/_configuration.html.erb +31 -0
  417. data/app/views/hyrax/dashboard/sidebar/_repository_content.html.erb +17 -0
  418. data/app/views/hyrax/dashboard/sidebar/_tasks.html.erb +12 -0
  419. data/app/views/hyrax/dashboard/works/_default_group.html.erb +19 -0
  420. data/app/views/hyrax/{my/_index_partials → dashboard/works}/_list_works.html.erb +0 -6
  421. data/app/views/hyrax/embargoes/_embargo_history.html.erb +8 -0
  422. data/app/views/hyrax/embargoes/_list_active_embargoes.html.erb +18 -0
  423. data/app/views/hyrax/embargoes/_list_deactivated_embargoes.html.erb +4 -0
  424. data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +53 -0
  425. data/app/views/hyrax/embargoes/_table_headers.html.erb +5 -0
  426. data/app/views/hyrax/embargoes/edit.html.erb +45 -0
  427. data/app/views/hyrax/embargoes/index.html.erb +25 -0
  428. data/app/views/hyrax/file_sets/_actions.html.erb +1 -2
  429. data/app/views/hyrax/file_sets/_extra_fields_modal.html.erb +1 -1
  430. data/app/views/hyrax/file_sets/_file_set_title.erb +9 -0
  431. data/app/views/hyrax/file_sets/_permission_form.html.erb +2 -2
  432. data/app/views/hyrax/file_sets/_show_characterization_details.html.erb +1 -1
  433. data/app/views/hyrax/file_sets/_show_details.html.erb +2 -2
  434. data/app/views/hyrax/file_sets/media_display/_image.html.erb +1 -2
  435. data/app/views/hyrax/file_sets/show.html.erb +2 -4
  436. data/app/views/hyrax/homepage/_announcement.html.erb +2 -2
  437. data/app/views/hyrax/homepage/_explore_collections.html.erb +8 -7
  438. data/app/views/hyrax/homepage/_featured_researcher.html.erb +5 -7
  439. data/app/views/hyrax/homepage/_home_content.html.erb +14 -18
  440. data/app/views/hyrax/homepage/_marketing.html.erb +2 -3
  441. data/app/views/hyrax/homepage/index.html.erb +2 -2
  442. data/app/views/hyrax/leases/_lease_history.html.erb +8 -0
  443. data/app/views/hyrax/leases/_list_active_leases.html.erb +18 -0
  444. data/app/views/hyrax/leases/_list_deactivated_leases.html.erb +4 -0
  445. data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +53 -0
  446. data/app/views/hyrax/leases/_table_headers.html.erb +5 -0
  447. data/app/views/hyrax/leases/edit.html.erb +45 -0
  448. data/app/views/hyrax/leases/index.html.erb +24 -0
  449. data/app/views/hyrax/my/_collection_action_menu.html.erb +3 -3
  450. data/app/views/hyrax/my/_constraints.html.erb +11 -9
  451. data/app/views/hyrax/my/_document_list.html.erb +1 -1
  452. data/app/views/hyrax/my/_facet_layout.html.erb +6 -11
  453. data/app/views/hyrax/my/_facet_limit.html.erb +5 -1
  454. data/app/views/hyrax/my/_scripts.js.erb +0 -5
  455. data/app/views/hyrax/my/_search_form.html.erb +14 -0
  456. data/app/views/hyrax/my/_search_header.html.erb +25 -1
  457. data/app/views/hyrax/my/_sort_and_per_page.html.erb +1 -27
  458. data/app/views/hyrax/my/_work_action_menu.html.erb +1 -1
  459. data/app/views/hyrax/my/collections/_default_group.html.erb +18 -0
  460. data/app/views/hyrax/my/collections/_facets.html.erb +7 -0
  461. data/app/views/hyrax/my/collections/_list_collections.html.erb +43 -0
  462. data/app/views/hyrax/my/collections/_tabs.html.erb +9 -0
  463. data/app/views/hyrax/my/collections/index.html.erb +38 -0
  464. data/app/views/hyrax/my/index.html.erb +18 -27
  465. data/app/views/hyrax/my/works/_default_group.html.erb +20 -0
  466. data/app/views/hyrax/my/works/_facets.html.erb +7 -0
  467. data/app/views/hyrax/my/works/_list_works.html.erb +40 -0
  468. data/app/views/hyrax/my/works/_tabs.html.erb +9 -0
  469. data/app/views/hyrax/my/works/index.html.erb +62 -0
  470. data/app/views/hyrax/notifications/_notifications.html.erb +37 -0
  471. data/app/views/hyrax/notifications/index.html.erb +15 -0
  472. data/app/views/hyrax/pages/_form.html.erb +82 -0
  473. data/app/views/hyrax/pages/edit.html.erb +9 -0
  474. data/app/views/hyrax/pages/show.html.erb +3 -1
  475. data/app/views/hyrax/permissions/confirm_access.html.erb +1 -1
  476. data/app/views/hyrax/stats/file.html.erb +1 -1
  477. data/app/views/hyrax/stats/work.html.erb +1 -1
  478. data/app/views/hyrax/transfers/_received.html.erb +9 -11
  479. data/app/views/hyrax/transfers/_sent.html.erb +7 -9
  480. data/app/views/hyrax/transfers/index.html.erb +27 -5
  481. data/app/views/hyrax/transfers/new.html.erb +9 -3
  482. data/app/views/hyrax/uploads/_js_templates.html.erb +4 -3
  483. data/app/views/hyrax/users/_activity_log.html.erb +7 -2
  484. data/app/views/hyrax/users/_left_sidebar.html.erb +1 -1
  485. data/app/views/hyrax/users/_notify_number.html.erb +8 -3
  486. data/app/views/hyrax/users/_profile_tabs.html.erb +1 -1
  487. data/app/views/hyrax/users/_user.html.erb +1 -5
  488. data/app/views/hyrax/users/_user_row.html.erb +3 -3
  489. data/app/views/layouts/_head_tag_content.html.erb +1 -1
  490. data/app/views/layouts/dashboard.html.erb +34 -0
  491. data/app/views/layouts/hyrax.html.erb +13 -34
  492. data/app/views/records/edit_fields/_based_near.html.erb +5 -1
  493. data/app/views/records/edit_fields/{_rights.html.erb → _license.html.erb} +1 -1
  494. data/app/views/records/edit_fields/_rights_statement.html.erb +5 -0
  495. data/app/views/shared/_appearance_styles.html.erb +59 -0
  496. data/app/views/shared/_citations.html.erb +5 -5
  497. data/app/views/shared/_footer.html.erb +1 -1
  498. data/app/views/shared/_select_work_type_modal.html.erb +2 -2
  499. data/artifacts/entity-relationship-diagram.dot +76 -0
  500. data/artifacts/entity-relationship-diagram.pdf +0 -0
  501. data/config/brakeman.ignore +105 -0
  502. data/config/features.rb +4 -0
  503. data/config/i18n-tasks.yml +127 -0
  504. data/config/initializers/hyrax_callbacks.rb +5 -6
  505. data/config/locales/hyrax.de.yml +865 -0
  506. data/config/locales/hyrax.en.yml +224 -102
  507. data/config/locales/hyrax.es.yml +649 -526
  508. data/config/locales/hyrax.fr.yml +865 -0
  509. data/config/locales/hyrax.it.yml +865 -0
  510. data/config/locales/hyrax.pt-BR.yml +865 -0
  511. data/config/locales/hyrax.zh.yml +627 -497
  512. data/config/locales/simple_form.de.yml +10 -0
  513. data/config/locales/simple_form.es.yml +10 -0
  514. data/config/locales/simple_form.fr.yml +10 -0
  515. data/config/locales/simple_form.it.yml +10 -0
  516. data/config/locales/simple_form.pt-BR.yml +10 -0
  517. data/config/locales/simple_form.zh.yml +10 -0
  518. data/config/routes.rb +69 -28
  519. data/db/migrate/20170307142607_tidy_up_because_of_bad_exception.rb +1 -1
  520. data/db/migrate/20170504192714_change_checksum_audit_log.rb +18 -0
  521. data/db/migrate/20170621201939_create_job_io_wrappers.rb +15 -0
  522. data/hyrax.gemspec +23 -27
  523. data/lib/generators/hyrax/assets_generator.rb +1 -0
  524. data/lib/generators/hyrax/clamav_generator.rb +1 -0
  525. data/lib/generators/hyrax/config_generator.rb +6 -0
  526. data/lib/generators/hyrax/install_generator.rb +0 -12
  527. data/lib/generators/hyrax/models_generator.rb +2 -0
  528. data/lib/generators/hyrax/templates/app/models/collection.rb +1 -0
  529. data/lib/generators/hyrax/templates/catalog_controller.rb +4 -4
  530. data/lib/generators/hyrax/templates/config/hyrax.rb +23 -33
  531. data/lib/generators/hyrax/templates/config/locales/hyrax.de.yml +56 -0
  532. data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +3 -3
  533. data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +9 -8
  534. data/lib/generators/hyrax/templates/config/locales/hyrax.fr.yml +56 -0
  535. data/lib/generators/hyrax/templates/config/locales/hyrax.it.yml +56 -0
  536. data/lib/generators/hyrax/templates/config/locales/hyrax.pt-BR.yml +56 -0
  537. data/lib/generators/hyrax/templates/config/locales/hyrax.zh.yml +9 -8
  538. data/lib/generators/hyrax/work/templates/controller.rb.erb +3 -0
  539. data/lib/generators/hyrax/work/templates/feature_spec.rb.erb +1 -1
  540. data/lib/generators/hyrax/work/templates/indexer.rb.erb +19 -0
  541. data/lib/generators/hyrax/work/templates/locale.de.yml.erb +8 -0
  542. data/lib/generators/hyrax/work/templates/locale.fr.yml.erb +8 -0
  543. data/lib/generators/hyrax/work/templates/locale.it.yml.erb +8 -0
  544. data/lib/generators/hyrax/work/templates/locale.pt-BR.yml.erb +8 -0
  545. data/lib/generators/hyrax/work/templates/model.rb.erb +7 -2
  546. data/lib/generators/hyrax/work/templates/presenter.rb.erb +6 -0
  547. data/lib/generators/hyrax/work/templates/presenter_spec.rb.erb +9 -0
  548. data/lib/generators/hyrax/work/work_generator.rb +25 -10
  549. data/lib/hyrax.rb +0 -1
  550. data/lib/hyrax/arkivo/actor.rb +14 -5
  551. data/lib/hyrax/arkivo/create_subscription_job.rb +1 -1
  552. data/lib/hyrax/arkivo/schema_validator.rb +1 -1
  553. data/lib/hyrax/configuration.rb +58 -100
  554. data/lib/hyrax/controller_resource.rb +1 -1
  555. data/lib/hyrax/engine.rb +7 -4
  556. data/lib/hyrax/rails/routes.rb +2 -18
  557. data/lib/hyrax/resource_sync/capability_list_writer.rb +3 -0
  558. data/lib/hyrax/resource_sync/change_list_writer.rb +14 -2
  559. data/lib/hyrax/role_registry.rb +5 -0
  560. data/lib/hyrax/version.rb +1 -1
  561. data/lib/tasks/default_admin_set.rake +12 -1
  562. data/lib/tasks/migrate.rake +21 -4
  563. data/spec/abilities/ability_spec.rb +98 -8
  564. data/spec/abilities/admin_ability_spec.rb +5 -2
  565. data/spec/abilities/admin_set_abilities_spec.rb +2 -2
  566. data/spec/abilities/collection_abilities_spec.rb +5 -2
  567. data/spec/abilities/embargo_and_lease_ability_spec.rb +1 -2
  568. data/spec/abilities/file_set_abilities_spec.rb +8 -5
  569. data/spec/abilities/generic_work_abilities_spec.rb +10 -7
  570. data/spec/abilities/operation_ability_spec.rb +4 -3
  571. data/spec/abilities/proxies_and_transfer_abilities_spec.rb +13 -2
  572. data/spec/actors/hyrax/actors/apply_order_actor_spec.rb +25 -35
  573. data/spec/actors/hyrax/{apply_permission_template_actor_spec.rb → actors/apply_permission_template_actor_spec.rb} +15 -16
  574. data/spec/actors/hyrax/actors/attach_members_actor_spec.rb +16 -16
  575. data/spec/actors/hyrax/actors/cleanup_file_sets_actor_spec.rb +24 -0
  576. data/spec/actors/hyrax/actors/cleanup_trophies_actor_spec.rb +25 -0
  577. data/spec/actors/hyrax/actors/{add_as_member_of_collections_actor_spec.rb → collections_membership_actor_spec.rb} +29 -20
  578. data/spec/actors/hyrax/{create_with_files_actor_spec.rb → actors/create_with_files_actor_spec.rb} +27 -16
  579. data/spec/actors/hyrax/actors/create_with_remote_files_actor_spec.rb +68 -0
  580. data/spec/actors/hyrax/{default_admin_set_actor_spec.rb → actors/default_admin_set_actor_spec.rb} +19 -18
  581. data/spec/actors/hyrax/actors/embargo_actor_spec.rb +2 -3
  582. data/spec/actors/hyrax/actors/featured_work_actor_spec.rb +38 -0
  583. data/spec/actors/hyrax/actors/file_actor_spec.rb +102 -35
  584. data/spec/actors/hyrax/actors/file_set_actor_spec.rb +102 -175
  585. data/spec/actors/hyrax/actors/generic_work_actor_spec.rb +86 -54
  586. data/spec/actors/hyrax/actors/initialize_workflow_actor_spec.rb +15 -15
  587. data/spec/actors/hyrax/actors/interpret_visibility_actor_spec.rb +71 -52
  588. data/spec/actors/hyrax/actors/lease_actor_spec.rb +2 -3
  589. data/spec/actors/hyrax/actors/model_actor_spec.rb +26 -0
  590. data/spec/actors/hyrax/actors/optimistic_lock_validator_spec.rb +19 -17
  591. data/spec/actors/hyrax/actors/transactional_request_spec.rb +17 -11
  592. data/spec/authorities/qa/authorities/find_works_spec.rb +6 -9
  593. data/spec/config/hyrax_events_spec.rb +3 -8
  594. data/spec/controllers/catalog_controller_spec.rb +5 -2
  595. data/spec/controllers/hyrax/accepts_batches_controller_spec.rb +6 -6
  596. data/spec/controllers/hyrax/admin/admin_sets_controller_spec.rb +29 -5
  597. data/spec/controllers/hyrax/admin/appearances_controller_spec.rb +66 -0
  598. data/spec/controllers/hyrax/admin/features_controller_spec.rb +4 -2
  599. data/spec/controllers/hyrax/admin/permission_template_accesses_controller_spec.rb +29 -12
  600. data/spec/controllers/hyrax/admin/permission_templates_controller_spec.rb +2 -4
  601. data/spec/controllers/hyrax/admin/stats_controller_spec.rb +1 -1
  602. data/spec/controllers/hyrax/admin/strategies_controller_spec.rb +2 -15
  603. data/spec/controllers/hyrax/admin/users_controller_spec.rb +3 -13
  604. data/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb +4 -8
  605. data/spec/controllers/hyrax/admin/workflows_controller_spec.rb +2 -4
  606. data/spec/controllers/hyrax/api/items_controller_spec.rb +22 -15
  607. data/spec/controllers/hyrax/api/zotero_controller_spec.rb +4 -4
  608. data/spec/controllers/hyrax/batch_edits_controller_spec.rb +7 -6
  609. data/spec/controllers/hyrax/batch_uploads_controller_spec.rb +25 -3
  610. data/spec/controllers/hyrax/citations_controller_spec.rb +3 -3
  611. data/spec/controllers/hyrax/collections_controller_spec.rb +7 -229
  612. data/spec/controllers/hyrax/contact_form_controller_spec.rb +11 -3
  613. data/spec/controllers/hyrax/content_blocks_controller_spec.rb +55 -55
  614. data/spec/controllers/hyrax/dashboard/collections_controller_spec.rb +353 -0
  615. data/spec/controllers/hyrax/dashboard/profiles_controller_spec.rb +155 -0
  616. data/spec/controllers/hyrax/dashboard/works_controller_spec.rb +13 -0
  617. data/spec/controllers/hyrax/dashboard_controller_spec.rb +19 -58
  618. data/spec/controllers/hyrax/depositors_controller_spec.rb +1 -1
  619. data/spec/controllers/hyrax/downloads_controller_spec.rb +19 -15
  620. data/spec/controllers/hyrax/embargoes_controller_spec.rb +106 -0
  621. data/spec/controllers/hyrax/featured_work_lists_controller_spec.rb +3 -3
  622. data/spec/controllers/hyrax/featured_works_controller_spec.rb +1 -1
  623. data/spec/controllers/hyrax/file_sets_controller_spec.rb +26 -25
  624. data/spec/controllers/hyrax/{audits_controller_spec.rb → fixity_checks_controller_spec.rb} +17 -10
  625. data/spec/controllers/hyrax/generic_works_controller_json_spec.rb +6 -10
  626. data/spec/controllers/hyrax/generic_works_controller_spec.rb +104 -82
  627. data/spec/controllers/hyrax/homepage_controller_spec.rb +19 -26
  628. data/spec/controllers/hyrax/leases_controller_spec.rb +106 -0
  629. data/spec/controllers/hyrax/my/collections_controller_spec.rb +23 -16
  630. data/spec/controllers/hyrax/my/highlights_controller_spec.rb +2 -3
  631. data/spec/controllers/hyrax/my/shares_controller_spec.rb +2 -1
  632. data/spec/controllers/hyrax/my/works_controller_spec.rb +33 -30
  633. data/spec/controllers/hyrax/{mailbox_controller_spec.rb → notifications_controller_spec.rb} +2 -2
  634. data/spec/controllers/hyrax/operations_controller_spec.rb +2 -3
  635. data/spec/controllers/hyrax/pages_controller_spec.rb +100 -12
  636. data/spec/controllers/hyrax/permissions_controller_spec.rb +7 -3
  637. data/spec/controllers/hyrax/resource_sync_controller_spec.rb +1 -1
  638. data/spec/controllers/hyrax/single_use_links_controller_spec.rb +4 -3
  639. data/spec/controllers/hyrax/single_use_links_viewer_controller_spec.rb +1 -3
  640. data/spec/controllers/hyrax/static_controller_spec.rb +1 -1
  641. data/spec/controllers/hyrax/stats_controller_spec.rb +10 -7
  642. data/spec/controllers/hyrax/transfers_controller_spec.rb +12 -31
  643. data/spec/controllers/hyrax/uploads_controller_spec.rb +3 -1
  644. data/spec/controllers/hyrax/users_controller_spec.rb +17 -166
  645. data/spec/controllers/hyrax/workflow_actions_controller_spec.rb +3 -4
  646. data/spec/conversions/power_converters/polymorphic_type_spec.rb +1 -1
  647. data/spec/conversions/power_converters/sipity_action_name_spec.rb +1 -1
  648. data/spec/conversions/power_converters/sipity_action_spec.rb +1 -1
  649. data/spec/conversions/power_converters/sipity_entity_spec.rb +5 -0
  650. data/spec/conversions/power_converters/sipity_role_spec.rb +0 -2
  651. data/spec/conversions/power_converters/sipity_workflow_state_spec.rb +1 -2
  652. data/spec/factories/admin_sets.rb +1 -1
  653. data/spec/factories/api_items.rb +3 -3
  654. data/spec/factories/collections_factory.rb +2 -2
  655. data/spec/factories/content_blocks.rb +1 -1
  656. data/spec/factories/featured_works.rb +1 -1
  657. data/spec/factories/file_sets.rb +3 -36
  658. data/spec/factories/generic_works.rb +15 -15
  659. data/spec/factories/operations.rb +1 -1
  660. data/spec/factories/permission_template_accesses.rb +5 -2
  661. data/spec/factories/permission_templates.rb +1 -1
  662. data/spec/factories/proxy_deposit_requests.rb +2 -2
  663. data/spec/factories/single_use_links.rb +1 -1
  664. data/spec/factories/sipity_entities.rb +1 -1
  665. data/spec/factories/uploaded_files.rb +1 -1
  666. data/spec/factories/users.rb +2 -2
  667. data/spec/factories/workflow_actions.rb +1 -1
  668. data/spec/factories/workflow_states.rb +1 -1
  669. data/spec/factories/workflows.rb +1 -1
  670. data/spec/features/admin_admin_set_spec.rb +5 -8
  671. data/spec/features/admin_spec.rb +2 -4
  672. data/spec/features/batch_create_spec.rb +1 -1
  673. data/spec/features/batch_edit_spec.rb +47 -115
  674. data/spec/features/browse_catalog_spec.rb +1 -1
  675. data/spec/features/browse_dashboard_works_spec.rb +55 -0
  676. data/spec/features/catalog_search_spec.rb +1 -1
  677. data/spec/features/collection_spec.rb +14 -222
  678. data/spec/features/contact_form_spec.rb +1 -1
  679. data/spec/features/create_child_work_spec.rb +3 -2
  680. data/spec/features/create_work_spec.rb +52 -41
  681. data/spec/features/dashboard/all_works.rb +14 -0
  682. data/spec/features/dashboard/collection_spec.rb +262 -0
  683. data/spec/features/dashboard/display_dashboard_spec.rb +18 -0
  684. data/spec/features/delete_work_spec.rb +1 -1
  685. data/spec/features/edit_file_spec.rb +1 -1
  686. data/spec/features/edit_work_spec.rb +1 -1
  687. data/spec/features/embargo_spec.rb +35 -0
  688. data/spec/features/homepage_spec.rb +5 -8
  689. data/spec/features/lease_spec.rb +35 -0
  690. data/spec/features/notifications_spec.rb +4 -3
  691. data/spec/features/ownership_transfer_spec.rb +8 -7
  692. data/spec/features/proxy_spec.rb +11 -4
  693. data/spec/features/search_spec.rb +3 -3
  694. data/spec/features/static_pages_spec.rb +0 -2
  695. data/spec/features/users_spec.rb +3 -12
  696. data/spec/features/work_generator_spec.rb +5 -3
  697. data/spec/features/work_show_spec.rb +4 -1
  698. data/spec/features/workflow_roles_spec.rb +2 -3
  699. data/spec/features/workflow_state_changes_spec.rb +2 -3
  700. data/spec/fixtures/config/schema_org.yml +2 -0
  701. data/spec/fixtures/config/schema_org_second.yml +7 -0
  702. data/spec/forms/hyrax/forms/admin/appearance_spec.rb +46 -0
  703. data/spec/forms/hyrax/forms/admin_set_form_spec.rb +71 -3
  704. data/spec/forms/hyrax/forms/batch_edit_form_spec.rb +10 -6
  705. data/spec/forms/hyrax/forms/batch_upload_form_spec.rb +9 -3
  706. data/spec/forms/hyrax/forms/collection_form_spec.rb +39 -13
  707. data/spec/forms/hyrax/forms/file_manager_form_spec.rb +2 -2
  708. data/spec/forms/hyrax/forms/file_set_edit_form_spec.rb +3 -4
  709. data/spec/forms/hyrax/forms/permission_template_form_spec.rb +58 -5
  710. data/spec/forms/hyrax/forms/work_form_spec.rb +70 -16
  711. data/spec/forms/hyrax/forms/workflow_action_form_spec.rb +23 -7
  712. data/spec/forms/hyrax/forms/workflow_responsibility_form_spec.rb +3 -3
  713. data/spec/forms/hyrax/generic_work_form_spec.rb +14 -7
  714. data/spec/helpers/blacklight_helper_spec.rb +32 -19
  715. data/spec/helpers/dashboard_helper_spec.rb +4 -19
  716. data/spec/helpers/hyrax/ability_helper_spec.rb +10 -5
  717. data/spec/helpers/{batch_edits_helper_spec.rb → hyrax/batch_edits_helper_spec.rb} +6 -1
  718. data/spec/helpers/hyrax/charts_helper_spec.rb +4 -3
  719. data/spec/helpers/hyrax/collections_helper_spec.rb +11 -10
  720. data/spec/helpers/hyrax/content_block_helper_spec.rb +22 -51
  721. data/spec/helpers/hyrax/file_set_helper_spec.rb +8 -4
  722. data/spec/helpers/hyrax/trophy_helper_spec.rb +2 -2
  723. data/spec/helpers/hyrax_helper_spec.rb +49 -3
  724. data/spec/indexers/hyrax/collection_indexer_spec.rb +24 -11
  725. data/spec/indexers/hyrax/file_set_indexer_spec.rb +36 -37
  726. data/spec/indexers/hyrax/{work_indexer_spec.rb → generic_work_indexer_spec.rb} +42 -5
  727. data/spec/inputs/controlled_vocabulary_input_spec.rb +57 -0
  728. data/spec/inputs/multifile_input_spec.rb +2 -3
  729. data/spec/javascripts/authority_select_spec.js +22 -0
  730. data/spec/javascripts/autocomplete_spec.js.coffee +16 -8
  731. data/spec/javascripts/batch_select_spec.js +15 -0
  732. data/spec/javascripts/fixtures/chart_example.html +1 -1
  733. data/spec/javascripts/fixtures/dashboard_batch_forms.html +11 -0
  734. data/spec/javascripts/jasmine_spec.rb +1 -1
  735. data/spec/javascripts/save_work_spec.js +19 -6
  736. data/spec/javascripts/visibility_component_spec.js +17 -36
  737. data/spec/jobs/attach_files_to_work_job_spec.rb +17 -16
  738. data/spec/jobs/batch_create_job_spec.rb +2 -1
  739. data/spec/jobs/characterize_job_spec.rb +24 -12
  740. data/spec/jobs/content_delete_event_job_spec.rb +1 -1
  741. data/spec/jobs/content_deposit_event_job_spec.rb +6 -7
  742. data/spec/jobs/content_depositor_change_event_job_spec.rb +4 -3
  743. data/spec/jobs/content_new_version_event_job_spec.rb +2 -2
  744. data/spec/jobs/content_restored_version_event_job_spec.rb +3 -2
  745. data/spec/jobs/content_update_event_job_spec.rb +6 -7
  746. data/spec/jobs/create_derivatives_job_spec.rb +1 -3
  747. data/spec/jobs/create_work_job_spec.rb +10 -7
  748. data/spec/jobs/file_set_attached_event_job_spec.rb +3 -3
  749. data/spec/jobs/fixity_check_job_spec.rb +51 -0
  750. data/spec/jobs/hyrax/grant_edit_job_spec.rb +11 -0
  751. data/spec/jobs/hyrax/grant_edit_to_members_job_spec.rb +16 -0
  752. data/spec/jobs/hyrax/grant_read_job_spec.rb +11 -0
  753. data/spec/jobs/hyrax/grant_read_to_members_job_spec.rb +16 -0
  754. data/spec/jobs/hyrax/revoke_edit_from_members_job_spec.rb +16 -0
  755. data/spec/jobs/hyrax/revoke_edit_job_spec.rb +11 -0
  756. data/spec/jobs/import_export_job_spec.rb +28 -0
  757. data/spec/jobs/import_url_job_spec.rb +3 -19
  758. data/spec/jobs/ingest_local_file_job_spec.rb +1 -3
  759. data/spec/jobs/inherit_permissions_job_spec.rb +1 -3
  760. data/spec/jobs/user_edit_profile_event_job_spec.rb +2 -1
  761. data/spec/jobs/visibility_copy_job_spec.rb +3 -5
  762. data/spec/lib/hyrax/analytics_spec.rb +1 -1
  763. data/spec/lib/hyrax/arkivo/actor_spec.rb +18 -16
  764. data/spec/lib/hyrax/arkivo/create_subscription_job_spec.rb +1 -3
  765. data/spec/lib/hyrax/arkivo/metadata_munger_spec.rb +2 -4
  766. data/spec/lib/hyrax/arkivo/schema_validator_spec.rb +5 -7
  767. data/spec/lib/hyrax/arkivo_spec.rb +1 -3
  768. data/spec/lib/hyrax/collections/search_service_spec.rb +2 -3
  769. data/spec/lib/hyrax/configuration_spec.rb +14 -13
  770. data/spec/lib/hyrax/controlled_vocabulary/importer/downloader_spec.rb +3 -1
  771. data/spec/lib/hyrax/controlled_vocabulary/importer/language_spec.rb +1 -1
  772. data/spec/lib/hyrax/move_all_works_to_admin_set_spec.rb +2 -2
  773. data/spec/lib/hyrax/name_spec.rb +4 -3
  774. data/spec/lib/hyrax/redis_event_store_spec.rb +5 -1
  775. data/spec/lib/hyrax/resource_sync/capability_list_writer_spec.rb +1 -3
  776. data/spec/lib/hyrax/resource_sync/change_list_writer_spec.rb +38 -28
  777. data/spec/lib/hyrax/resource_sync/resource_list_writer_spec.rb +2 -4
  778. data/spec/lib/hyrax/resource_sync/source_description_writer_spec.rb +1 -4
  779. data/spec/lib/hyrax/role_registry_spec.rb +9 -2
  780. data/spec/lib/hyrax/search_state_spec.rb +3 -2
  781. data/spec/lib/hyrax/zotero/config_spec.rb +2 -4
  782. data/spec/lib/hyrax/zotero_spec.rb +2 -1
  783. data/spec/models/admin_set_spec.rb +26 -12
  784. data/spec/models/batch_upload_item_spec.rb +1 -2
  785. data/spec/models/checksum_audit_log_spec.rb +131 -35
  786. data/spec/models/collection_spec.rb +5 -2
  787. data/spec/models/content_block_spec.rb +158 -49
  788. data/spec/models/featured_work_list_spec.rb +32 -11
  789. data/spec/models/featured_work_spec.rb +5 -1
  790. data/spec/models/file_download_stat_spec.rb +9 -6
  791. data/spec/models/file_set_spec.rb +84 -57
  792. data/spec/models/file_view_stat_spec.rb +5 -4
  793. data/spec/models/flipflop_spec.rb +11 -2
  794. data/spec/models/generic_work_spec.rb +14 -42
  795. data/spec/models/hyrax/download_spec.rb +1 -1
  796. data/spec/models/hyrax/operation_spec.rb +10 -3
  797. data/spec/models/hyrax/pageview_spec.rb +1 -1
  798. data/spec/models/hyrax/permission_template_access_spec.rb +57 -0
  799. data/spec/models/hyrax/permission_template_spec.rb +38 -1
  800. data/spec/models/hyrax/permissions/readable_permissions_spec.rb +4 -6
  801. data/spec/models/hyrax/permissions/writable_permissions_spec.rb +1 -3
  802. data/spec/models/hyrax/uploaded_file_spec.rb +2 -1
  803. data/spec/models/hyrax/user_usage_stats_spec.rb +2 -2
  804. data/spec/models/hyrax/work_behavior_spec.rb +4 -5
  805. data/spec/models/job_io_wrapper_spec.rb +172 -0
  806. data/spec/models/proxy_deposit_request_spec.rb +4 -5
  807. data/spec/models/single_use_link_spec.rb +3 -3
  808. data/spec/models/sipity/agent_spec.rb +1 -2
  809. data/spec/models/sipity/comment_spec.rb +3 -1
  810. data/spec/models/sipity/entity_spec.rb +2 -3
  811. data/spec/models/sipity/entity_specific_responsibility_spec.rb +1 -0
  812. data/spec/models/sipity/notifiable_context_spec.rb +1 -2
  813. data/spec/models/sipity/notification_recipient_spec.rb +1 -2
  814. data/spec/models/sipity/notification_spec.rb +2 -2
  815. data/spec/models/sipity/role_spec.rb +1 -2
  816. data/spec/models/sipity/workflow_action_spec.rb +1 -0
  817. data/spec/models/sipity/workflow_responsibility_spec.rb +1 -0
  818. data/spec/models/sipity/workflow_spec.rb +4 -0
  819. data/spec/models/sipity/workflow_state_action_permission_spec.rb +1 -0
  820. data/spec/models/sipity/workflow_state_action_spec.rb +1 -0
  821. data/spec/models/sipity/workflow_state_spec.rb +2 -0
  822. data/spec/models/solr_document_spec.rb +57 -3
  823. data/spec/models/trophy_spec.rb +1 -1
  824. data/spec/models/user_mailbox_spec.rb +4 -1
  825. data/spec/models/user_spec.rb +33 -10
  826. data/spec/models/work_view_stat_spec.rb +8 -4
  827. data/spec/presenters/hyrax/admin/dashboard_presenter_spec.rb +3 -2
  828. data/spec/presenters/hyrax/admin/repository_growth_presenter_spec.rb +1 -2
  829. data/spec/presenters/hyrax/admin/repository_object_presenter_spec.rb +2 -2
  830. data/spec/presenters/hyrax/admin/user_activity_presenter_spec.rb +1 -2
  831. data/spec/presenters/hyrax/admin/users_presenter_spec.rb +3 -3
  832. data/spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb +0 -2
  833. data/spec/presenters/hyrax/admin/workflow_roles_presenter_spec.rb +0 -2
  834. data/spec/presenters/hyrax/admin_set_options_presenter_spec.rb +4 -4
  835. data/spec/presenters/hyrax/admin_set_presenter_spec.rb +14 -19
  836. data/spec/presenters/hyrax/admin_stats_presenter_spec.rb +20 -114
  837. data/spec/presenters/hyrax/collection_options_presenter_spec.rb +1 -2
  838. data/spec/presenters/hyrax/collection_presenter_spec.rb +13 -2
  839. data/spec/presenters/hyrax/dashboard/user_presenter_spec.rb +65 -0
  840. data/spec/presenters/hyrax/embargo_presenter_spec.rb +6 -3
  841. data/spec/presenters/hyrax/file_set_presenter_spec.rb +38 -15
  842. data/spec/presenters/hyrax/file_usage_spec.rb +14 -10
  843. data/spec/presenters/hyrax/fixity_status_presenter_spec.rb +55 -0
  844. data/spec/presenters/hyrax/homepage_presenter_spec.rb +30 -10
  845. data/spec/presenters/hyrax/inspect_work_presenter_spec.rb +3 -2
  846. data/spec/presenters/hyrax/lease_presenter_spec.rb +6 -3
  847. data/spec/presenters/hyrax/member_presenter_factory_spec.rb +5 -4
  848. data/spec/presenters/hyrax/menu_presenter_spec.rb +51 -7
  849. data/spec/presenters/hyrax/permission_badge_spec.rb +14 -9
  850. data/spec/presenters/hyrax/presenter_factory_spec.rb +10 -9
  851. data/spec/presenters/hyrax/presenter_renderer_spec.rb +3 -1
  852. data/spec/presenters/hyrax/select_type_list_presenter_spec.rb +10 -3
  853. data/spec/presenters/hyrax/select_type_presenter_spec.rb +43 -2
  854. data/spec/presenters/hyrax/single_use_link_presenter_spec.rb +3 -3
  855. data/spec/presenters/hyrax/transfers_presenter_spec.rb +44 -0
  856. data/spec/presenters/hyrax/trophy_presenter_spec.rb +7 -0
  857. data/spec/presenters/hyrax/twitter_presenter_spec.rb +27 -0
  858. data/spec/presenters/hyrax/user_profile_presenter_spec.rb +2 -0
  859. data/spec/presenters/hyrax/version_list_presenter_spec.rb +1 -3
  860. data/spec/presenters/hyrax/version_presenter_spec.rb +6 -3
  861. data/spec/presenters/hyrax/work_show_presenter_spec.rb +63 -6
  862. data/spec/presenters/hyrax/work_usage_spec.rb +13 -7
  863. data/spec/presenters/hyrax/workflow_presenter_spec.rb +24 -2
  864. data/spec/renderers/hyrax/renderers/attribute_renderer_spec.rb +7 -5
  865. data/spec/renderers/hyrax/renderers/date_attribute_renderer_spec.rb +4 -3
  866. data/spec/renderers/hyrax/renderers/external_link_attribute_renderer_spec.rb +3 -3
  867. data/spec/renderers/hyrax/renderers/faceted_attribute_renderer_spec.rb +15 -3
  868. data/spec/renderers/hyrax/renderers/{rights_attribute_renderer_spec.rb → license_attribute_renderer_spec.rb} +7 -7
  869. data/spec/renderers/hyrax/renderers/linked_attribute_renderer_spec.rb +3 -3
  870. data/spec/requests/legacy_routing_spec.rb +1 -1
  871. data/spec/routing/admin_routes_spec.rb +4 -3
  872. data/spec/routing/api_route_spec.rb +1 -1
  873. data/spec/routing/citations_route_spec.rb +1 -1
  874. data/spec/routing/featured_works_route_spec.rb +1 -1
  875. data/spec/routing/operations_spec.rb +1 -1
  876. data/spec/routing/ownership_transfers_route_spec.rb +1 -1
  877. data/spec/routing/resource_sync_spec.rb +1 -1
  878. data/spec/routing/route_spec.rb +51 -26
  879. data/spec/routing/single_use_link_spec.rb +1 -3
  880. data/spec/routing/stats_route_spec.rb +1 -1
  881. data/spec/search_builders/hyrax/admin_admin_set_member_search_builder_spec.rb +1 -2
  882. data/spec/{search_builder → search_builders}/hyrax/admin_set_search_builder_spec.rb +7 -9
  883. data/spec/{search_builder → search_builders}/hyrax/catalog_search_builder_spec.rb +4 -1
  884. data/spec/{search_builder → search_builders}/hyrax/embargo_search_builder_spec.rb +3 -3
  885. data/spec/{search_builder → search_builders}/hyrax/file_set_search_builder_spec.rb +2 -3
  886. data/spec/{search_builder → search_builders}/hyrax/lease_search_builder_spec.rb +3 -3
  887. data/spec/{search_builder/hyrax → search_builders/hyrax/my}/find_works_search_builder_spec.rb +6 -3
  888. data/spec/{search_builder/hyrax/my_shares_search_builder_spec.rb → search_builders/hyrax/my/shares_search_builder_spec.rb} +1 -1
  889. data/spec/{search_builder/hyrax/my_works_search_builder_spec.rb → search_builders/hyrax/my/works_search_builder_spec.rb} +3 -1
  890. data/spec/{search_builder → search_builders}/hyrax/single_admin_set_search_builder_spec.rb +2 -2
  891. data/spec/{search_builder → search_builders}/hyrax/stats/work_status_search_builder_spec.rb +0 -2
  892. data/spec/{search_builder → search_builders}/hyrax/work_relation_spec.rb +2 -3
  893. data/spec/{search_builder → search_builders}/hyrax/work_search_builder_spec.rb +5 -1
  894. data/spec/search_builders/hyrax/works_search_builder_spec.rb +1 -2
  895. data/spec/services/hyrax/admin_set_create_service_spec.rb +32 -15
  896. data/spec/services/hyrax/admin_set_service_spec.rb +13 -7
  897. data/spec/services/hyrax/batch_create_failure_service_spec.rb +1 -1
  898. data/spec/services/hyrax/batch_create_success_service_spec.rb +1 -1
  899. data/spec/services/hyrax/change_content_depositor_service_spec.rb +1 -1
  900. data/spec/services/hyrax/collection_member_service_spec.rb +1 -1
  901. data/spec/services/hyrax/collection_size_service_spec.rb +1 -1
  902. data/spec/services/hyrax/collections_service_spec.rb +5 -3
  903. data/spec/services/hyrax/curation_concern_spec.rb +4 -5
  904. data/spec/services/hyrax/default_middleware_stack_spec.rb +36 -0
  905. data/spec/services/hyrax/derivative_path_spec.rb +7 -3
  906. data/spec/services/hyrax/derivative_service_spec.rb +4 -1
  907. data/spec/services/hyrax/embargo_service_spec.rb +6 -7
  908. data/spec/services/hyrax/file_set_csv_service_spec.rb +19 -10
  909. data/spec/services/hyrax/file_set_derivatives_service_spec.rb +2 -1
  910. data/spec/services/hyrax/file_set_fixity_check_service_spec.rb +116 -0
  911. data/spec/services/hyrax/fixity_check_failure_service_spec.rb +29 -0
  912. data/spec/services/hyrax/graph_exporter_spec.rb +3 -2
  913. data/spec/services/hyrax/import_url_failure_service_spec.rb +1 -1
  914. data/spec/services/hyrax/lease_service_spec.rb +2 -5
  915. data/spec/services/hyrax/license_service_spec.rb +1 -3
  916. data/spec/services/hyrax/lock_manager_spec.rb +2 -3
  917. data/spec/services/hyrax/microdata_spec.rb +94 -0
  918. data/spec/services/hyrax/noid_spec.rb +3 -6
  919. data/spec/services/hyrax/parent_service_spec.rb +0 -2
  920. data/spec/services/hyrax/persist_derivatives_spec.rb +1 -3
  921. data/spec/services/hyrax/persist_directly_contained_output_file_service_spec.rb +2 -3
  922. data/spec/services/hyrax/qa_select_service_spec.rb +8 -4
  923. data/spec/services/hyrax/query_service_spec.rb +17 -1
  924. data/spec/services/hyrax/quick_classification_query_spec.rb +6 -3
  925. data/spec/services/hyrax/repository_fixity_check_service_spec.rb +18 -0
  926. data/spec/services/hyrax/resource_types_service_spec.rb +4 -3
  927. data/spec/services/hyrax/rights_statements_spec.rb +1 -3
  928. data/spec/services/hyrax/statistics/collections/over_time_spec.rb +1 -1
  929. data/spec/services/hyrax/statistics/depositors/summary_spec.rb +10 -2
  930. data/spec/services/hyrax/statistics/file_sets/by_format_spec.rb +4 -5
  931. data/spec/services/hyrax/statistics/system_stats_spec.rb +5 -4
  932. data/spec/services/hyrax/statistics/users/over_time_spec.rb +1 -2
  933. data/spec/services/hyrax/statistics/works/by_depositor_spec.rb +3 -4
  934. data/spec/services/hyrax/statistics/works/by_resource_type_spec.rb +1 -1
  935. data/spec/services/hyrax/statistics/works/count_spec.rb +7 -7
  936. data/spec/services/hyrax/statistics/works/over_time_spec.rb +1 -1
  937. data/spec/services/hyrax/thumbnail_path_service_spec.rb +12 -4
  938. data/spec/services/hyrax/user_stat_importer_spec.rb +52 -46
  939. data/spec/services/hyrax/versioning_service_spec.rb +1 -3
  940. data/spec/services/hyrax/work_query_service_spec.rb +6 -0
  941. data/spec/services/hyrax/workflow/action_taken_service_spec.rb +2 -2
  942. data/spec/services/hyrax/workflow/activate_object_spec.rb +1 -1
  943. data/spec/services/hyrax/workflow/changes_required_notification_spec.rb +4 -5
  944. data/spec/services/hyrax/workflow/deactivate_object_spec.rb +1 -1
  945. data/spec/services/hyrax/workflow/deposited_notification_spec.rb +4 -5
  946. data/spec/services/hyrax/workflow/grant_edit_to_depositor_spec.rb +19 -1
  947. data/spec/services/hyrax/workflow/grant_read_to_depositor_spec.rb +48 -0
  948. data/spec/services/hyrax/workflow/method_generator_spec.rb +1 -2
  949. data/spec/services/hyrax/workflow/notification_configuration_parameter_spec.rb +1 -2
  950. data/spec/services/hyrax/workflow/notification_generator_spec.rb +3 -3
  951. data/spec/services/hyrax/workflow/notification_service_spec.rb +37 -3
  952. data/spec/services/hyrax/workflow/pending_review_notification_spec.rb +4 -5
  953. data/spec/services/hyrax/workflow/permission_generator_spec.rb +4 -6
  954. data/spec/services/hyrax/workflow/permission_query_spec.rb +25 -3
  955. data/spec/services/hyrax/workflow/revoke_edit_from_depositor_spec.rb +16 -3
  956. data/spec/services/hyrax/workflow/sipity_actions_generator_spec.rb +0 -2
  957. data/spec/services/hyrax/workflow/state_machine_generator_spec.rb +12 -13
  958. data/spec/services/hyrax/workflow/status_list_service_spec.rb +2 -4
  959. data/spec/services/hyrax/workflow/workflow_factory_spec.rb +2 -1
  960. data/spec/services/hyrax/workflow/workflow_importer_spec.rb +7 -0
  961. data/spec/services/hyrax/workflow/workflow_permissions_generator_spec.rb +2 -0
  962. data/spec/services/hyrax/workflow/workflow_schema_spec.rb +2 -2
  963. data/spec/services/hyrax/working_directory_spec.rb +3 -3
  964. data/spec/spec_helper.rb +35 -61
  965. data/spec/strategies/hyrax/strategies/yaml_strategy_spec.rb +2 -2
  966. data/spec/support/controller_level_helpers.rb +1 -0
  967. data/spec/support/features.rb +2 -2
  968. data/spec/support/features/batch_edit_actions.rb +28 -0
  969. data/spec/support/features/session_helpers.rb +1 -1
  970. data/spec/support/features/workflow.rb +9 -0
  971. data/spec/support/logging_formatter.rb +66 -0
  972. data/spec/support/spec_statistic.rb +23 -0
  973. data/spec/tasks/rake_spec.rb +1 -1
  974. data/spec/test_app_templates/disable_animations_in_test_environment.rb +54 -0
  975. data/spec/test_app_templates/lib/generators/test_app_generator.rb +10 -1
  976. data/spec/views/_flash_msg.html.erb_spec.rb +4 -1
  977. data/spec/views/_user_util_links.html.erb_spec.rb +8 -8
  978. data/spec/views/catalog/_index_list_default.html.erb_spec.rb +1 -0
  979. data/spec/views/catalog/_search_form.html.erb_spec.rb +0 -2
  980. data/spec/views/catalog/_thumbnail_list_collection.html.erb_spec.rb +1 -1
  981. data/spec/views/catalog/index.html.erb_spec.rb +1 -1
  982. data/spec/views/content_blocks/edit.html.erb_spec.rb +21 -0
  983. data/spec/views/hyrax/admin/admin_sets/_form.html.erb_spec.rb +7 -3
  984. data/spec/views/hyrax/admin/admin_sets/_form_participant_table.html.erb_spec.rb +6 -2
  985. data/spec/views/hyrax/admin/admin_sets/_form_participants.html.erb_spec.rb +1 -2
  986. data/spec/views/hyrax/admin/admin_sets/_form_visibility.html.erb_spec.rb +0 -2
  987. data/spec/views/hyrax/admin/admin_sets/_form_workflow.html.erb_spec.rb +1 -2
  988. data/spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb +4 -18
  989. data/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb +2 -2
  990. data/spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb +11 -2
  991. data/spec/views/hyrax/admin/admin_sets/index.json.erb_spec.rb +30 -0
  992. data/spec/views/hyrax/admin/admin_sets/show.html.erb_spec.rb +7 -9
  993. data/spec/views/hyrax/admin/features/index.html.erb_spec.rb +2 -1
  994. data/spec/views/hyrax/admin/stats/show.html.erb_spec.rb +6 -1
  995. data/spec/views/hyrax/admin/users/index.html.erb_spec.rb +2 -2
  996. data/spec/views/hyrax/admin/workflow_roles/index.html.erb_spec.rb +17 -10
  997. data/spec/views/hyrax/base/_attribute_rows.html.erb_spec.rb +11 -4
  998. data/spec/views/hyrax/base/_attributes.html.erb_spec.rb +1 -3
  999. data/spec/views/hyrax/base/_browse_everything.html.erb_spec.rb +7 -4
  1000. data/spec/views/hyrax/base/_citations.html.erb_spec.rb +2 -3
  1001. data/spec/views/hyrax/base/_find_work_widget.html.erb_spec.rb +1 -2
  1002. data/spec/views/hyrax/base/_form.html.erb_spec.rb +30 -7
  1003. data/spec/views/hyrax/base/_form_child_work_relationships.html.erb_spec.rb +4 -3
  1004. data/spec/views/hyrax/base/_form_metadata.html.erb_spec.rb +40 -0
  1005. data/spec/views/hyrax/base/_form_progress.html.erb_spec.rb +17 -8
  1006. data/spec/views/hyrax/base/_form_relationships.html.erb_spec.rb +7 -8
  1007. data/spec/views/hyrax/base/_items.html.erb_spec.rb +25 -34
  1008. data/spec/views/hyrax/base/_member.html.erb_spec.rb +6 -4
  1009. data/spec/views/hyrax/base/_relationships.html.erb_spec.rb +9 -48
  1010. data/spec/views/hyrax/base/_show_actions.html.erb_spec.rb +8 -11
  1011. data/spec/views/hyrax/base/_social_media.html.erb_spec.rb +1 -3
  1012. data/spec/views/hyrax/base/edit.html.erb_spec.rb +4 -4
  1013. data/spec/views/hyrax/base/file_manager.html.erb_spec.rb +1 -3
  1014. data/spec/views/hyrax/base/show.html.erb_spec.rb +151 -7
  1015. data/spec/views/hyrax/base/show.json.jbuilder_spec.rb +3 -5
  1016. data/spec/views/hyrax/base/unauthorized.html.erb_spec.rb +3 -3
  1017. data/spec/views/hyrax/base/unavailable.html.erb_spec.rb +6 -6
  1018. data/spec/views/hyrax/batch_edits/check_all_spec.rb +1 -1
  1019. data/spec/views/hyrax/batch_edits/edit.html.erb_spec.rb +8 -4
  1020. data/spec/views/hyrax/batch_uploads/_form.html.erb_spec.rb +5 -8
  1021. data/spec/views/hyrax/citations/work.html.erb_spec.rb +1 -1
  1022. data/spec/views/hyrax/collections/_show_descriptions.html.erb_spec.rb +14 -9
  1023. data/spec/views/hyrax/collections/_show_document_list.html.erb_spec.rb +14 -18
  1024. data/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb +1 -2
  1025. data/spec/views/hyrax/collections/show.html.erb_spec.rb +2 -7
  1026. data/spec/views/hyrax/dashboard/_sidebar.html.erb_spec.rb +105 -0
  1027. data/spec/views/hyrax/dashboard/collections/_form.html.erb_spec.rb +56 -0
  1028. data/spec/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb_spec.rb +55 -0
  1029. data/spec/views/hyrax/dashboard/collections/_form_share.erb_spec.rb +42 -0
  1030. data/spec/views/hyrax/dashboard/collections/_show_descriptions.html.erb_spec.rb +32 -0
  1031. data/spec/views/hyrax/dashboard/collections/_show_document_list.html.erb_spec.rb +24 -0
  1032. data/spec/views/hyrax/{collections → dashboard/collections}/_show_document_list_menu.html.erb_spec.rb +6 -6
  1033. data/spec/views/hyrax/dashboard/collections/_show_document_list_row.html.erb_spec.rb +31 -0
  1034. data/spec/views/hyrax/{collections → dashboard/collections}/edit.html.erb_spec.rb +4 -4
  1035. data/spec/views/hyrax/dashboard/collections/show.html.erb_spec.rb +37 -0
  1036. data/spec/views/hyrax/{users → dashboard/profiles}/edit.html.erb_spec.rb +3 -2
  1037. data/spec/views/hyrax/dashboard/show_user_spec.rb +34 -0
  1038. data/spec/views/hyrax/embargoes/index.html.erb_spec.rb +14 -0
  1039. data/spec/views/hyrax/file_sets/_permission.html.erb_spec.rb +1 -3
  1040. data/spec/views/hyrax/file_sets/_permission_form.html.erb_spec.rb +1 -3
  1041. data/spec/views/hyrax/file_sets/_show_actions.html.erb_spec.rb +2 -3
  1042. data/spec/views/hyrax/file_sets/_show_characterization_details.html.erb_spec.rb +2 -5
  1043. data/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb +2 -3
  1044. data/spec/views/hyrax/file_sets/_versioning.html.erb_spec.rb +1 -1
  1045. data/spec/views/hyrax/file_sets/media_display/_default.html.erb_spec.rb +1 -3
  1046. data/spec/views/hyrax/file_sets/show.html.erb_spec.rb +13 -8
  1047. data/spec/views/hyrax/file_sets/show.json.jbuilder_spec.rb +0 -2
  1048. data/spec/views/hyrax/homepage/_announcement.html.erb_spec.rb +5 -28
  1049. data/spec/views/hyrax/homepage/_featured_works.html.erb_spec.rb +4 -1
  1050. data/spec/views/hyrax/homepage/_sortable_featured.html.erb_spec.rb +3 -1
  1051. data/spec/views/hyrax/homepage/index.html.erb_spec.rb +5 -2
  1052. data/spec/views/hyrax/leases/index.html.erb_spec.rb +14 -0
  1053. data/spec/views/hyrax/my/{_sort_and_per_page.html.erb_spec.rb → _search_header.html.erb_spec.rb} +10 -11
  1054. data/spec/views/hyrax/my/_work_action_menu.html.erb_spec.rb +1 -3
  1055. data/spec/views/hyrax/my/{_list_collections.html.erb_spec.rb → collections/_list_collections.html.erb_spec.rb} +5 -5
  1056. data/spec/views/hyrax/my/facet.html.erb_spec.rb +2 -1
  1057. data/spec/views/hyrax/my/{_list_works.html.erb_spec.rb → works/_list_works.html.erb_spec.rb} +3 -3
  1058. data/spec/views/hyrax/my/works/index.html.erb_spec.rb +64 -0
  1059. data/spec/views/hyrax/permissions/confirm.html.erb_spec.rb +4 -5
  1060. data/spec/views/hyrax/single_use_links_viewer/show.html.erb_spec.rb +1 -12
  1061. data/spec/views/hyrax/single_use_links_viewer/single_use_error.html.erb_spec.rb +1 -3
  1062. data/spec/views/hyrax/stats/file.html.erb_spec.rb +1 -1
  1063. data/spec/views/hyrax/uploads/create.json.jbuilder_spec.rb +1 -3
  1064. data/spec/views/hyrax/users/_user_info.html.erb_spec.rb +1 -1
  1065. data/spec/views/hyrax/users/index.html.erb_spec.rb +2 -1
  1066. data/spec/views/hyrax/users/show.html.erb_spec.rb +1 -1
  1067. data/spec/views/layouts/error.html.erb_spec.rb +1 -3
  1068. data/spec/views/pages/edit.html.erb_spec.rb +27 -0
  1069. data/spec/views/pages/show.html.erb_spec.rb +16 -0
  1070. data/spec/views/records/edit_fields/_based_near.html.erb_spec.rb +1 -1
  1071. data/spec/views/records/edit_fields/_description.html.erb_spec.rb +2 -1
  1072. data/spec/views/records/edit_fields/_language.html.erb_spec.rb +1 -1
  1073. data/spec/views/records/edit_fields/_subject.html.erb_spec.rb +1 -1
  1074. data/spec/views/shared/select_work_type_modal.html.erb_spec.rb +4 -11
  1075. data/tasks/{hyrax-dev.rake → hyrax_dev.rake} +2 -2
  1076. data/template.rb +1 -5
  1077. data/vendor/assets/javascripts/handlebars-v4.0.5.js +4612 -0
  1078. metadata +453 -396
  1079. data/CONTRIBUTING.md +0 -159
  1080. data/app/actors/hyrax/actors/actor_stack.rb +0 -70
  1081. data/app/actors/hyrax/actors/add_as_member_of_collections_actor.rb +0 -26
  1082. data/app/actors/hyrax/actors/attach_files_actor.rb +0 -53
  1083. data/app/actors/hyrax/actors/root_actor.rb +0 -20
  1084. data/app/actors/hyrax/apply_permission_template_actor.rb +0 -21
  1085. data/app/actors/hyrax/create_with_files_actor.rb +0 -46
  1086. data/app/actors/hyrax/create_with_remote_files_actor.rb +0 -71
  1087. data/app/actors/hyrax/default_admin_set_actor.rb +0 -42
  1088. data/app/assets/javascripts/batch_edit.js.coffee +0 -166
  1089. data/app/assets/javascripts/hyrax/batch_select.js +0 -10
  1090. data/app/assets/javascripts/hyrax/featured_researcher.js +0 -14
  1091. data/app/assets/stylesheets/hyrax/_dashboard.scss +0 -153
  1092. data/app/assets/stylesheets/hyrax/_multi_value_fields.css.scss +0 -18
  1093. data/app/assets/stylesheets/hyrax/admin.scss +0 -178
  1094. data/app/controllers/concerns/hydra/batch_edit_behavior.rb +0 -73
  1095. data/app/controllers/concerns/hyrax/batch_edits_controller_behavior.rb +0 -84
  1096. data/app/controllers/concerns/hyrax/batch_uploads_controller_behavior.rb +0 -69
  1097. data/app/controllers/concerns/hyrax/contact_form_controller_behavior.rb +0 -45
  1098. data/app/controllers/concerns/hyrax/curation_concern_controller.rb +0 -241
  1099. data/app/controllers/concerns/hyrax/dashboard_controller_behavior.rb +0 -47
  1100. data/app/controllers/concerns/hyrax/depositors_controller_behavior.rb +0 -48
  1101. data/app/controllers/concerns/hyrax/download_behavior.rb +0 -87
  1102. data/app/controllers/concerns/hyrax/file_sets_controller_behavior.rb +0 -273
  1103. data/app/controllers/concerns/hyrax/homepage_controller_behavior.rb +0 -52
  1104. data/app/controllers/concerns/hyrax/my_controller_behavior.rb +0 -59
  1105. data/app/controllers/concerns/hyrax/permissions_controller_behavior.rb +0 -38
  1106. data/app/controllers/concerns/hyrax/single_use_links_controller_behavior.rb +0 -53
  1107. data/app/controllers/concerns/hyrax/single_use_links_viewer_controller_behavior.rb +0 -85
  1108. data/app/controllers/concerns/hyrax/transfers_controller_behavior.rb +0 -80
  1109. data/app/controllers/concerns/hyrax/uploads_controller_behavior.rb +0 -18
  1110. data/app/controllers/concerns/hyrax/users_controller_behavior.rb +0 -113
  1111. data/app/controllers/hyrax/admin_controller.rb +0 -20
  1112. data/app/controllers/hyrax/admin_sets_controller.rb +0 -25
  1113. data/app/controllers/hyrax/audits_controller.rb +0 -16
  1114. data/app/controllers/hyrax/tinymce_assets_controller.rb +0 -14
  1115. data/app/helpers/batch_edits_helper.rb +0 -14
  1116. data/app/helpers/contact_form_helper.rb +0 -2
  1117. data/app/helpers/file_set_helper.rb +0 -7
  1118. data/app/helpers/hyrax/search_paths_helper.rb +0 -11
  1119. data/app/jobs/audit_job.rb +0 -47
  1120. data/app/jobs/ingest_file_job.rb +0 -37
  1121. data/app/models/concerns/hyrax/admin_set_behavior.rb +0 -118
  1122. data/app/models/concerns/hyrax/content_block_behavior.rb +0 -47
  1123. data/app/models/concerns/hyrax/works/featured.rb +0 -23
  1124. data/app/models/concerns/hyrax/works/trophies.rb +0 -12
  1125. data/app/models/hyrax/classify_concern.rb +0 -43
  1126. data/app/models/tinymce_asset.rb +0 -3
  1127. data/app/search_builders/deposit_search_builder.rb +0 -24
  1128. data/app/search_builders/hyrax/active_works_search_builder.rb +0 -13
  1129. data/app/search_builders/hyrax/admin_set_member_search_builder.rb +0 -12
  1130. data/app/search_builders/hyrax/my_collections_search_builder.rb +0 -11
  1131. data/app/search_builders/parent_collection_search_builder.rb +0 -10
  1132. data/app/services/hyrax/actor_factory.rb +0 -33
  1133. data/app/services/hyrax/audit_failure_service.rb +0 -20
  1134. data/app/services/hyrax/file_set_audit_service.rb +0 -122
  1135. data/app/services/hyrax/import_url_success_service.rb +0 -22
  1136. data/app/services/hyrax/repository_audit_service.rb +0 -9
  1137. data/app/services/hyrax/workflow/workflow_by_model_name_strategy.rb +0 -14
  1138. data/app/uploaders/tinymce_asset_uploader.rb +0 -45
  1139. data/app/views/_toolbar.html.erb +0 -75
  1140. data/app/views/hyrax/admin/_menu.html.erb +0 -5
  1141. data/app/views/hyrax/admin/_sidebar.html.erb +0 -33
  1142. data/app/views/hyrax/admin_sets/_admin_set.html.erb +0 -25
  1143. data/app/views/hyrax/admin_sets/_document_list.html.erb +0 -30
  1144. data/app/views/hyrax/admin_sets/_member_document.html.erb +0 -26
  1145. data/app/views/hyrax/admin_sets/_search_form.html.erb +0 -11
  1146. data/app/views/hyrax/admin_sets/_sort_and_per_page.html.erb +0 -5
  1147. data/app/views/hyrax/admin_sets/index.html.erb +0 -2
  1148. data/app/views/hyrax/admin_sets/show.html.erb +0 -32
  1149. data/app/views/hyrax/base/_relationships_parent_row_empty.html.erb +0 -6
  1150. data/app/views/hyrax/collections/_button_create_collection.html.erb +0 -1
  1151. data/app/views/hyrax/collections/_dashboard_document_list.html.erb +0 -4
  1152. data/app/views/hyrax/collections/_form.html.erb +0 -41
  1153. data/app/views/hyrax/collections/edit.html.erb +0 -29
  1154. data/app/views/hyrax/collections/new.html.erb +0 -3
  1155. data/app/views/hyrax/content_blocks/_featured_researcher.html.erb +0 -3
  1156. data/app/views/hyrax/content_blocks/index.html.erb +0 -7
  1157. data/app/views/hyrax/dashboard/_create_work_action.html.erb +0 -20
  1158. data/app/views/hyrax/dashboard/_index_partials/_heading_actions.html.erb +0 -25
  1159. data/app/views/hyrax/dashboard/_index_partials/_heading_greetings.html.erb +0 -3
  1160. data/app/views/hyrax/dashboard/index.html.erb +0 -10
  1161. data/app/views/hyrax/file_sets/_edit.js.erb +0 -20
  1162. data/app/views/hyrax/mailbox/_notifications.html.erb +0 -27
  1163. data/app/views/hyrax/mailbox/index.html.erb +0 -8
  1164. data/app/views/hyrax/my/_facets.html.erb +0 -18
  1165. data/app/views/hyrax/static/agreement.html.erb +0 -44
  1166. data/app/views/hyrax/static/help.html.erb +0 -4
  1167. data/app/views/hyrax/static/terms.html.erb +0 -62
  1168. data/app/views/hyrax/users/edit.html.erb +0 -8
  1169. data/app/views/layouts/admin.html.erb +0 -11
  1170. data/app/views/records/edit_fields/_default.html.erb +0 -6
  1171. data/lib/hyrax/collections.rb +0 -7
  1172. data/lib/hyrax/collections_migration.rb +0 -18
  1173. data/spec/actors/hyrax/actors/actor_stack_spec.rb +0 -35
  1174. data/spec/actors/hyrax/create_with_remote_files_actor_spec.rb +0 -105
  1175. data/spec/controllers/hyrax/admin_controller_spec.rb +0 -19
  1176. data/spec/controllers/hyrax/admin_sets_controller_spec.rb +0 -28
  1177. data/spec/controllers/hyrax/tinymce_assets_controller_spec.rb +0 -37
  1178. data/spec/features/browse_dashboard_files_spec.rb +0 -67
  1179. data/spec/features/cloud_upload_spec.rb +0 -15
  1180. data/spec/features/display_dashboard_spec.rb +0 -28
  1181. data/spec/features/show_admin_set_spec.rb +0 -11
  1182. data/spec/features/user_admin_set_spec.rb +0 -55
  1183. data/spec/helpers/hyrax/citations_behaviors/formatters/chicago_formatter_spec.rb +0 -10
  1184. data/spec/jobs/audit_job_spec.rb +0 -57
  1185. data/spec/jobs/ingest_file_job_spec.rb +0 -79
  1186. data/spec/lib/hyrax/collections_migration_spec.rb +0 -34
  1187. data/spec/routing/admin_sets_spec.rb +0 -7
  1188. data/spec/search_builders/hyrax/active_works_search_builder_spec.rb +0 -53
  1189. data/spec/services/hyrax/actor_factory_spec.rb +0 -55
  1190. data/spec/services/hyrax/audit_failure_service_spec.rb +0 -26
  1191. data/spec/services/hyrax/file_set_audit_service_spec.rb +0 -156
  1192. data/spec/services/hyrax/import_url_success_service_spec.rb +0 -20
  1193. data/spec/services/hyrax/repository_audit_service_spec.rb +0 -17
  1194. data/spec/support/locations.rb +0 -17
  1195. data/spec/support/proxies.rb +0 -15
  1196. data/spec/views/_toolbar.html.erb_spec.rb +0 -93
  1197. data/spec/views/hyrax/collections/_form.html.erb_spec.rb +0 -33
  1198. data/spec/views/hyrax/collections/_form_for_select_collection.html.erb_spec.rb +0 -51
  1199. data/spec/views/hyrax/dashboard/create_work_action.html.erb_spec.rb +0 -27
  1200. data/spec/views/hyrax/dashboard/index_spec.rb +0 -169
  1201. data/vendor/assets/javascripts/jquery.validate.js +0 -1248
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d3112e5f08e4c0da060fde290645a29b69bab62
4
- data.tar.gz: d2b16f75eacb1a606a80dce93a86f93de4f5ef0c
3
+ metadata.gz: 5939c7dfed45843b17856611c64ffc82ee4cd492
4
+ data.tar.gz: d21b1da8507c09373ac8d9b3e0075df873301bad
5
5
  SHA512:
6
- metadata.gz: 4916d4b71847fa4e0fabd5a477f5efa6ba99484493b9ef3de440d379e967d7a09c2bbb054a24f6529561eef820713ef6059ba1571d74bc150b439df556fb6bef
7
- data.tar.gz: 54f5e65e0105faf6cad75868409030eff13e52f72cffe3a4d1a0299a72eac339f9136bfe46116ec237878bf779cbea02633bc23368f312214d764e3068e47603
6
+ metadata.gz: 742c2367eaf3138530f3bf644003664e86e63b20b8a4ccd5905197fc0ee9da9aa7bdb7f6b72f9a991fdbf7d4f434a9d5d215a83de258ac661dd0dbe251fc1b32
7
+ data.tar.gz: 819f25b0076a067f2dce5e621ead98d4f2511e61cc0f1a2756a9034512564023772016779e46edeef48f1f787e63c20a5f06f631fc3b3a3669f509d1a7cf88ec
@@ -3,10 +3,11 @@ engines:
3
3
  brakeman:
4
4
  enabled: true
5
5
  exclude_fingerprints:
6
- - 6ad4464dbb2a999591c7be8346dc137c3372b280f4a8b0c024fef91dfebeeb83
7
- - c05c1baf940f00a565ffe12f8b8a213fa06cebd734e0dae92057db28dc7c018b
8
- - b388847a782f9d55d164f632b892125496082b9cfe5813720327ae6afbaf607b
9
- - c7c241833ba150c2e4c72a26e1ac4d674230cb5e5c87322bedfe2b50dd09247d
6
+ - 23ba0830f304065acab598cd07d285a4e0df786cb64533e04d2e8efa6d7a4a5b
7
+ - 4e8248816e1ec892a23bec95d9436e09eea45ace7460811086c6c831a439833e
8
+ - 5496595e01ffb5b2e2d79b371c5af19b9d822561a99b38992537cfa03ff7e38f
9
+ - a625206570d0bafe8634bdaf900d5f2ee742c61e7e26089a0be4439016de79a9
10
+ - d34e876702fc1f6c09d3a88d5c55b2c309b0ccfe2c738942934ef90ac2db892a
10
11
  duplication:
11
12
  enabled: true
12
13
  exclude_fingerprints:
data/.eslintrc CHANGED
@@ -58,7 +58,7 @@ rules:
58
58
  no-case-declarations: 2
59
59
  no-div-regex: 2
60
60
  no-else-return: 0
61
- no-empty-label: 2
61
+ no-labels: 2
62
62
  no-empty-pattern: 2
63
63
  no-eq-null: 2
64
64
  no-eval: 2
@@ -0,0 +1,4 @@
1
+ # Place any default configuration for fcrepo_wrapper here
2
+ port: 8984
3
+ enable_jms: false
4
+ fcrepo_home_dir: tmp/fcrepo4-development-data
@@ -0,0 +1,36 @@
1
+ The Samvera community is dedicated to providing a welcoming and
2
+ positive experience for all its members, whether they are at a formal
3
+ gathering, in a social setting, or taking part in activities online.
4
+ The Samvera community welcomes participation from people all over the
5
+ world and these members bring with them a wide variety of
6
+ professional, personal and social backgrounds; whatever these may be,
7
+ we treat colleagues with dignity and respect.
8
+
9
+ Community members communicate primarily in English, though for many of
10
+ them this is not their native language. We therefore strive to express
11
+ ourselves simply and clearly remembering that unnecessary use of
12
+ jargon and slang will be a barrier to understanding for many of our
13
+ colleagues. We are sensitive to the fact that the international
14
+ nature of the community means that we span many different social norms
15
+ around language and behaviour and we strive to conduct ourselves,
16
+ online and in person, in ways that are unlikely to cause offence.
17
+
18
+ Samvera conversations are often information-rich and intended to
19
+ generate discussion and debate. We discuss ideas from a standpoint of
20
+ mutual respect and reasoned argument.
21
+
22
+ Community members work together to promote a respectful and safe
23
+ community. In the event that someone’s conduct is causing offence or
24
+ distress, Samvera has a detailed
25
+ [Anti-Harassment Policy and Protocol](https://wiki.duraspace.org/display/hydra/Anti-Harassment+Policy)
26
+ which can be applied to address the problem. The first step in dealing
27
+ with any serious misconduct is to contact a local meeting organizer,
28
+ the
29
+ [Samvera community helpers](https://wiki.duraspace.org/display/hydra/Hydra+Community+Helpers)
30
+ ([email](mailto:helpers@projecthydra.org)), a community member you
31
+ trust, or the
32
+ [Samvera Steering Group](https://wiki.duraspace.org/display/hydra/Samvera+Steering+Group+membership)
33
+ immediately; at Samvera events, these people can be identified by
34
+ distinctive name badges. The
35
+ [Policy and Protocol](https://wiki.duraspace.org/display/hydra/Anti-Harassment+Policy)
36
+ should be consulted for fuller details.
@@ -1,12 +1,22 @@
1
1
  # How to Contribute
2
2
 
3
- We want your help to make Project Hydra great.
4
- There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
3
+ We want your help to make Samvera great. There are a few guidelines
4
+ that we need contributors to follow so that we can have a chance of
5
+ keeping on top of things.
5
6
 
6
- ## Hydra Project Intellectual Property Licensing and Ownership
7
+ ## Code of Conduct
7
8
 
8
- All code contributors must have an Individual Contributor License Agreement (iCLA) on file with the Hydra Project Steering Group.
9
- If the contributor works for an institution, the institution must have a Corporate Contributor License Agreement (cCLA) on file.
9
+ The Samvera Community is dedicated to providing a welcoming and positive
10
+ experience for all its members, whether they are at a formal gathering, in
11
+ a social setting, or taking part in activities online. Please see our
12
+ [Code of Conduct](CODE_OF_CONDUCT.md) for more information.
13
+
14
+ ## Samvera Community Intellectual Property Licensing and Ownership
15
+
16
+ All code contributors must have an Individual Contributor License Agreement
17
+ (iCLA) on file with the Samvera Steering Group. If the contributor works for
18
+ an institution, the institution must have a Corporate Contributor License
19
+ Agreement (cCLA) on file.
10
20
 
11
21
  https://wiki.duraspace.org/display/hydra/Hydra+Project+Intellectual+Property+Licensing+and+Ownership
12
22
 
@@ -16,8 +26,10 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
16
26
 
17
27
  * Reporting Issues
18
28
  * Making Changes
29
+ * Documenting Code
30
+ * Committing Changes
19
31
  * Submitting Changes
20
- * Merging Changes
32
+ * Reviewing and Merging Changes
21
33
 
22
34
  ### Reporting Issues
23
35
 
@@ -38,8 +50,28 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
38
50
  * Then checkout the new branch with `git checkout fix/master/my_contribution`.
39
51
  * Please avoid working directly on the `master` branch.
40
52
  * You may find the [hub suite of commands](https://github.com/defunkt/hub) helpful
53
+ * Make sure you have added sufficient tests and documentation for your changes.
54
+ * Test functionality with RSpec; est features / UI with Capybara.
55
+ * Run _all_ the tests to assure nothing else was accidentally broken.
56
+
57
+ ### Documenting Code
58
+
59
+ * All new public methods, modules, and classes should include inline documentation in [YARD](http://yardoc.org/).
60
+ * Documentation should seek to answer the question "why does this code exist?"
61
+ * Document private / protected methods as desired.
62
+ * If you are working in a file with no prior documentation, do try to document as you gain understanding of the code.
63
+ * If you don't know exactly what a bit of code does, it is extra likely that it needs to be documented. Take a stab at it and ask for feedback in your pull request. You can use the 'blame' button on GitHub to identify the original developer of the code and @mention them in your comment.
64
+ * This work greatly increases the usability of the code base and supports the on-ramping of new committers.
65
+ * We will all be understanding of one another's time constraints in this area.
66
+ * YARD examples:
67
+ * [Hydra::Works::RemoveGenericFile](https://github.com/projecthydra-labs/hydra-works/blob/master/lib/hydra/works/services/generic_work/remove_generic_file.rb)
68
+ * [ActiveTriples::LocalName::Minter](https://github.com/ActiveTriples/active_triples-local_name/blob/master/lib/active_triples/local_name/minter.rb)
69
+ * [Getting started with YARD](http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md)
70
+
71
+ ### Committing changes
72
+
41
73
  * Make commits of logical units.
42
- * Your commit should include a high level description of your work in HISTORY.textile
74
+ * Your commit should include a high level description of your work in HISTORY.textile
43
75
  * Check for unnecessary whitespace with `git diff --check` before committing.
44
76
  * Make sure your commit messages are [well formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
45
77
  * If you created an issue, you can close it by including "Closes #issue" in your commit message. See [Github's blog post for more details](https://github.com/blog/1386-closing-issues-via-commit-messages)
@@ -60,7 +92,9 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
60
92
 
61
93
  class PostsController
62
94
  def index
63
- respond_with Post.limit(10)
95
+ respond_to do |wants|
96
+ wants.html { render 'index' }
97
+ end
64
98
  end
65
99
  end
66
100
 
@@ -86,24 +120,46 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
86
120
  * `git pull --rebase`
87
121
  * `git checkout <your-branch>`
88
122
  * `git rebase master`
89
- * It is likely a good idea to run your tests again.
90
- * Squash the commits for your branch into one commit
91
- * `git rebase --interactive HEAD~<number-of-commits>` ([See Github help](https://help.github.com/articles/interactive-rebase))
92
- * To determine the number of commits on your branch: `git log master..<your-branch> --oneline | wc -l`
123
+ * It is a good idea to run your tests again.
124
+ * If you've made more than one commit take a moment to consider whether squashing commits together would help improve their logical grouping.
125
+ * [Detailed Walkthrough of One Pull Request per Commit](http://ndlib.github.io/practices/one-commit-per-pull-request/)
126
+ * `git rebase --interactive master` ([See Github help](https://help.github.com/articles/interactive-rebase))
93
127
  * Squashing your branch's changes into one commit is "good form" and helps the person merging your request to see everything that is going on.
94
128
  * Push your changes to a topic branch in your fork of the repository.
95
129
  * Submit a pull request from your fork to the project.
96
130
 
97
- ### Merging Changes
131
+ ### Reviewing and Merging Changes
132
+
133
+ We adopted [Github's Pull Request Review](https://help.github.com/articles/about-pull-request-reviews/) for our repositories.
134
+ Common checks that may occur in our repositories:
135
+
136
+ 1. Travis CI - where our automated tests are running
137
+ 2. Hound CI - where we check for style violations
138
+ 3. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
139
+ 4. CodeClimate - is our code remaining healthy (at least according to static code analysis)
140
+
141
+ If one or more of the required checks failed (or are incomplete), the code should not be merged (and the UI will not allow it). If all of the checks have passed, then anyone on the project (including the pull request submitter) may merge the code.
142
+
143
+ *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks (Travis CI is usually the culprit), so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
144
+
145
+ #### Things to Consider When Reviewing
146
+
147
+ First, the person contributing the code is putting themselves out there. Be mindful of what you say in a review.
148
+
149
+ * Ask clarifying questions
150
+ * State your understanding and expectations
151
+ * Provide example code or alternate solutions, and explain why
152
+
153
+ This is your chance for a mentoring moment of another developer. Take time to give an honest and thorough review of what has changed. Things to consider:
98
154
 
99
- * It is considered "poor from" to merge your own request.
100
- * Please take the time to review the changes and get a sense of what is being changed. Things to consider:
101
155
  * Does the commit message explain what is going on?
102
156
  * Does the code changes have tests? _Not all changes need new tests, some changes are refactorings_
157
+ * Do new or changed methods, modules, and classes have documentation?
103
158
  * Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
159
+ * Does the description of the new/changed specs match your understanding of what the spec is doing?
104
160
  * Did the Travis tests complete successfully?
105
- * If you are uncertain, bring other contributors into the conversation by creating a comment that includes their @username.
106
- * If you like the pull request, but want others to chime in, create a +1 comment and tag a user.
161
+
162
+ If you are uncertain, bring other contributors into the conversation by assigning them as a reviewer.
107
163
 
108
164
  # Additional Resources
109
165
 
@@ -15,8 +15,8 @@ end
15
15
  ```
16
16
 
17
17
  Changes proposed in this pull request:
18
- *
19
- *
20
- *
18
+ *
19
+ *
20
+ *
21
21
 
22
- @projecthydra-labs/hyrax-code-reviewers
22
+ @samvera/hyrax-code-reviewers
@@ -0,0 +1,3 @@
1
+ If you would like to report an issue with Hyrax, first do search [the list of issues](https://github.com/samvera/hyrax/issues/) to see if someone else has already reported it, and then feel free to [create a new issue](https://github.com/samvera/hyrax/issues/new).
2
+
3
+ If you have questions or need help, please email [the Samvera community tech list](mailto:samvera-tech@googlegroups.com) or stop by the #dev channel in [the Samvera community Slack team](https://wiki.duraspace.org/pages/viewpage.action?pageId=87460391#Getintouch!-Slack).
data/.hound.yml CHANGED
@@ -3,3 +3,7 @@ ruby:
3
3
 
4
4
  scss:
5
5
  config_file: .scss-lint.yml
6
+
7
+ eslint:
8
+ enabled: true
9
+ config_file: .eslintrc
@@ -1,4 +1,5 @@
1
- inherit_from: .rubocop_todo.yml
1
+ require: rubocop-rspec
2
+ inherit_from: .rubocop_fixme.yml
2
3
 
3
4
  AllCops:
4
5
  TargetRubyVersion: 2.1
@@ -13,21 +14,43 @@ AllCops:
13
14
  - 'vendor/**/*'
14
15
  - 'lib/hyrax/specs/**/*'
15
16
 
17
+ Bundler/DuplicatedGem: # This doesn't work with engine_cart
18
+ Enabled: false
19
+
20
+ Layout/IndentationConsistency:
21
+ EnforcedStyle: rails
22
+
16
23
  Lint/ImplicitStringConcatenation:
17
24
  Exclude:
18
25
  - 'lib/generators/hyrax/**/*'
19
26
 
27
+ Lint/AmbiguousBlockAssociation:
28
+ Enabled: false
29
+
20
30
  Metrics/LineLength:
21
31
  Max: 200
22
32
 
23
33
  Metrics/AbcSize:
24
- Max: 28
34
+ Max: 26
35
+
36
+ Metrics/BlockLength:
37
+ ExcludedMethods: ['included']
38
+ Exclude:
39
+ - 'hyrax.gemspec'
40
+ - 'app/models/concerns/hyrax/content_block_behavior.rb'
41
+ - 'app/services/hyrax/workflow/workflow_schema.rb'
42
+ - 'config/initializers/simple_form.rb'
43
+ - 'config/routes.rb'
44
+ - 'lib/generators/hyrax/templates/catalog_controller.rb'
45
+ - 'lib/generators/hyrax/templates/config/initializers/simple_form_bootstrap.rb'
46
+ - 'lib/hyrax/rails/routes.rb'
47
+ - 'spec/**/*.rb'
25
48
 
26
49
  Metrics/MethodLength:
27
- Max: 15
50
+ Max: 13
28
51
 
29
- Style/IndentationConsistency:
30
- EnforcedStyle: rails
52
+ Style/AsciiComments:
53
+ Enabled: false
31
54
 
32
55
  Style/CollectionMethods:
33
56
  PreferredMethods:
@@ -37,13 +60,20 @@ Style/CollectionMethods:
37
60
  detect: 'find'
38
61
  find_all: 'select'
39
62
 
63
+ Style/FileName: # https://github.com/bbatsov/rubocop/issues/2973
64
+ Exclude:
65
+ - 'Gemfile'
66
+
40
67
  Style/MethodMissing:
41
68
  Exclude:
42
69
  - 'app/models/concerns/hyrax/file_set/characterization.rb'
43
70
 
44
71
  Style/NumericPredicate:
45
72
  Exclude:
46
- - 'app/controllers/concerns/hyrax/file_sets_controller_behavior.rb'
73
+ - 'app/controllers/hyrax/file_sets_controller.rb'
74
+
75
+ Style/SymbolArray:
76
+ Enabled: false
47
77
 
48
78
  Style/WordArray:
49
79
  Enabled: false
@@ -65,30 +95,39 @@ Style/SingleLineBlockParams:
65
95
 
66
96
  Style/ZeroLengthPredicate:
67
97
  Exclude:
68
- - 'app/controllers/concerns/hyrax/file_sets_controller_behavior.rb'
98
+ - 'app/controllers/hyrax/file_sets_controller.rb'
69
99
 
70
100
  Rails:
71
101
  Enabled: true
72
102
 
103
+ Rails/ApplicationJob:
104
+ Enabled: false
105
+
106
+ Rails/ApplicationRecord:
107
+ Enabled: false
108
+
109
+ # We define custom methods like `find_by_user_key`,
110
+ # `find_by_created_date`, etc
111
+ Rails/DynamicFindBy:
112
+ Enabled: false
113
+
114
+ Rails/FilePath:
115
+ Exclude:
116
+ - 'spec/abilities/**/*'
117
+
73
118
  Rails/OutputSafety:
74
119
  Exclude:
75
- - 'spec/views/hyrax/my/_list_works.html.erb_spec.rb'
76
- - 'app/helpers/hyrax/hyrax_helper_behavior.rb'
77
- - 'app/helpers/hyrax/collections_helper.rb'
78
- - 'app/helpers/hyrax/content_block_helper_behavior.rb'
79
120
  - 'app/builders/hyrax/form_builder.rb'
80
121
  - 'app/helpers/hyrax/citations_behaviors/formatters/apa_formatter.rb'
81
122
  - 'app/helpers/hyrax/citations_behaviors/formatters/chicago_formatter.rb'
82
123
  - 'app/helpers/hyrax/citations_behaviors/formatters/mla_formatter.rb'
124
+ - 'app/helpers/hyrax/collections_helper.rb'
125
+ - 'app/helpers/hyrax/content_block_helper_behavior.rb'
126
+ - 'app/helpers/hyrax/hyrax_helper_behavior.rb'
127
+ - 'app/presenters/hyrax/fixity_status_presenter.rb'
83
128
  - 'app/presenters/hyrax/presents_attributes.rb'
84
129
  - 'app/renderers/hyrax/renderers/attribute_renderer.rb'
85
-
86
- Rails/DynamicFindBy:
87
- Enabled: false
88
-
89
- Rails/FilePath:
90
- Exclude:
91
- - 'spec/abilities/**/*'
130
+ - 'spec/views/hyrax/my/works/_list_works.html.erb_spec.rb'
92
131
 
93
132
  RSpec/DescribeClass:
94
133
  Exclude:
@@ -128,6 +167,3 @@ RSpec/NestedGroups:
128
167
 
129
168
  RSpec/LeadingSubject:
130
169
  Enabled: false
131
-
132
- RSpec/ExampleLength:
133
- Enabled: false
@@ -1,24 +1,11 @@
1
- require: rubocop-rspec
2
-
3
1
  Security/MarshalLoad:
4
2
  Exclude:
5
3
  - 'app/models/concerns/hyrax/user.rb'
6
4
 
7
- Metrics/BlockLength:
8
- Exclude:
9
- - 'app/controllers/concerns/hyrax/collections_controller_behavior.rb'
10
- - 'app/models/concerns/hyrax/basic_metadata.rb'
11
- - 'app/models/concerns/hyrax/admin_set_behavior.rb'
12
- - 'app/services/hyrax/workflow/workflow_schema.rb'
13
- - 'config/initializers/simple_form.rb'
14
- - 'config/routes.rb'
15
- - 'lib/generators/hyrax/templates/catalog_controller.rb'
16
- - 'lib/generators/hyrax/templates/config/initializers/simple_form_bootstrap.rb'
17
- - 'lib/hyrax/rails/routes.rb'
18
- - 'spec/**/*'
19
-
20
5
  Metrics/ClassLength:
21
6
  Exclude:
7
+ - 'app/controllers/hyrax/dashboard/collections_controller.rb'
8
+ - 'app/controllers/hyrax/file_sets_controller.rb'
22
9
  - 'app/forms/hyrax/forms/permission_template_form.rb'
23
10
  - 'app/presenters/hyrax/work_show_presenter.rb'
24
11
  - 'app/services/hyrax/user_stat_importer.rb'
@@ -37,22 +24,16 @@ Metrics/AbcSize:
37
24
 
38
25
  Metrics/ModuleLength:
39
26
  Exclude:
40
- - 'app/controllers/concerns/hyrax/curation_concern_controller.rb'
41
- - 'app/controllers/concerns/hyrax/collections_controller_behavior.rb'
42
- - 'app/controllers/concerns/hyrax/file_sets_controller_behavior.rb'
43
- - 'app/controllers/concerns/hyrax/users_controller_behavior.rb'
27
+ - 'app/controllers/concerns/hyrax/works_controller_behavior.rb'
44
28
  - 'app/helpers/hyrax/hyrax_helper_behavior.rb'
45
29
  - 'app/models/concerns/hyrax/ability.rb'
46
- - 'app/models/concerns/hyrax/solr_document_behavior.rb'
47
30
  - 'app/services/hyrax/workflow/permission_query.rb'
48
31
  - 'spec/services/hyrax/workflow/permission_query_spec.rb'
49
32
 
50
33
  Metrics/MethodLength:
51
34
  Exclude:
52
35
  - 'app/controllers/concerns/hyrax/api.rb'
53
- - 'app/controllers/concerns/hyrax/controller.rb'
54
- - 'app/controllers/concerns/hyrax/curation_concern_controller.rb'
55
- - 'app/controllers/concerns/hyrax/my_controller_behavior.rb'
36
+ - 'app/controllers/concerns/hyrax/works_controller_behavior.rb'
56
37
  - 'app/indexers/hyrax/file_set_indexer.rb'
57
38
  - 'app/inputs/multi_value_select_input.rb'
58
39
  - 'app/models/concerns/hyrax/solr_document/export.rb'
@@ -61,10 +42,10 @@ Metrics/MethodLength:
61
42
  - 'lib/hyrax/rails/routes.rb'
62
43
  - 'spec/support/**/*'
63
44
 
64
- Style/LineEndConcatenation:
45
+ # TODO: remove when https://github.com/bbatsov/rubocop/issues/4539 is fixed
46
+ Style/FormatStringToken:
65
47
  Exclude:
66
- - 'spec/test_app_templates/lib/generators/**/*'
67
- - 'lib/generators/**/*'
48
+ - 'config/routes.rb'
68
49
 
69
50
  Style/PredicateName:
70
51
  Exclude:
@@ -84,12 +65,10 @@ RSpec/ExampleLength:
84
65
  - 'spec/actors/hyrax/actors/generic_work_actor_spec.rb'
85
66
  - 'spec/controllers/hyrax/api/items_controller_spec.rb'
86
67
  - 'spec/controllers/hyrax/batch_uploads_controller_spec.rb'
87
- - 'spec/controllers/hyrax/collections_controller_spec.rb'
88
68
  - 'spec/controllers/hyrax/file_sets_controller_spec.rb'
89
69
  - 'spec/controllers/hyrax/generic_works_controller_spec.rb'
90
70
  - 'spec/controllers/hyrax/my/highlights_controller_spec.rb'
91
71
  - 'spec/controllers/hyrax/transfers_controller_spec.rb'
92
- - 'spec/controllers/hyrax/users_controller_spec.rb'
93
72
  - 'spec/forms/hyrax/forms/collection_form_spec.rb'
94
73
  - 'spec/forms/hyrax/forms/batch_edit_form_spec.rb'
95
74
  - 'spec/forms/hyrax/forms/batch_upload_form_spec.rb'
@@ -119,6 +98,7 @@ RSpec/ExampleLength:
119
98
  - 'spec/presenters/hyrax/inspect_work_presenter_spec.rb'
120
99
  - 'spec/services/hyrax/actor_factory_spec.rb'
121
100
  - 'spec/services/hyrax/admin_set_create_service_spec.rb'
101
+ - 'spec/services/hyrax/default_middleware_stack_spec.rb'
122
102
  - 'spec/services/hyrax/graph_exporter_spec.rb'
123
103
  - 'spec/services/hyrax/user_stat_importer_spec.rb'
124
104
  - 'spec/services/hyrax/workflow/activate_object_spec.rb'
@@ -138,7 +118,7 @@ RSpec/SubjectStub:
138
118
  - 'spec/controllers/hyrax/file_sets_controller_spec.rb'
139
119
  - 'spec/models/file_set_spec.rb'
140
120
  - 'spec/models/hyrax/work_behavior_spec.rb'
141
- - 'spec/search_builder/hyrax/file_set_search_builder_spec.rb'
121
+ - 'spec/search_builders/hyrax/file_set_search_builder_spec.rb'
142
122
  - 'spec/models/hyrax/operation_spec.rb'
143
123
 
144
124
  RSpec/AnyInstance:
@@ -148,22 +128,22 @@ RSpec/AnyInstance:
148
128
  - 'spec/controllers/hyrax/api/items_controller_spec.rb'
149
129
  - 'spec/controllers/hyrax/api/zotero_controller_spec.rb'
150
130
  - 'spec/controllers/hyrax/batch_edits_controller_spec.rb'
151
- - 'spec/controllers/hyrax/collections_controller_spec.rb'
152
131
  - 'spec/controllers/hyrax/dashboard_controller_spec.rb'
153
- - 'spec/controllers/hyrax/mailbox_controller_spec.rb'
154
132
  - 'spec/controllers/hyrax/stats_controller_spec.rb'
155
- - 'spec/controllers/hyrax/users_controller_spec.rb'
156
133
  - 'spec/jobs/file_set_attached_event_job_spec.rb'
157
134
  - 'spec/jobs/content_update_event_job_spec.rb'
158
135
  - 'spec/jobs/content_restored_version_event_job_spec.rb'
159
136
  - 'spec/jobs/content_new_version_event_job_spec.rb'
160
137
  - 'spec/jobs/content_depositor_change_event_job_spec.rb'
161
138
  - 'spec/jobs/content_deposit_event_job_spec.rb'
162
- - 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb'
139
+ - 'spec/jobs/hyrax/grant_edit_to_members_job_spec.rb'
140
+ - 'spec/jobs/hyrax/grant_read_to_members_job_spec.rb'
141
+ - 'spec/jobs/hyrax/revoke_edit_from_members_job_spec.rb'
163
142
  - 'spec/lib/hyrax/arkivo/actor_spec.rb'
164
- - 'spec/presenters/hyrax/work_usage_spec.rb'
143
+ - 'spec/lib/hyrax/arkivo/create_subscription_job_spec.rb'
165
144
  - 'spec/presenters/hyrax/file_usage_spec.rb'
166
- - 'spec/services/hyrax/repository_audit_service_spec.rb'
145
+ - 'spec/presenters/hyrax/work_usage_spec.rb'
146
+ - 'spec/services/hyrax/repository_fixity_check_service_spec.rb'
167
147
  - 'spec/services/hyrax/workflow/permission_generator_spec.rb'
168
148
  - 'spec/services/hyrax/workflow/sipity_actions_generator_spec.rb'
169
149
  - 'spec/services/hyrax/workflow/state_machine_generator_spec.rb'