embulk-input-zendesk 0.2.8 → 0.2.9
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/CHANGELOG.md +3 -0
- data/embulk-input-zendesk.gemspec +1 -1
- data/lib/embulk/input/zendesk/client.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f55acf87cf55a85fcb254b2f894dc1ff87df89
|
4
|
+
data.tar.gz: 6212020f5b1b5e2b9b7bbc989eaad0cc45b275e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c340a0cbda23f8ffdd7b2ea8c68cdc5c1db63d9b045b5b4fe034830e5fd2b020791075cea69f526b6c425ce73e338d4ad7267c1beeb30dbfb326ce3e36d09e9d
|
7
|
+
data.tar.gz: 44fb974d6c961580ee72cba9baa3792a780719696ab72cf2980235944ba807f1ac16bd03e7a1b86d86ae9f3ec37fe1ec0f1996cb7f275fa7be54255866fd3697
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 0.2.9 - 2017-08-03
|
2
|
+
* [fixed] `start_time` is not merged to `query`, causing infinite loop [#42](https://github.com/treasure-data/embulk-input-zendesk/pull/42)
|
3
|
+
|
1
4
|
## 0.2.8 - 2017-07-28
|
2
5
|
* [fixed] Raise `DataError` instead of `TempError` after giving up for `TempError` [#40](https://github.com/treasure-data/embulk-input-zendesk/pull/40)
|
3
6
|
* [enhancement] Only rescue `TempError` when executing thread pool, only create/shutdown pool once during retry, move retry to inside of `execute_thread_pool`
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-input-zendesk"
|
4
|
-
spec.version = "0.2.
|
4
|
+
spec.version = "0.2.9"
|
5
5
|
spec.authors = ["uu59", "muga", "sakama"]
|
6
6
|
spec.summary = "Zendesk input plugin for Embulk"
|
7
7
|
spec.description = "Loads records from Zendesk."
|
@@ -165,9 +165,8 @@ module Embulk
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def incremental_export(path, key, start_time = 0, known_ids = [], partial = true, query = {}, &block)
|
168
|
-
query.merge!(start_time: start_time)
|
169
168
|
if partial
|
170
|
-
records = request_partial(path, query).first(5)
|
169
|
+
records = request_partial(path, query.merge(start_time: start_time)).first(5)
|
171
170
|
records.uniq{|r| r["id"]}.each do |record|
|
172
171
|
block.call record
|
173
172
|
end
|
@@ -177,7 +176,7 @@ module Embulk
|
|
177
176
|
execute_thread_pool do |pool|
|
178
177
|
loop do
|
179
178
|
start_fetching = Time.now
|
180
|
-
response = request(path, query)
|
179
|
+
response = request(path, query.merge(start_time: start_time))
|
181
180
|
actual_fetched = 0
|
182
181
|
data = JSON.parse(response.body)
|
183
182
|
# no key found in response occasionally => retry
|