strongmind-platform-sdk 3.19.12 → 3.19.13
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/Gemfile.lock +1 -1
- data/lib/platform_sdk/active_record/data_pipelineable.rb +14 -2
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c3c712c2fc562f84a6c9c689aff656811166a69fd465c8c7be28fc5f74b9de
|
4
|
+
data.tar.gz: c4ee9b6c0a9431888b896be1a10e16784a484a73581d5df3d55a6cfc1a981319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7283e747a0e4bdb2b91cefe583fa871b4d3a232a4898b4b1e63f1764b0c692da2cf102302963afd4b3b12c536a84e9a3ec25968165464f1d2aeb5f92f88cc0dd
|
7
|
+
data.tar.gz: 3951f91be2df18a8ac2fcf8f18699df96516cb78beae5fb21547383a2ffa19561bd88121abd621b9490a7ee29b537d40cbb863d52849e40a793b77b49576c337
|
data/Gemfile.lock
CHANGED
@@ -45,8 +45,12 @@ module PlatformSdk
|
|
45
45
|
data_hash = { action: }.merge!(attributes.symbolize_keys)
|
46
46
|
|
47
47
|
data_hash.merge!(pipeline_additional_attributes)
|
48
|
+
Rails.logger.info("Data Hash after merge of additional attrs: #{data_hash}")
|
48
49
|
|
49
|
-
data_hash.except(*pipeline_excluded_attributes)
|
50
|
+
data_hash = data_hash.except(*pipeline_excluded_attributes)
|
51
|
+
|
52
|
+
Rails.logger.info("Data Pipeline Payload: #{data_hash}")
|
53
|
+
data_hash
|
50
54
|
end
|
51
55
|
|
52
56
|
def pipeline_additional_attributes
|
@@ -64,9 +68,17 @@ module PlatformSdk
|
|
64
68
|
pipeline_password: ENV.fetch('DATA_PIPELINE_PASSWORD', '')
|
65
69
|
}
|
66
70
|
client = PlatformSdk::DataPipeline::Client.new(credentials)
|
67
|
-
|
71
|
+
|
72
|
+
begin
|
73
|
+
client.post(pipeline_payload(action)) unless Rails.env.development?
|
74
|
+
rescue => e
|
75
|
+
Rails.logger.info("Error posting to data pipeline: #{e.message}")
|
76
|
+
end
|
77
|
+
|
68
78
|
return unless respond_to?(:one_roster_data_type) && !Rails.env.development?
|
69
79
|
|
80
|
+
Rails.logger.info('POSTING TO ONE ROSTER...')
|
81
|
+
|
70
82
|
client.post(one_roster_pipeline_payload(deleted: action == "destroyed"))
|
71
83
|
end
|
72
84
|
end
|
data/lib/platform_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-platform-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.19.
|
4
|
+
version: 3.19.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|