ddr-batch 1.7.2 → 2.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -0
  3. data/app/jobs/ddr/batch/batch_processor_job.rb +7 -2
  4. data/app/mailers/ddr/batch/batch_processor_run_mailer.rb +7 -24
  5. data/app/models/ddr/batch/batch.rb +18 -20
  6. data/app/models/ddr/batch/batch_ability_definitions.rb +14 -0
  7. data/app/models/ddr/batch/batch_object.rb +26 -35
  8. data/app/models/ddr/batch/batch_object_attribute.rb +7 -2
  9. data/app/models/ddr/batch/batch_object_datastream.rb +5 -0
  10. data/app/models/ddr/batch/batch_object_relationship.rb +1 -0
  11. data/app/models/ddr/batch/ingest_batch_object.rb +21 -25
  12. data/app/models/ddr/batch/update_batch_object.rb +10 -18
  13. data/app/scripts/ddr/batch/batch_processor.rb +152 -0
  14. data/app/views/ddr/batch/batch_processor_run_mailer/send_notification.html.erb +5 -5
  15. data/app/views/ddr/batch/batch_processor_run_mailer/send_notification.text.erb +5 -5
  16. data/config/locales/en.yml +2 -3
  17. data/lib/ddr/batch.rb +0 -6
  18. data/lib/ddr/batch/version.rb +1 -1
  19. metadata +31 -47
  20. data/app/jobs/ddr/batch/batch_deletion_job.rb +0 -19
  21. data/app/jobs/ddr/batch/batch_objects_processor_job.rb +0 -11
  22. data/app/models/ddr/batch/batch_object_message.rb +0 -8
  23. data/app/models/ddr/batch/batch_object_role.rb +0 -26
  24. data/app/models/ddr/batch/error.rb +0 -10
  25. data/app/models/ddr/batch/log.rb +0 -29
  26. data/app/services/ddr/batch/monitor_batch_finished.rb +0 -87
  27. data/app/services/ddr/batch/monitor_batch_object_handled.rb +0 -42
  28. data/app/services/ddr/batch/monitor_batch_started.rb +0 -43
  29. data/app/services/ddr/batch/process_batch.rb +0 -60
  30. data/app/services/ddr/batch/process_batch_object.rb +0 -46
  31. data/app/services/ddr/batch/process_batch_objects.rb +0 -39
  32. data/config/initializers/subscriptions.rb +0 -9
  33. data/db/migrate/20160816164010_create_batch_object_roles.rb +0 -15
  34. data/db/migrate/20161115191636_add_columns_to_batch_object.rb +0 -9
  35. data/db/migrate/20161116142512_create_batch_object_messages.rb +0 -13
  36. data/db/migrate/20161222192611_remove_columns_from_batch.rb +0 -13
  37. data/db/migrate/20171116183514_add_collection_columns_to_batch.rb +0 -8
@@ -1,15 +0,0 @@
1
- class CreateBatchObjectRoles < ActiveRecord::Migration
2
- def change
3
- unless table_exists?(:batch_object_roles)
4
- create_table :batch_object_roles do |t|
5
- t.integer "batch_object_id"
6
- t.string "operation"
7
- t.string "agent"
8
- t.string "role_type"
9
- t.string "role_scope"
10
- t.datetime "created_at"
11
- t.datetime "updated_at"
12
- end
13
- end
14
- end
15
- end
@@ -1,9 +0,0 @@
1
- class AddColumnsToBatchObject < ActiveRecord::Migration
2
- def change
3
- change_table :batch_objects do |t|
4
- t.boolean "handled", default: false
5
- t.boolean "processed", default: false
6
- t.boolean "validated", default: false
7
- end
8
- end
9
- end
@@ -1,13 +0,0 @@
1
- class CreateBatchObjectMessages < ActiveRecord::Migration
2
- def change
3
- unless table_exists?(:batch_object_messages)
4
- create_table :batch_object_messages do |t|
5
- t.integer :batch_object_id
6
- t.integer :level, default: Logger::DEBUG
7
- t.text :message, limit: 65535
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- class RemoveColumnsFromBatch < ActiveRecord::Migration
2
- def up
3
- remove_column :batches, :failure
4
- remove_column :batches, :success
5
- end
6
-
7
- def down
8
- change_table :batches do |t|
9
- t.integer "failure", default: 0
10
- t.integer "success", default: 0
11
- end
12
- end
13
- end
@@ -1,8 +0,0 @@
1
- class AddCollectionColumnsToBatch < ActiveRecord::Migration
2
- def change
3
- change_table :batches do |t|
4
- t.string "collection_id", null: true
5
- t.string "collection_title", null: true
6
- end
7
- end
8
- end