peoplegroup-connectors 0.1.70 → 0.1.74
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5356752b9161c1869293f51f145fc4ef5cfc643741ed8409353b87378470d48e
|
4
|
+
data.tar.gz: d279a84051cb974afbc3414bee5638a874bb43218728ac5210611cb4ec0f22ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6000d5b98239e8b705798916e0be0dc4d50c6a35971d6ca095ee65b61efd741a5f84658cc3d779af2f1a598e7edfd7a2db5d8c7b81b38b27397fb814d248177
|
7
|
+
data.tar.gz: 1a2e3e9104b3bd755bec0d17b49f899c031b89b74db9e72c43aa213006772dcc4e18a5ed5096b8806f5ca10c0a2e120f2c58aeee3a03d2d65086ca01d40a3f63
|
@@ -380,7 +380,7 @@ module PeopleGroup
|
|
380
380
|
end
|
381
381
|
|
382
382
|
def retry_on_error(&block)
|
383
|
-
Utils.retry_on_error(errors: [Net::ReadTimeout, Bamboozled::GatewayError], delay: 3, &block)
|
383
|
+
Utils.retry_on_error(errors: [Net::ReadTimeout, Bamboozled::GatewayError, Bamboozled::ServiceUnavailable], delay: 3, &block)
|
384
384
|
end
|
385
385
|
end
|
386
386
|
end
|
@@ -169,7 +169,11 @@ module PeopleGroup
|
|
169
169
|
private
|
170
170
|
|
171
171
|
def retry_on_error(&block)
|
172
|
-
Utils.retry_on_error(errors:
|
172
|
+
Utils.retry_on_error(errors: retry_errors, delay: 3, &block)
|
173
|
+
end
|
174
|
+
|
175
|
+
def retry_errors
|
176
|
+
[Gitlab::Error::InternalServerError, Gitlab::Error::BadGateway, Gitlab::Error::ServiceUnavailable]
|
173
177
|
end
|
174
178
|
|
175
179
|
def find_epic(group_id, title)
|
@@ -16,13 +16,17 @@ module PeopleGroup
|
|
16
16
|
@client.offers_for_application(application_id)
|
17
17
|
end
|
18
18
|
|
19
|
+
def current_offer_for_application(application_id)
|
20
|
+
@client.current_offer_for_application(application_id)
|
21
|
+
end
|
22
|
+
|
19
23
|
def hired_candidates(updated_since)
|
20
24
|
page = 1
|
21
25
|
candidates = []
|
22
26
|
on_error = -> { p [updated_since, page] }
|
23
27
|
|
24
28
|
loop do
|
25
|
-
results = Utils.retry_on_error(errors: [GreenhouseIo::Error], on_error: on_error) do
|
29
|
+
results = Utils.retry_on_error(errors: [GreenhouseIo::Error, RestClient::InternalServerError], on_error: on_error) do
|
26
30
|
@client.candidates(nil, updated_after: updated_since, page: page)
|
27
31
|
end
|
28
32
|
|
@@ -51,6 +55,12 @@ module PeopleGroup
|
|
51
55
|
@client.create_candidate_note(candidate_id, note, ENV['GREENHOUSE_AUTHOR_ID'])
|
52
56
|
end
|
53
57
|
|
58
|
+
def candidates(id = nil, options = {})
|
59
|
+
Utils.retry_on_error(errors: [GreenhouseIo::Error, Net::OpenTimeout], on_error: on_error) do
|
60
|
+
get_from_harvest_api "#{BASE_URL}/candidates#{path_id(id)}", options, "candidates"
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
54
64
|
def users
|
55
65
|
page = 1
|
56
66
|
users = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peoplegroup-connectors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|
@@ -190,7 +190,7 @@ metadata:
|
|
190
190
|
homepage_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
|
191
191
|
source_code_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
|
192
192
|
changelog_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
|
193
|
-
post_install_message:
|
193
|
+
post_install_message:
|
194
194
|
rdoc_options: []
|
195
195
|
require_paths:
|
196
196
|
- lib
|
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
209
|
-
signing_key:
|
208
|
+
rubygems_version: 3.1.4
|
209
|
+
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Library for our shared connectors.
|
212
212
|
test_files: []
|