peoplegroup-connectors 0.1.67 → 0.1.72
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: cc890ae007bcc681a9845f919636dabdfdfffa60824e237b4c318a9dd93f1267
|
4
|
+
data.tar.gz: de839f50dc262dd9e4296c063532b27755aa7ce09830673025ba04a20f8d415a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54af55c8a72c2d36b8eb17445f366fec3645bd96a8a033d7a94bca39cecf3af9dda507920dd215046b27d56c23ca95a60dc08f921f35e8d96c30702caf29a3e4
|
7
|
+
data.tar.gz: c707b1433af08ffad656dd7709023be55ec0c1328ffaba97ab97aedbb45a9c113a3e1a8259b049475357a4669dcd14196e85b3255cb386a6d111369fa80c9671
|
@@ -63,6 +63,10 @@ module PeopleGroup
|
|
63
63
|
retry_on_error { @client.create_issue_note(project, id, text) }
|
64
64
|
end
|
65
65
|
|
66
|
+
def issue_notes(project, id, options = {})
|
67
|
+
retry_on_error { @client.issue_notes(project, id, options) }
|
68
|
+
end
|
69
|
+
|
66
70
|
def edit_issue(project, id, options)
|
67
71
|
retry_on_error { @client.edit_issue(project, id, options) }
|
68
72
|
end
|
@@ -165,7 +169,11 @@ module PeopleGroup
|
|
165
169
|
private
|
166
170
|
|
167
171
|
def retry_on_error(&block)
|
168
|
-
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]
|
169
177
|
end
|
170
178
|
|
171
179
|
def find_epic(group_id, title)
|
@@ -16,6 +16,10 @@ 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 = []
|
@@ -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 = []
|
@@ -65,6 +65,10 @@ module PeopleGroup
|
|
65
65
|
def publish_view(user_id:, trigger:, view:)
|
66
66
|
@client.views_publish(user_id: user_id, trigger_id: trigger, view: view)
|
67
67
|
end
|
68
|
+
|
69
|
+
def get_message(channel:, timestamp:)
|
70
|
+
@client.conversations_history(channel: channel, latest: timestamp, limit: 1, inclusive: true)&.messages&.first
|
71
|
+
end
|
68
72
|
end
|
69
73
|
end
|
70
74
|
end
|
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.72
|
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-09-27 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: []
|