hyrax 5.0.4 → 5.1.0.pre.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.dassie/Gemfile +11 -12
- data/.dassie/bin/rails +0 -5
- data/.dassie/bin/rake +0 -5
- data/.dassie/config/application.rb +2 -1
- data/.dassie/config/environments/development.rb +1 -1
- data/.dassie/config/environments/production.rb +4 -2
- data/.dassie/config/environments/test.rb +1 -1
- data/.dassie/config/initializers/riiif.rb +20 -18
- data/.dassie/db/schema.rb +109 -110
- data/.github/workflows/lint-build-test.yml +1 -1
- data/.koppie/Gemfile +10 -11
- data/.koppie/bin/rails +0 -5
- data/.koppie/bin/rake +0 -5
- data/.koppie/config/application.rb +2 -1
- data/.koppie/config/environments/development.rb +1 -1
- data/.koppie/config/environments/production.rb +4 -2
- data/.koppie/config/environments/test.rb +1 -1
- data/.koppie/config/initializers/hyrax.rb +20 -17
- data/.koppie/config/initializers/riiif.rb +21 -18
- data/Dockerfile +7 -6
- data/app/actors/hyrax/actors/add_to_work_actor.rb +1 -1
- data/app/actors/hyrax/actors/apply_order_actor.rb +1 -1
- data/app/assets/stylesheets/hyrax/_tinymce.scss +6 -0
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +1 -0
- data/app/controllers/hyrax/admin/permission_template_accesses_controller.rb +4 -4
- data/app/controllers/hyrax/api/zotero_controller.rb +1 -1
- data/app/jobs/batch_create_job.rb +2 -2
- data/app/models/admin_set.rb +2 -2
- data/app/models/concerns/hyrax/permissions/writable.rb +1 -2
- data/app/models/concerns/hyrax/valkyrie_lazy_migration.rb +1 -0
- data/app/models/hyrax/collection_type.rb +4 -4
- data/app/models/single_use_link.rb +1 -1
- data/app/services/hyrax/listeners.rb +1 -0
- data/app/services/hyrax/statistics/term_query.rb +1 -1
- data/app/services/hyrax/user_stat_importer.rb +1 -1
- data/app/services/hyrax/workflow.rb +8 -0
- data/app/validators/hyrax/has_one_title_validator.rb +1 -1
- data/config/initializers/1_healthz.rb +2 -1
- data/config/initializers/ar_test_fixture_monkey_patch.rb +8 -0
- data/config/initializers/arel_rails_7_2_monkey_patch.rb +6 -0
- data/config/initializers/listeners.rb +4 -2
- data/config/initializers/new_framework_defaults_7_2.rb +8 -0
- data/docker-compose-sirenia.yml +1 -1
- data/documentation/developing-your-hyrax-based-app.md +6 -6
- data/hyrax.gemspec +8 -8
- data/lib/generators/hyrax/config_generator.rb +0 -5
- data/lib/generators/hyrax/install_generator.rb +1 -1
- data/lib/generators/hyrax/templates/config/initializers/riiif.rb +21 -19
- data/lib/hyrax/configuration.rb +1 -0
- data/lib/hyrax/controlled_vocabulary/importer/language.rb +1 -1
- data/lib/hyrax/engine.rb +15 -10
- data/lib/hyrax/version.rb +1 -1
- data/lib/hyrax.rb +4 -0
- data/template.rb +6 -1
- metadata +41 -42
- data/.dassie/bin/spring +0 -17
- data/.dassie/config/initializers/mini_magick.rb +0 -6
- data/.dassie/config/spring.rb +0 -6
- data/.koppie/bin/spring +0 -17
- data/.koppie/config/initializers/mini_magick.rb +0 -6
- data/.koppie/config/spring.rb +0 -6
- data/config/initializers/reform_rails_6_1_monkey_patch.rb +0 -27
- data/lib/generators/hyrax/templates/config/initializers/mini_magick.rb +0 -6
data/.dassie/db/schema.rb
CHANGED
@@ -10,8 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
14
|
-
|
13
|
+
ActiveRecord::Schema[7.2].define(version: 2024_05_06_070809) do
|
15
14
|
# These are extensions that must be enabled in order to support this database
|
16
15
|
enable_extension "plpgsql"
|
17
16
|
enable_extension "uuid-ossp"
|
@@ -22,8 +21,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
22
21
|
t.string "document_id"
|
23
22
|
t.string "document_type"
|
24
23
|
t.binary "title"
|
25
|
-
t.datetime "created_at", null: false
|
26
|
-
t.datetime "updated_at", null: false
|
24
|
+
t.datetime "created_at", precision: nil, null: false
|
25
|
+
t.datetime "updated_at", precision: nil, null: false
|
27
26
|
t.index ["document_id"], name: "index_bookmarks_on_document_id"
|
28
27
|
t.index ["user_id"], name: "index_bookmarks_on_user_id"
|
29
28
|
end
|
@@ -34,8 +33,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
34
33
|
t.string "checked_uri"
|
35
34
|
t.string "expected_result"
|
36
35
|
t.string "actual_result"
|
37
|
-
t.datetime "created_at", null: false
|
38
|
-
t.datetime "updated_at", null: false
|
36
|
+
t.datetime "created_at", precision: nil, null: false
|
37
|
+
t.datetime "updated_at", precision: nil, null: false
|
39
38
|
t.boolean "passed"
|
40
39
|
t.index ["checked_uri"], name: "index_checksum_audit_logs_on_checked_uri"
|
41
40
|
t.index ["file_set_id", "file_id"], name: "by_file_set_id_and_file_id"
|
@@ -49,8 +48,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
49
48
|
t.string "target_url"
|
50
49
|
t.integer "height"
|
51
50
|
t.integer "width"
|
52
|
-
t.datetime "created_at", null: false
|
53
|
-
t.datetime "updated_at", null: false
|
51
|
+
t.datetime "created_at", precision: nil, null: false
|
52
|
+
t.datetime "updated_at", precision: nil, null: false
|
54
53
|
end
|
55
54
|
|
56
55
|
create_table "collection_type_participants", force: :cascade do |t|
|
@@ -58,16 +57,16 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
58
57
|
t.string "agent_type"
|
59
58
|
t.string "agent_id"
|
60
59
|
t.string "access"
|
61
|
-
t.datetime "created_at", null: false
|
62
|
-
t.datetime "updated_at", null: false
|
60
|
+
t.datetime "created_at", precision: nil, null: false
|
61
|
+
t.datetime "updated_at", precision: nil, null: false
|
63
62
|
t.index ["hyrax_collection_type_id"], name: "hyrax_collection_type_id"
|
64
63
|
end
|
65
64
|
|
66
65
|
create_table "content_blocks", force: :cascade do |t|
|
67
66
|
t.string "name"
|
68
67
|
t.text "value"
|
69
|
-
t.datetime "created_at", null: false
|
70
|
-
t.datetime "updated_at", null: false
|
68
|
+
t.datetime "created_at", precision: nil, null: false
|
69
|
+
t.datetime "updated_at", precision: nil, null: false
|
71
70
|
t.string "external_key"
|
72
71
|
end
|
73
72
|
|
@@ -84,8 +83,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
84
83
|
t.integer "rgt", null: false
|
85
84
|
t.integer "depth", default: 0, null: false
|
86
85
|
t.integer "children_count", default: 0, null: false
|
87
|
-
t.datetime "created_at", null: false
|
88
|
-
t.datetime "updated_at", null: false
|
86
|
+
t.datetime "created_at", precision: nil, null: false
|
87
|
+
t.datetime "updated_at", precision: nil, null: false
|
89
88
|
t.index ["lft"], name: "index_curation_concerns_operations_on_lft"
|
90
89
|
t.index ["parent_id"], name: "index_curation_concerns_operations_on_parent_id"
|
91
90
|
t.index ["rgt"], name: "index_curation_concerns_operations_on_rgt"
|
@@ -95,29 +94,29 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
95
94
|
create_table "featured_works", force: :cascade do |t|
|
96
95
|
t.integer "order", default: 5
|
97
96
|
t.string "work_id"
|
98
|
-
t.datetime "created_at", null: false
|
99
|
-
t.datetime "updated_at", null: false
|
97
|
+
t.datetime "created_at", precision: nil, null: false
|
98
|
+
t.datetime "updated_at", precision: nil, null: false
|
100
99
|
t.index ["order"], name: "index_featured_works_on_order"
|
101
100
|
t.index ["work_id"], name: "index_featured_works_on_work_id"
|
102
101
|
end
|
103
102
|
|
104
103
|
create_table "file_download_stats", force: :cascade do |t|
|
105
|
-
t.datetime "date"
|
104
|
+
t.datetime "date", precision: nil
|
106
105
|
t.integer "downloads"
|
107
106
|
t.string "file_id"
|
108
|
-
t.datetime "created_at", null: false
|
109
|
-
t.datetime "updated_at", null: false
|
107
|
+
t.datetime "created_at", precision: nil, null: false
|
108
|
+
t.datetime "updated_at", precision: nil, null: false
|
110
109
|
t.integer "user_id"
|
111
110
|
t.index ["file_id"], name: "index_file_download_stats_on_file_id"
|
112
111
|
t.index ["user_id"], name: "index_file_download_stats_on_user_id"
|
113
112
|
end
|
114
113
|
|
115
114
|
create_table "file_view_stats", force: :cascade do |t|
|
116
|
-
t.datetime "date"
|
115
|
+
t.datetime "date", precision: nil
|
117
116
|
t.integer "views"
|
118
117
|
t.string "file_id"
|
119
|
-
t.datetime "created_at", null: false
|
120
|
-
t.datetime "updated_at", null: false
|
118
|
+
t.datetime "created_at", precision: nil, null: false
|
119
|
+
t.datetime "updated_at", precision: nil, null: false
|
121
120
|
t.integer "user_id"
|
122
121
|
t.index ["file_id"], name: "index_file_view_stats_on_file_id"
|
123
122
|
t.index ["user_id"], name: "index_file_view_stats_on_user_id"
|
@@ -147,8 +146,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
147
146
|
t.date "date"
|
148
147
|
t.integer "total_item_investigations"
|
149
148
|
t.integer "total_item_requests"
|
150
|
-
t.datetime "created_at", null: false
|
151
|
-
t.datetime "updated_at", null: false
|
149
|
+
t.datetime "created_at", precision: nil, null: false
|
150
|
+
t.datetime "updated_at", precision: nil, null: false
|
152
151
|
t.string "title"
|
153
152
|
t.integer "year_of_publication"
|
154
153
|
t.string "publisher"
|
@@ -161,15 +160,15 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
161
160
|
|
162
161
|
create_table "hyrax_default_administrative_set", force: :cascade do |t|
|
163
162
|
t.string "default_admin_set_id", null: false
|
164
|
-
t.datetime "created_at", null: false
|
165
|
-
t.datetime "updated_at", null: false
|
163
|
+
t.datetime "created_at", precision: nil, null: false
|
164
|
+
t.datetime "updated_at", precision: nil, null: false
|
166
165
|
end
|
167
166
|
|
168
167
|
create_table "hyrax_features", force: :cascade do |t|
|
169
168
|
t.string "key", null: false
|
170
169
|
t.boolean "enabled", default: false, null: false
|
171
|
-
t.datetime "created_at", null: false
|
172
|
-
t.datetime "updated_at", null: false
|
170
|
+
t.datetime "created_at", precision: nil, null: false
|
171
|
+
t.datetime "updated_at", precision: nil, null: false
|
173
172
|
end
|
174
173
|
|
175
174
|
create_table "job_io_wrappers", force: :cascade do |t|
|
@@ -180,8 +179,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
180
179
|
t.string "original_name"
|
181
180
|
t.string "path"
|
182
181
|
t.string "relation"
|
183
|
-
t.datetime "created_at", null: false
|
184
|
-
t.datetime "updated_at", null: false
|
182
|
+
t.datetime "created_at", precision: nil, null: false
|
183
|
+
t.datetime "updated_at", precision: nil, null: false
|
185
184
|
t.index ["uploaded_file_id"], name: "index_job_io_wrappers_on_uploaded_file_id"
|
186
185
|
t.index ["user_id"], name: "index_job_io_wrappers_on_user_id"
|
187
186
|
end
|
@@ -196,8 +195,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
196
195
|
|
197
196
|
create_table "mailboxer_conversations", id: :serial, force: :cascade do |t|
|
198
197
|
t.string "subject", default: ""
|
199
|
-
t.datetime "created_at", null: false
|
200
|
-
t.datetime "updated_at", null: false
|
198
|
+
t.datetime "created_at", precision: nil, null: false
|
199
|
+
t.datetime "updated_at", precision: nil, null: false
|
201
200
|
end
|
202
201
|
|
203
202
|
create_table "mailboxer_notifications", id: :serial, force: :cascade do |t|
|
@@ -212,10 +211,10 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
212
211
|
t.string "notified_object_type"
|
213
212
|
t.integer "notified_object_id"
|
214
213
|
t.string "attachment"
|
215
|
-
t.datetime "updated_at", null: false
|
216
|
-
t.datetime "created_at", null: false
|
214
|
+
t.datetime "updated_at", precision: nil, null: false
|
215
|
+
t.datetime "created_at", precision: nil, null: false
|
217
216
|
t.boolean "global", default: false
|
218
|
-
t.datetime "expires"
|
217
|
+
t.datetime "expires", precision: nil
|
219
218
|
t.index ["conversation_id"], name: "index_mailboxer_notifications_on_conversation_id"
|
220
219
|
t.index ["notified_object_id", "notified_object_type"], name: "index_mailboxer_notifications_on_notified_object_id_and_type"
|
221
220
|
t.index ["notified_object_type", "notified_object_id"], name: "mailboxer_notifications_notified_object"
|
@@ -231,8 +230,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
231
230
|
t.boolean "trashed", default: false
|
232
231
|
t.boolean "deleted", default: false
|
233
232
|
t.string "mailbox_type", limit: 25
|
234
|
-
t.datetime "created_at", null: false
|
235
|
-
t.datetime "updated_at", null: false
|
233
|
+
t.datetime "created_at", precision: nil, null: false
|
234
|
+
t.datetime "updated_at", precision: nil, null: false
|
236
235
|
t.boolean "is_delivered", default: false
|
237
236
|
t.string "delivery_method"
|
238
237
|
t.string "message_id"
|
@@ -246,15 +245,15 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
246
245
|
t.text "counters"
|
247
246
|
t.bigint "seq", default: 0
|
248
247
|
t.binary "rand"
|
249
|
-
t.datetime "created_at", null: false
|
250
|
-
t.datetime "updated_at", null: false
|
248
|
+
t.datetime "created_at", precision: nil, null: false
|
249
|
+
t.datetime "updated_at", precision: nil, null: false
|
251
250
|
t.index ["namespace"], name: "index_minter_states_on_namespace", unique: true
|
252
251
|
end
|
253
252
|
|
254
253
|
create_table "orm_resources", id: :text, default: -> { "(uuid_generate_v4())::text" }, force: :cascade do |t|
|
255
254
|
t.jsonb "metadata", default: {}, null: false
|
256
|
-
t.datetime "created_at", null: false
|
257
|
-
t.datetime "updated_at", null: false
|
255
|
+
t.datetime "created_at", precision: nil, null: false
|
256
|
+
t.datetime "updated_at", precision: nil, null: false
|
258
257
|
t.string "internal_resource"
|
259
258
|
t.integer "lock_version"
|
260
259
|
t.index ["internal_resource"], name: "index_orm_resources_on_internal_resource"
|
@@ -268,8 +267,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
268
267
|
t.string "agent_type"
|
269
268
|
t.string "agent_id"
|
270
269
|
t.string "access"
|
271
|
-
t.datetime "created_at", null: false
|
272
|
-
t.datetime "updated_at", null: false
|
270
|
+
t.datetime "created_at", precision: nil, null: false
|
271
|
+
t.datetime "updated_at", precision: nil, null: false
|
273
272
|
t.index ["permission_template_id", "agent_id", "agent_type", "access"], name: "uk_permission_template_accesses", unique: true
|
274
273
|
t.index ["permission_template_id"], name: "index_permission_template_accesses_on_permission_template_id"
|
275
274
|
end
|
@@ -277,8 +276,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
277
276
|
create_table "permission_templates", force: :cascade do |t|
|
278
277
|
t.string "source_id"
|
279
278
|
t.string "visibility"
|
280
|
-
t.datetime "created_at", null: false
|
281
|
-
t.datetime "updated_at", null: false
|
279
|
+
t.datetime "created_at", precision: nil, null: false
|
280
|
+
t.datetime "updated_at", precision: nil, null: false
|
282
281
|
t.date "release_date"
|
283
282
|
t.string "release_period"
|
284
283
|
t.index ["source_id"], name: "index_permission_templates_on_source_id", unique: true
|
@@ -288,12 +287,12 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
288
287
|
t.string "work_id", null: false
|
289
288
|
t.bigint "sending_user_id", null: false
|
290
289
|
t.bigint "receiving_user_id", null: false
|
291
|
-
t.datetime "fulfillment_date"
|
290
|
+
t.datetime "fulfillment_date", precision: nil
|
292
291
|
t.string "status", default: "pending", null: false
|
293
292
|
t.text "sender_comment"
|
294
293
|
t.text "receiver_comment"
|
295
|
-
t.datetime "created_at", null: false
|
296
|
-
t.datetime "updated_at", null: false
|
294
|
+
t.datetime "created_at", precision: nil, null: false
|
295
|
+
t.datetime "updated_at", precision: nil, null: false
|
297
296
|
t.index ["receiving_user_id"], name: "index_proxy_deposit_requests_on_receiving_user_id"
|
298
297
|
t.index ["sending_user_id"], name: "index_proxy_deposit_requests_on_sending_user_id"
|
299
298
|
end
|
@@ -301,16 +300,16 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
301
300
|
create_table "proxy_deposit_rights", force: :cascade do |t|
|
302
301
|
t.bigint "grantor_id"
|
303
302
|
t.bigint "grantee_id"
|
304
|
-
t.datetime "created_at", null: false
|
305
|
-
t.datetime "updated_at", null: false
|
303
|
+
t.datetime "created_at", precision: nil, null: false
|
304
|
+
t.datetime "updated_at", precision: nil, null: false
|
306
305
|
t.index ["grantee_id"], name: "index_proxy_deposit_rights_on_grantee_id"
|
307
306
|
t.index ["grantor_id"], name: "index_proxy_deposit_rights_on_grantor_id"
|
308
307
|
end
|
309
308
|
|
310
309
|
create_table "qa_local_authorities", force: :cascade do |t|
|
311
310
|
t.string "name"
|
312
|
-
t.datetime "created_at", null: false
|
313
|
-
t.datetime "updated_at", null: false
|
311
|
+
t.datetime "created_at", precision: nil, null: false
|
312
|
+
t.datetime "updated_at", precision: nil, null: false
|
314
313
|
t.index ["name"], name: "index_qa_local_authorities_on_name", unique: true
|
315
314
|
end
|
316
315
|
|
@@ -318,8 +317,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
318
317
|
t.bigint "local_authority_id"
|
319
318
|
t.string "label"
|
320
319
|
t.string "uri"
|
321
|
-
t.datetime "created_at", null: false
|
322
|
-
t.datetime "updated_at", null: false
|
320
|
+
t.datetime "created_at", precision: nil, null: false
|
321
|
+
t.datetime "updated_at", precision: nil, null: false
|
323
322
|
t.index ["local_authority_id"], name: "index_qa_local_authority_entries_on_local_authority_id"
|
324
323
|
t.index ["uri"], name: "index_qa_local_authority_entries_on_uri", unique: true
|
325
324
|
end
|
@@ -328,8 +327,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
328
327
|
t.binary "query_params"
|
329
328
|
t.integer "user_id"
|
330
329
|
t.string "user_type"
|
331
|
-
t.datetime "created_at", null: false
|
332
|
-
t.datetime "updated_at", null: false
|
330
|
+
t.datetime "created_at", precision: nil, null: false
|
331
|
+
t.datetime "updated_at", precision: nil, null: false
|
333
332
|
t.index ["user_id"], name: "index_searches_on_user_id"
|
334
333
|
end
|
335
334
|
|
@@ -337,16 +336,16 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
337
336
|
t.string "download_key"
|
338
337
|
t.string "path"
|
339
338
|
t.string "item_id"
|
340
|
-
t.datetime "expires"
|
341
|
-
t.datetime "created_at", null: false
|
342
|
-
t.datetime "updated_at", null: false
|
339
|
+
t.datetime "expires", precision: nil
|
340
|
+
t.datetime "created_at", precision: nil, null: false
|
341
|
+
t.datetime "updated_at", precision: nil, null: false
|
343
342
|
end
|
344
343
|
|
345
344
|
create_table "sipity_agents", force: :cascade do |t|
|
346
345
|
t.string "proxy_for_id", null: false
|
347
346
|
t.string "proxy_for_type", null: false
|
348
|
-
t.datetime "created_at", null: false
|
349
|
-
t.datetime "updated_at", null: false
|
347
|
+
t.datetime "created_at", precision: nil, null: false
|
348
|
+
t.datetime "updated_at", precision: nil, null: false
|
350
349
|
t.index ["proxy_for_id", "proxy_for_type"], name: "sipity_agents_proxy_for", unique: true
|
351
350
|
end
|
352
351
|
|
@@ -354,8 +353,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
354
353
|
t.integer "entity_id", null: false
|
355
354
|
t.integer "agent_id", null: false
|
356
355
|
t.text "comment"
|
357
|
-
t.datetime "created_at", null: false
|
358
|
-
t.datetime "updated_at", null: false
|
356
|
+
t.datetime "created_at", precision: nil, null: false
|
357
|
+
t.datetime "updated_at", precision: nil, null: false
|
359
358
|
t.index ["agent_id"], name: "index_sipity_comments_on_agent_id"
|
360
359
|
t.index ["created_at"], name: "index_sipity_comments_on_created_at"
|
361
360
|
t.index ["entity_id"], name: "index_sipity_comments_on_entity_id"
|
@@ -365,8 +364,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
365
364
|
t.string "proxy_for_global_id", null: false
|
366
365
|
t.integer "workflow_id", null: false
|
367
366
|
t.integer "workflow_state_id"
|
368
|
-
t.datetime "created_at", null: false
|
369
|
-
t.datetime "updated_at", null: false
|
367
|
+
t.datetime "created_at", precision: nil, null: false
|
368
|
+
t.datetime "updated_at", precision: nil, null: false
|
370
369
|
t.index ["proxy_for_global_id"], name: "sipity_entities_proxy_for_global_id", unique: true
|
371
370
|
t.index ["workflow_id"], name: "index_sipity_entities_on_workflow_id"
|
372
371
|
t.index ["workflow_state_id"], name: "index_sipity_entities_on_workflow_state_id"
|
@@ -376,8 +375,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
376
375
|
t.integer "workflow_role_id", null: false
|
377
376
|
t.integer "entity_id", null: false
|
378
377
|
t.integer "agent_id", null: false
|
379
|
-
t.datetime "created_at", null: false
|
380
|
-
t.datetime "updated_at", null: false
|
378
|
+
t.datetime "created_at", precision: nil, null: false
|
379
|
+
t.datetime "updated_at", precision: nil, null: false
|
381
380
|
t.index ["agent_id"], name: "sipity_entity_specific_responsibilities_agent"
|
382
381
|
t.index ["entity_id"], name: "sipity_entity_specific_responsibilities_entity"
|
383
382
|
t.index ["workflow_role_id", "entity_id", "agent_id"], name: "sipity_entity_specific_responsibilities_aggregate", unique: true
|
@@ -389,8 +388,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
389
388
|
t.string "scope_for_notification_type", null: false
|
390
389
|
t.string "reason_for_notification", null: false
|
391
390
|
t.integer "notification_id", null: false
|
392
|
-
t.datetime "created_at", null: false
|
393
|
-
t.datetime "updated_at", null: false
|
391
|
+
t.datetime "created_at", precision: nil, null: false
|
392
|
+
t.datetime "updated_at", precision: nil, null: false
|
394
393
|
t.index ["notification_id"], name: "sipity_notifiable_contexts_notification_id"
|
395
394
|
t.index ["scope_for_notification_id", "scope_for_notification_type", "reason_for_notification", "notification_id"], name: "sipity_notifiable_contexts_concern_surrogate", unique: true
|
396
395
|
t.index ["scope_for_notification_id", "scope_for_notification_type", "reason_for_notification"], name: "sipity_notifiable_contexts_concern_context"
|
@@ -401,8 +400,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
401
400
|
t.integer "notification_id", null: false
|
402
401
|
t.integer "role_id", null: false
|
403
402
|
t.string "recipient_strategy", null: false
|
404
|
-
t.datetime "created_at", null: false
|
405
|
-
t.datetime "updated_at", null: false
|
403
|
+
t.datetime "created_at", precision: nil, null: false
|
404
|
+
t.datetime "updated_at", precision: nil, null: false
|
406
405
|
t.index ["notification_id", "role_id", "recipient_strategy"], name: "sipity_notifications_recipients_surrogate"
|
407
406
|
t.index ["notification_id"], name: "sipity_notification_recipients_notification"
|
408
407
|
t.index ["recipient_strategy"], name: "sipity_notification_recipients_recipient_strategy"
|
@@ -412,8 +411,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
412
411
|
create_table "sipity_notifications", force: :cascade do |t|
|
413
412
|
t.string "name", null: false
|
414
413
|
t.string "notification_type", null: false
|
415
|
-
t.datetime "created_at", null: false
|
416
|
-
t.datetime "updated_at", null: false
|
414
|
+
t.datetime "created_at", precision: nil, null: false
|
415
|
+
t.datetime "updated_at", precision: nil, null: false
|
417
416
|
t.index ["name"], name: "index_sipity_notifications_on_name", unique: true
|
418
417
|
t.index ["notification_type"], name: "index_sipity_notifications_on_notification_type"
|
419
418
|
end
|
@@ -421,8 +420,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
421
420
|
create_table "sipity_roles", force: :cascade do |t|
|
422
421
|
t.string "name", null: false
|
423
422
|
t.text "description"
|
424
|
-
t.datetime "created_at", null: false
|
425
|
-
t.datetime "updated_at", null: false
|
423
|
+
t.datetime "created_at", precision: nil, null: false
|
424
|
+
t.datetime "updated_at", precision: nil, null: false
|
426
425
|
t.index ["name"], name: "index_sipity_roles_on_name", unique: true
|
427
426
|
end
|
428
427
|
|
@@ -430,8 +429,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
430
429
|
t.integer "workflow_id", null: false
|
431
430
|
t.integer "resulting_workflow_state_id"
|
432
431
|
t.string "name", null: false
|
433
|
-
t.datetime "created_at", null: false
|
434
|
-
t.datetime "updated_at", null: false
|
432
|
+
t.datetime "created_at", precision: nil, null: false
|
433
|
+
t.datetime "updated_at", precision: nil, null: false
|
435
434
|
t.index ["resulting_workflow_state_id"], name: "sipity_workflow_actions_resulting_workflow_state"
|
436
435
|
t.index ["workflow_id", "name"], name: "sipity_workflow_actions_aggregate", unique: true
|
437
436
|
t.index ["workflow_id"], name: "sipity_workflow_actions_workflow"
|
@@ -441,48 +440,48 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
441
440
|
t.string "service_name", null: false
|
442
441
|
t.integer "weight", null: false
|
443
442
|
t.integer "workflow_action_id", null: false
|
444
|
-
t.datetime "created_at", null: false
|
445
|
-
t.datetime "updated_at", null: false
|
443
|
+
t.datetime "created_at", precision: nil, null: false
|
444
|
+
t.datetime "updated_at", precision: nil, null: false
|
446
445
|
t.index ["workflow_action_id"], name: "index_sipity_workflow_methods_on_workflow_action_id"
|
447
446
|
end
|
448
447
|
|
449
448
|
create_table "sipity_workflow_responsibilities", force: :cascade do |t|
|
450
449
|
t.integer "agent_id", null: false
|
451
450
|
t.integer "workflow_role_id", null: false
|
452
|
-
t.datetime "created_at", null: false
|
453
|
-
t.datetime "updated_at", null: false
|
451
|
+
t.datetime "created_at", precision: nil, null: false
|
452
|
+
t.datetime "updated_at", precision: nil, null: false
|
454
453
|
t.index ["agent_id", "workflow_role_id"], name: "sipity_workflow_responsibilities_aggregate", unique: true
|
455
454
|
end
|
456
455
|
|
457
456
|
create_table "sipity_workflow_roles", force: :cascade do |t|
|
458
457
|
t.integer "workflow_id", null: false
|
459
458
|
t.integer "role_id", null: false
|
460
|
-
t.datetime "created_at", null: false
|
461
|
-
t.datetime "updated_at", null: false
|
459
|
+
t.datetime "created_at", precision: nil, null: false
|
460
|
+
t.datetime "updated_at", precision: nil, null: false
|
462
461
|
t.index ["workflow_id", "role_id"], name: "sipity_workflow_roles_aggregate", unique: true
|
463
462
|
end
|
464
463
|
|
465
464
|
create_table "sipity_workflow_state_action_permissions", force: :cascade do |t|
|
466
465
|
t.integer "workflow_role_id", null: false
|
467
466
|
t.integer "workflow_state_action_id", null: false
|
468
|
-
t.datetime "created_at", null: false
|
469
|
-
t.datetime "updated_at", null: false
|
467
|
+
t.datetime "created_at", precision: nil, null: false
|
468
|
+
t.datetime "updated_at", precision: nil, null: false
|
470
469
|
t.index ["workflow_role_id", "workflow_state_action_id"], name: "sipity_workflow_state_action_permissions_aggregate", unique: true
|
471
470
|
end
|
472
471
|
|
473
472
|
create_table "sipity_workflow_state_actions", force: :cascade do |t|
|
474
473
|
t.integer "originating_workflow_state_id", null: false
|
475
474
|
t.integer "workflow_action_id", null: false
|
476
|
-
t.datetime "created_at", null: false
|
477
|
-
t.datetime "updated_at", null: false
|
475
|
+
t.datetime "created_at", precision: nil, null: false
|
476
|
+
t.datetime "updated_at", precision: nil, null: false
|
478
477
|
t.index ["originating_workflow_state_id", "workflow_action_id"], name: "sipity_workflow_state_actions_aggregate", unique: true
|
479
478
|
end
|
480
479
|
|
481
480
|
create_table "sipity_workflow_states", force: :cascade do |t|
|
482
481
|
t.integer "workflow_id", null: false
|
483
482
|
t.string "name", null: false
|
484
|
-
t.datetime "created_at", null: false
|
485
|
-
t.datetime "updated_at", null: false
|
483
|
+
t.datetime "created_at", precision: nil, null: false
|
484
|
+
t.datetime "updated_at", precision: nil, null: false
|
486
485
|
t.index ["name"], name: "index_sipity_workflow_states_on_name"
|
487
486
|
t.index ["workflow_id", "name"], name: "sipity_type_state_aggregate", unique: true
|
488
487
|
end
|
@@ -491,8 +490,8 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
491
490
|
t.string "name", null: false
|
492
491
|
t.string "label"
|
493
492
|
t.text "description"
|
494
|
-
t.datetime "created_at", null: false
|
495
|
-
t.datetime "updated_at", null: false
|
493
|
+
t.datetime "created_at", precision: nil, null: false
|
494
|
+
t.datetime "updated_at", precision: nil, null: false
|
496
495
|
t.integer "permission_template_id"
|
497
496
|
t.boolean "active"
|
498
497
|
t.boolean "allows_access_grant"
|
@@ -501,34 +500,34 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
501
500
|
|
502
501
|
create_table "tinymce_assets", force: :cascade do |t|
|
503
502
|
t.string "file"
|
504
|
-
t.datetime "created_at", null: false
|
505
|
-
t.datetime "updated_at", null: false
|
503
|
+
t.datetime "created_at", precision: nil, null: false
|
504
|
+
t.datetime "updated_at", precision: nil, null: false
|
506
505
|
end
|
507
506
|
|
508
507
|
create_table "trophies", force: :cascade do |t|
|
509
508
|
t.integer "user_id"
|
510
509
|
t.string "work_id"
|
511
|
-
t.datetime "created_at", null: false
|
512
|
-
t.datetime "updated_at", null: false
|
510
|
+
t.datetime "created_at", precision: nil, null: false
|
511
|
+
t.datetime "updated_at", precision: nil, null: false
|
513
512
|
end
|
514
513
|
|
515
514
|
create_table "uploaded_files", force: :cascade do |t|
|
516
515
|
t.string "file"
|
517
516
|
t.bigint "user_id"
|
518
517
|
t.string "file_set_uri"
|
519
|
-
t.datetime "created_at", null: false
|
520
|
-
t.datetime "updated_at", null: false
|
518
|
+
t.datetime "created_at", precision: nil, null: false
|
519
|
+
t.datetime "updated_at", precision: nil, null: false
|
521
520
|
t.index ["file_set_uri"], name: "index_uploaded_files_on_file_set_uri"
|
522
521
|
t.index ["user_id"], name: "index_uploaded_files_on_user_id"
|
523
522
|
end
|
524
523
|
|
525
524
|
create_table "user_stats", force: :cascade do |t|
|
526
525
|
t.integer "user_id"
|
527
|
-
t.datetime "date"
|
526
|
+
t.datetime "date", precision: nil
|
528
527
|
t.integer "file_views"
|
529
528
|
t.integer "file_downloads"
|
530
|
-
t.datetime "created_at", null: false
|
531
|
-
t.datetime "updated_at", null: false
|
529
|
+
t.datetime "created_at", precision: nil, null: false
|
530
|
+
t.datetime "updated_at", precision: nil, null: false
|
532
531
|
t.integer "work_views"
|
533
532
|
t.index ["user_id"], name: "index_user_stats_on_user_id"
|
534
533
|
end
|
@@ -537,10 +536,10 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
537
536
|
t.string "email", default: "", null: false
|
538
537
|
t.string "encrypted_password", default: "", null: false
|
539
538
|
t.string "reset_password_token"
|
540
|
-
t.datetime "reset_password_sent_at"
|
541
|
-
t.datetime "remember_created_at"
|
542
|
-
t.datetime "created_at", null: false
|
543
|
-
t.datetime "updated_at", null: false
|
539
|
+
t.datetime "reset_password_sent_at", precision: nil
|
540
|
+
t.datetime "remember_created_at", precision: nil
|
541
|
+
t.datetime "created_at", precision: nil, null: false
|
542
|
+
t.datetime "updated_at", precision: nil, null: false
|
544
543
|
t.boolean "guest", default: false
|
545
544
|
t.string "facebook_handle"
|
546
545
|
t.string "twitter_handle"
|
@@ -558,7 +557,7 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
558
557
|
t.string "avatar_file_name"
|
559
558
|
t.string "avatar_content_type"
|
560
559
|
t.integer "avatar_file_size"
|
561
|
-
t.datetime "avatar_updated_at"
|
560
|
+
t.datetime "avatar_updated_at", precision: nil
|
562
561
|
t.string "linkedin_handle"
|
563
562
|
t.string "orcid"
|
564
563
|
t.string "arkivo_token"
|
@@ -575,16 +574,16 @@ ActiveRecord::Schema.define(version: 2024_05_06_070809) do
|
|
575
574
|
t.string "datastream_id"
|
576
575
|
t.string "version_id"
|
577
576
|
t.string "committer_login"
|
578
|
-
t.datetime "created_at", null: false
|
579
|
-
t.datetime "updated_at", null: false
|
577
|
+
t.datetime "created_at", precision: nil, null: false
|
578
|
+
t.datetime "updated_at", precision: nil, null: false
|
580
579
|
end
|
581
580
|
|
582
581
|
create_table "work_view_stats", force: :cascade do |t|
|
583
|
-
t.datetime "date"
|
582
|
+
t.datetime "date", precision: nil
|
584
583
|
t.integer "work_views"
|
585
584
|
t.string "work_id"
|
586
|
-
t.datetime "created_at", null: false
|
587
|
-
t.datetime "updated_at", null: false
|
585
|
+
t.datetime "created_at", precision: nil, null: false
|
586
|
+
t.datetime "updated_at", precision: nil, null: false
|
588
587
|
t.integer "user_id"
|
589
588
|
t.index ["user_id"], name: "index_work_view_stats_on_user_id"
|
590
589
|
t.index ["work_id"], name: "index_work_view_stats_on_work_id"
|
data/.koppie/Gemfile
CHANGED
@@ -18,19 +18,21 @@ gem 'devise-guests', '~> 0.8'
|
|
18
18
|
# Required because grpc and google-protobuf gem's binaries are not compatible with Alpine Linux.
|
19
19
|
# To install the package in Alpine: `apk add ruby-grpc`
|
20
20
|
# The pinned versions should match the version provided by the Alpine packages.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
|
22
|
+
# Disabled due to dependency mismatches in Alpine packages (grpc 1.62.1 needs protobuf ~> 3.25)
|
23
|
+
# if RUBY_PLATFORM =~ /musl/
|
24
|
+
# path '/usr/lib/ruby/gems/3.3.0' do
|
25
|
+
# gem 'google-protobuf', '~> 3.24.4', force_ruby_platform: true
|
26
|
+
# gem 'grpc', '~> 1.62.1', force_ruby_platform: true
|
27
|
+
# end
|
28
|
+
# end
|
27
29
|
|
28
30
|
gemspec name: 'hyrax', path: ENV.fetch('HYRAX_ENGINE_PATH', '..')
|
29
31
|
gem 'jbuilder', '~> 2.5'
|
30
32
|
gem 'jquery-rails'
|
31
33
|
gem 'pg', '~> 1.3'
|
32
34
|
gem 'puma'
|
33
|
-
gem 'rails', '~>
|
35
|
+
gem 'rails', '~> 7.2', '< 8.0'
|
34
36
|
gem 'riiif', '~> 2.1'
|
35
37
|
gem 'rsolr', '>= 1.0', '< 3'
|
36
38
|
gem 'sass-rails', '~> 6.0'
|
@@ -39,6 +41,7 @@ gem 'turbolinks', '~> 5'
|
|
39
41
|
gem 'twitter-typeahead-rails', '0.11.1.pre.corejavascript'
|
40
42
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
41
43
|
gem 'uglifier', '>= 1.3.0'
|
44
|
+
gem 'activerecord-nulldb-adapter', '~> 1.1'
|
42
45
|
|
43
46
|
group :development do
|
44
47
|
gem 'better_errors' # add command line in browser when errors
|
@@ -46,10 +49,6 @@ group :development do
|
|
46
49
|
|
47
50
|
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
48
51
|
gem 'web-console', '>= 3.3.0'
|
49
|
-
gem 'listen', '>= 3.0.5', '< 3.2'
|
50
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
51
|
-
gem 'spring'
|
52
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
53
52
|
end
|
54
53
|
|
55
54
|
group :development, :test do
|
data/.koppie/bin/rails
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
begin
|
3
|
-
load File.expand_path('../spring', __FILE__)
|
4
|
-
rescue LoadError => e
|
5
|
-
raise unless e.message.include?('spring')
|
6
|
-
end
|
7
2
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
8
3
|
require_relative '../config/boot'
|
9
4
|
require 'rails/commands'
|
data/.koppie/bin/rake
CHANGED
@@ -9,7 +9,8 @@ Bundler.require(*Rails.groups)
|
|
9
9
|
module Koppie
|
10
10
|
class Application < Rails::Application
|
11
11
|
# Initialize configuration defaults for originally generated Rails version.
|
12
|
-
config.load_defaults
|
12
|
+
config.load_defaults 7.2
|
13
|
+
config.add_autoload_paths_to_load_path = true
|
13
14
|
|
14
15
|
# Settings in config/environments/* take precedence over those specified here.
|
15
16
|
# Application configuration can go into files in config/initializers
|
@@ -55,7 +55,7 @@ Rails.application.configure do
|
|
55
55
|
config.assets.quiet = true
|
56
56
|
|
57
57
|
# Raises error for missing translations
|
58
|
-
# config.
|
58
|
+
# config.i18n.raise_on_missing_translations = true
|
59
59
|
|
60
60
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
61
61
|
# routes, locales, etc. This feature depends on the listen gem.
|