embulk-input-zendesk 0.2.8 → 0.2.9

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
  SHA1:
3
- metadata.gz: d42980e49e3a8c59c1e3acb8f4a07826bf43c9fe
4
- data.tar.gz: 9778438abe30c426dc1f26f2a25e860b83048d6e
3
+ metadata.gz: 64f55acf87cf55a85fcb254b2f894dc1ff87df89
4
+ data.tar.gz: 6212020f5b1b5e2b9b7bbc989eaad0cc45b275e7
5
5
  SHA512:
6
- metadata.gz: b1017ac48fa66deff29cb0336ceaa591c457b6ba981ed63dd7136aff99aa4f3b6f412055d61dc113560574ae3cd2e51710a8f07b55bbb599e7301bd5319a0188
7
- data.tar.gz: 63048888d00de3dc6d1f00c600498ce50f7da65c16f57055fe6ca16cb7b14a787790c69598895ec8fcee04df85bf8e43b2d269ad3af56cced6cf60df754da6bf
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.8"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-zendesk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59