multiwoven-integrations 0.15.2 → 0.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/multiwoven/integrations/core/http_client.rb +5 -2
- data/lib/multiwoven/integrations/destination/ais_data_store/client.rb +4 -4
- data/lib/multiwoven/integrations/destination/ais_data_store/config/meta.json +1 -1
- data/lib/multiwoven/integrations/destination/ais_data_store/config/spec.json +10 -10
- data/lib/multiwoven/integrations/rollout.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: acac8b39dc55f791583c7d36c2a28b66e8612eb30fe64b82b95614a94396a73e
|
4
|
+
data.tar.gz: 4daed0b62e0b2f8d5f804f21623901e418de57d677e30ba056a4632fd23d3e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff74811a333c2f0fcd1ad546c87a07dd0295dc24d5765b93010243b4f5174f455469538bcc994a417f40306e81463e767a935b4f76b01c9ff9d61c7e67c4cf3f
|
7
|
+
data.tar.gz: 84f502f75b115f8e7ce89460a87f93cdaae331d50b3f187ecdde4756af6067173b7c45776dae743919bbd0d5bd5fb13955f4baf0f82aa6c6e760abeae50999c1
|
@@ -10,8 +10,11 @@ module Multiwoven
|
|
10
10
|
http.use_ssl = (uri.scheme == "https")
|
11
11
|
|
12
12
|
# Set timeout if provided
|
13
|
-
|
14
|
-
|
13
|
+
if config[:timeout]
|
14
|
+
timeout_value = config[:timeout].to_f
|
15
|
+
http.open_timeout = timeout_value
|
16
|
+
http.read_timeout = timeout_value
|
17
|
+
end
|
15
18
|
|
16
19
|
request = build_request(method, uri, payload, headers)
|
17
20
|
http.request(request)
|
@@ -35,7 +35,7 @@ module Multiwoven::Integrations::Destination
|
|
35
35
|
catalog.to_multiwoven_message
|
36
36
|
rescue StandardError => e
|
37
37
|
handle_exception(e, {
|
38
|
-
context: "
|
38
|
+
context: "AIS:DATA:STORE:DISCOVER:EXCEPTION",
|
39
39
|
type: "error"
|
40
40
|
})
|
41
41
|
ensure
|
@@ -54,14 +54,14 @@ module Multiwoven::Integrations::Destination
|
|
54
54
|
|
55
55
|
records.each do |record|
|
56
56
|
query = Multiwoven::Integrations::Core::QueryBuilder.perform(action, table_name, record, primary_key)
|
57
|
-
logger.debug("
|
57
|
+
logger.debug("AIS:DATA:STORE:WRITE:QUERY query = #{query} sync_id = #{sync_config.sync_id} sync_run_id = #{sync_config.sync_run_id}")
|
58
58
|
begin
|
59
59
|
response = db.exec(query)
|
60
60
|
write_success += 1
|
61
61
|
log_message_array << log_request_response("info", query, response)
|
62
62
|
rescue StandardError => e
|
63
63
|
handle_exception(e, {
|
64
|
-
context: "
|
64
|
+
context: "AIS:DATA:STORE:RECORD:WRITE:EXCEPTION",
|
65
65
|
type: "error",
|
66
66
|
sync_id: sync_config.sync_id,
|
67
67
|
sync_run_id: sync_config.sync_run_id
|
@@ -73,7 +73,7 @@ module Multiwoven::Integrations::Destination
|
|
73
73
|
tracking_message(write_success, write_failure, log_message_array)
|
74
74
|
rescue StandardError => e
|
75
75
|
handle_exception(e, {
|
76
|
-
context: "
|
76
|
+
context: "AIS:DATA:STORE:RECORD:WRITE:EXCEPTION",
|
77
77
|
type: "error",
|
78
78
|
sync_id: sync_config.sync_id,
|
79
79
|
sync_run_id: sync_config.sync_run_id
|
@@ -5,7 +5,7 @@
|
|
5
5
|
"connector_type": "destination",
|
6
6
|
"category": "Database",
|
7
7
|
"documentation_url": "https://docs.mutliwoven.com",
|
8
|
-
"github_issue_label": "destination-
|
8
|
+
"github_issue_label": "destination-ais-data-store",
|
9
9
|
"icon": "icon.svg",
|
10
10
|
"license": "MIT",
|
11
11
|
"release_stage": "alpha",
|
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"documentation_url": "https://docs.multiwoven.com/integrations/
|
2
|
+
"documentation_url": "https://docs.multiwoven.com/integrations/destination/ais-data-store",
|
3
3
|
"stream_type": "dynamic",
|
4
4
|
"connection_specification": {
|
5
5
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
6
|
-
"title": "
|
6
|
+
"title": "AIS Data Store",
|
7
7
|
"type": "object",
|
8
8
|
"required": ["host", "port", "database", "schema"],
|
9
9
|
"properties": {
|
@@ -19,8 +19,8 @@
|
|
19
19
|
"readOnly": true
|
20
20
|
},
|
21
21
|
"username": {
|
22
|
-
"description": "Username refers to your individual
|
23
|
-
"examples": ["
|
22
|
+
"description": "Username refers to your individual AIS Data Store login credentials. At a minimum, the user associated with these credentials must be granted read access to the data intended for synchronization.",
|
23
|
+
"examples": ["AIS_DATA_STORE_USER"],
|
24
24
|
"type": "string",
|
25
25
|
"title": "Username",
|
26
26
|
"order": 1
|
@@ -36,29 +36,29 @@
|
|
36
36
|
"order": 0
|
37
37
|
},
|
38
38
|
"host": {
|
39
|
-
"description": "The hostname or IP address of your
|
39
|
+
"description": "The hostname or IP address of your AIS Data Store server.",
|
40
40
|
"examples": ["127.0.0.1"],
|
41
41
|
"type": "string",
|
42
42
|
"title": "Host",
|
43
43
|
"order": 1
|
44
44
|
},
|
45
45
|
"port": {
|
46
|
-
"description": "The port number for your
|
46
|
+
"description": "The port number for your AIS Data Store server, which defaults to 5432, may vary based on your configuration. ",
|
47
47
|
"examples": ["5432"],
|
48
48
|
"type": "string",
|
49
49
|
"title": "Port",
|
50
50
|
"order": 2
|
51
51
|
},
|
52
52
|
"database": {
|
53
|
-
"description": "The specific
|
54
|
-
"examples": ["
|
53
|
+
"description": "The specific AIS Data Store database to connect to.",
|
54
|
+
"examples": ["AIS_DATA_STORE_DB"],
|
55
55
|
"type": "string",
|
56
56
|
"title": "Database",
|
57
57
|
"order": 3
|
58
58
|
},
|
59
59
|
"schema": {
|
60
|
-
"description": "The schema within the
|
61
|
-
"examples": ["
|
60
|
+
"description": "The schema within the AIS Data Store database.",
|
61
|
+
"examples": ["AIS_DATA_STORE_SCHEMA"],
|
62
62
|
"type": "string",
|
63
63
|
"title": "Schema",
|
64
64
|
"order": 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiwoven-integrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin T P
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|