bridge_cache 0.3.24 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 764413e60345f1fcc6fa74522094a4e438f4327a20e22834130e90d12956dfba
|
4
|
+
data.tar.gz: 003faa3c9754429860df06f1e5d43bf42868a926bd6eab7f7c17bfc85aabe946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d696a215c8501609f71e30482dc8c1f41d663b49e4e32c769d226cb95a3f58674b8911442fd811a024e341d2b8d3bdf576c2ace7dc63fbcdd1e31b5de9311bcd
|
7
|
+
data.tar.gz: d64f99d9672512effb6c6f68f3796c02ed54c8b06aa6fcea545bc1064605afbcb1a8f5a391a2fbddc8adef09abed8e7d3c3ffc6006e980fdd99e41ad919a9ff2
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
1
|
+
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
|
2
2
|
module BridgeCache
|
3
3
|
module Jobs
|
4
4
|
class ImportCheck < ActiveJob::Base
|
@@ -17,8 +17,11 @@ module BridgeCache
|
|
17
17
|
def perform(account_settings, attempts, chain = [], retries = 0)
|
18
18
|
@account_settings = account_settings.with_indifferent_access
|
19
19
|
|
20
|
-
if
|
21
|
-
Rails.logger.fatal("Bridge data dump
|
20
|
+
if spent_time > 90 && remote_data.status == BridgeBlueprint::Constants::STATUS_PENDING
|
21
|
+
Rails.logger.fatal("Bridge data dump stucked to download after #{spent_time} minutes. Starting again.")
|
22
|
+
BridgeCache::Jobs::ImportStart.set(queue: queue_name).perform_later(@account_settings, chain, retries - 1)
|
23
|
+
elsif attempts > max_import_attempts
|
24
|
+
Rails.logger.fatal("Bridge data dump failed to download after #{spent_time} minutes")
|
22
25
|
elsif remote_data.status == BridgeBlueprint::Constants::STATUS_COMPLETE
|
23
26
|
BridgeCache::Jobs::ImportData.set(queue: queue_name).perform_later(@account_settings, chain)
|
24
27
|
elsif remote_data.status == BridgeBlueprint::Constants::STATUS_PENDING
|
@@ -32,7 +35,11 @@ module BridgeCache
|
|
32
35
|
BridgeCache::Jobs::ImportStart.set(queue: queue_name).perform_later(@account_settings, chain, retries - 1)
|
33
36
|
end
|
34
37
|
end
|
38
|
+
|
39
|
+
def spent_time
|
40
|
+
(max_import_attempts * 30) / 60
|
41
|
+
end
|
35
42
|
end
|
36
43
|
end
|
37
44
|
end
|
38
|
-
# rubocop:enable Metrics/AbcSize,Metrics/MethodLength
|
45
|
+
# rubocop:enable Metrics/AbcSize,Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class AddTagsAndRelevanceToAffiliations < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
return unless BridgeCache.use_internal_database
|
4
|
+
|
5
|
+
add_column :bridge_cache_affiliated_sub_accounts, :share_tags, :boolean
|
6
|
+
add_column :bridge_cache_affiliated_sub_accounts, :share_group_relevance, :boolean
|
7
|
+
end
|
8
|
+
end
|
data/lib/bridge_cache/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jshaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-import
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.2.4.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 5.2.4.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rein
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- db/migrate/20190801163930_create_user_course_visits.rb
|
278
278
|
- db/migrate/20200717142423_add_hris_id_to_bridge_cache_users.rb
|
279
279
|
- db/migrate/20201102153622_change_external_course_id_to_string.rb
|
280
|
+
- db/migrate/20230607141402_add_tags_and_relevance_to_affiliations.rb
|
280
281
|
- lib/bridge_cache.rb
|
281
282
|
- lib/bridge_cache/engine.rb
|
282
283
|
- lib/bridge_cache/version.rb
|
@@ -300,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
301
|
- !ruby/object:Gem::Version
|
301
302
|
version: '0'
|
302
303
|
requirements: []
|
303
|
-
rubygems_version: 3.
|
304
|
+
rubygems_version: 3.1.6
|
304
305
|
signing_key:
|
305
306
|
specification_version: 4
|
306
307
|
summary: A mountable engine for bridge data storage
|