gitlab_support_readiness 1.0.92 → 1.0.94
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: 0efdf1a5044eb63d59e75b1e33031f2bda552a260e14f0f21d197352b775a636
|
4
|
+
data.tar.gz: d38913632e80d586b547ec097dd04ed0994adf1062d1315e1e2926e24e979d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a05908eb47230f799c3760d42b7d269e682f824593a0296ffd8294787369ecc6f4fbd5ecb5ca531990428b7f46e5944689922f06b9ce26836dbbcbeb859407b
|
7
|
+
data.tar.gz: baf32e622e56a63b9126235969697f76eda9a990d303e2fb0fd8963194b0f8d0a59e7b1c583629303c252fcb9d33c4246a0d2605ddd55794f8d1d11455d7a6e0
|
@@ -210,6 +210,9 @@ module Readiness
|
|
210
210
|
# # => "https://gitlab.com/gitlab-com/support/support-team-meta"
|
211
211
|
def self.find(client, pid, attributes = [])
|
212
212
|
response = client.connection.get("projects/#{pid}?#{to_param_string(attributes)}")
|
213
|
+
if response.status == 301
|
214
|
+
response = client.connection.get("projects/#{response.body.split('/').last}?#{to_param_string(attributes)}")
|
215
|
+
end
|
213
216
|
handle_request_error(0, 'GitLab', response.status, { action: 'get', id: pid }) unless response.status == 200
|
214
217
|
return Projects.new(Oj.load(response.body)) if response.status == 200
|
215
218
|
|
@@ -236,6 +239,9 @@ module Readiness
|
|
236
239
|
# # => "https://gitlab.com/gitlab-com/support/support-team-meta"
|
237
240
|
def self.find!(client, pid, attributes = [])
|
238
241
|
response = client.connection.get("projects/#{pid}?#{to_param_string(attributes)}")
|
242
|
+
if response.status == 301
|
243
|
+
response = client.connection.get("projects/#{response.body.split('/').last}?#{to_param_string(attributes)}")
|
244
|
+
end
|
239
245
|
handle_request_error(1, 'GitLab', response.status, { action: 'Find project', id: pid }) unless response.status == 200
|
240
246
|
Projects.new(Oj.load(response.body))
|
241
247
|
end
|
@@ -59,7 +59,7 @@ module Readiness
|
|
59
59
|
elsif @user.note =~ /^User blocked as part of GitLab PS user migration/
|
60
60
|
@requester = Readiness::Zendesk::Users.find!(@zendesk_client, @ticket.submitter_id)
|
61
61
|
search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, @requester.email)
|
62
|
-
@
|
62
|
+
@requester_gitlab = search.detect { |s| s.email.downcase == @requester.email.downcase }
|
63
63
|
return failed_ps_block if @requester_gitlab.nil?
|
64
64
|
|
65
65
|
memberships = Readiness::GitLab::Users.memberships(@gitlab_admin_client, @requester, ['type=Namespace'])
|
@@ -271,7 +271,7 @@ module Readiness
|
|
271
271
|
|
272
272
|
To process the removal, an Owner of a top-level paid subscription must make the request.
|
273
273
|
|
274
|
-
Please consider having an Owner of a top-level paid subscription must make the request submit a new ticket to have this
|
274
|
+
Please consider having an Owner of a top-level paid subscription must make the request submit a new ticket to have this automated process unblock the requested user.
|
275
275
|
|
276
276
|
Thank you,
|
277
277
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_support_readiness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.94
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Colyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|