canvas_sync 0.17.8.beta2 → 0.17.10.beta2
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/config/initializers/apartment.rb +1 -1
- data/lib/canvas_sync.rb +1 -0
- data/lib/canvas_sync/batch_processor.rb +41 -0
- data/lib/canvas_sync/engine.rb +43 -0
- data/lib/canvas_sync/importers/bulk_importer.rb +73 -12
- data/lib/canvas_sync/job_batches/batch.rb +2 -2
- data/lib/canvas_sync/job_batches/batch_aware_job.rb +2 -1
- data/lib/canvas_sync/job_batches/callback.rb +1 -3
- data/lib/canvas_sync/job_batches/schedule_callback.lua +2 -2
- data/lib/canvas_sync/job_batches/sidekiq.rb +1 -1
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/log/test.log +17635 -0
- data/spec/job_batching/batch_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +17 -2
@@ -168,7 +168,7 @@ RSpec.describe CanvasSync::JobBatches::Batch do
|
|
168
168
|
CanvasSync::JobBatches::Batch.process_failed_job(bid, 'failed-job-id')
|
169
169
|
CanvasSync::JobBatches::Batch.process_failed_job(bid, failed_jid)
|
170
170
|
failed = CanvasSync::JobBatches::Batch.redis { |r| r.smembers("BID-#{bid}-failed") }
|
171
|
-
expect(failed).to
|
171
|
+
expect(failed).to contain_exactly('xxx', 'failed-job-id')
|
172
172
|
end
|
173
173
|
end
|
174
174
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
ENV['REDIS_URL'] ||= 'redis://localhost:6379/9'
|
3
|
+
|
2
4
|
require "canvas_sync"
|
3
5
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
6
|
# Rails::Generators.invoke("canvas_sync:install", ["--models", "all"], destination_root: Rails.root)
|
@@ -19,7 +21,6 @@ Sidekiq::Testing.server_middleware do |chain|
|
|
19
21
|
chain.add CanvasSync::JobBatches::Sidekiq::ServerMiddleware
|
20
22
|
end
|
21
23
|
|
22
|
-
require 'fakeredis/rspec'
|
23
24
|
Dir[File.dirname(__FILE__) + "/job_batching/support/**/*.rb"].each {|f| require f }
|
24
25
|
|
25
26
|
ActiveRecord::Migration.maintain_test_schema!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.10.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -332,6 +332,20 @@ dependencies:
|
|
332
332
|
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '0'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: chronic_duration
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
type: :runtime
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
335
349
|
description:
|
336
350
|
email:
|
337
351
|
- ncollings@instructure.com
|
@@ -353,6 +367,7 @@ files:
|
|
353
367
|
- db/migrate/20201030210836_add_full_sync_to_canvas_sync_sync_batch.rb
|
354
368
|
- lib/canvas_sync.rb
|
355
369
|
- lib/canvas_sync/api_syncable.rb
|
370
|
+
- lib/canvas_sync/batch_processor.rb
|
356
371
|
- lib/canvas_sync/class_callback_executor.rb
|
357
372
|
- lib/canvas_sync/concerns/account/ancestry.rb
|
358
373
|
- lib/canvas_sync/concerns/api_syncable.rb
|