multiwoven-integrations 0.15.8 → 0.15.10

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: fe7a29213798a9623c099ad656bf59c4df6644abc2f3f6fa1bb564027e2ea542
4
- data.tar.gz: f40d9a3f8777343e97ab5a59a345c5d2f09cab796c4003f3318e34da5e21c9f4
3
+ metadata.gz: 0bd4700c4c04ca8b4c67a3fe775104f2081e3fce2dc8628936cac70b60cb3fe4
4
+ data.tar.gz: e1cf0405a0d0775638f3e27d0c1d3babb21d2bca2f2b806363b908cb07370508
5
5
  SHA512:
6
- metadata.gz: 7ee67556ae997eb3823f0918be2c1cec8fbf0fbfa1c29d482b5ed1abbc8190fa85909697dc0c776d68ada30dfc4d25eda71e0696a502984ba4c39dddcb68bc95
7
- data.tar.gz: 936b5cb63ec6b668d23acdef259604c9ea6040c065b936c072a4a9bb44fd917517c36f8b36c70faa6653ad86c18aae356be612ea3ca995add242abc6274c29a2
6
+ metadata.gz: 52e96a9dd052cfb7b99af82d49cc910dc03698cbb4b406554280c507d8f3c7e8260aa4397522fc6547a306c9e4e80954aee44d6e640d311dc143f0918beb9f5c
7
+ data.tar.gz: 46073602a80873d3ed517e0e6b8296951fe810b5be48002ec89e537b5c0adf2db2bd0b721db326402a8b1207addf6d630d8194e9e5e613b9bbb3b2a7d51a1343
@@ -61,11 +61,11 @@ module Multiwoven
61
61
  )
62
62
  end
63
63
 
64
- def create_log_message(context, type, exception)
64
+ def create_log_message(context, type, message)
65
65
  Integrations::Protocol::LogMessage.new(
66
66
  name: context,
67
67
  level: type,
68
- message: exception.message
68
+ message: message
69
69
  ).to_multiwoven_message
70
70
  end
71
71
 
@@ -74,7 +74,7 @@ module Multiwoven
74
74
  "#{hash_to_string(meta)}: #{exception.message}"
75
75
  )
76
76
  report_exception(exception, meta)
77
- create_log_message(meta[:context], meta[:type], exception)
77
+ create_log_message(meta[:context], meta[:type], exception.message)
78
78
  end
79
79
 
80
80
  def hash_to_string(hash)
@@ -9,7 +9,7 @@
9
9
  "json_schema": {
10
10
  "type": "object",
11
11
  "additionalProperties": true,
12
- "required": ["email"],
12
+ "required": ["email", "first_name", "last_name"],
13
13
  "properties": {
14
14
  "email": {
15
15
  "type": "string",
@@ -70,7 +70,7 @@
70
70
  "supported_sync_modes": ["incremental"],
71
71
  "source_defined_cursor": true,
72
72
  "default_cursor_field": ["timestamp_opt"],
73
- "source_defined_primary_key": [["email"]]
73
+ "source_defined_primary_key": ["email"]
74
74
  },
75
75
  {
76
76
  "name": "Tags",
@@ -94,7 +94,8 @@
94
94
  },
95
95
  "supported_sync_modes": ["incremental"],
96
96
  "source_defined_cursor": true,
97
- "default_cursor_field": ["updated"]
97
+ "default_cursor_field": ["email"],
98
+ "source_defined_primary_key": ["email"]
98
99
  },
99
100
  {
100
101
  "name": "Campaigns",
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.15.8"
5
+ VERSION = "0.15.10"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -65,7 +65,7 @@ module Multiwoven::Integrations::Source
65
65
  data = JSON.parse(response.body)
66
66
  [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
67
67
  else
68
- create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed")
68
+ create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
69
69
  end
70
70
  end
71
71
 
@@ -72,7 +72,7 @@ module Multiwoven::Integrations::Source
72
72
  data = JSON.parse(response.body)
73
73
  [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
74
74
  else
75
- create_log_message("HTTP MODEL:RUN_MODEL", "error", "request failed")
75
+ create_log_message("HTTP MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
76
76
  end
77
77
  end
78
78
 
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.8
4
+ version: 0.15.10
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-12-05 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport