gitlab_support_readiness 1.0.45 → 1.0.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_billing_entity_change.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_investigate.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_reset_seat_qsr.rb +10 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_edit.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_extension.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_over_plan.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_extension.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_former_customer.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_migration.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_other.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_prospect.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_support_upgrade.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edb11b28298e518d4d8b001901c2319d128c5b1d1889f11ee9d585d9f1d13a5a
|
4
|
+
data.tar.gz: d8d643cc7ea96e65202249fc5b03c7fd9a183f4fd6632792999624a94b294c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd1e4b004b8c2daf0c3e8698e34b3081d811a401a91d94f76b468f3bdfcb4bf2c13b4d44e55cd795028a11a27d1c5591aa4e477c801f8e0b4b07bb4e9b3ecce6
|
7
|
+
data.tar.gz: 2546ab917b91e6e179cbee93de799bb0ee63520e099869281b91f39b193cf636340f389b753cdce804d24b8729d9936393903ce1591e3713456f1cef02788dc1
|
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb
CHANGED
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb
CHANGED
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb
CHANGED
@@ -27,7 +27,7 @@ module Readiness
|
|
27
27
|
if seats.to_i > 25 || Date.parse(sub_end_date) > (Date.today + 1.years)
|
28
28
|
Readiness::SupportSuperFormProcessor::Shared.invalid_nfr_request(requester_email)
|
29
29
|
end
|
30
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
30
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
31
31
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
32
32
|
end
|
33
33
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
@@ -63,6 +63,15 @@ module Readiness
|
|
63
63
|
@requester ||= Readiness::SupportSuperFormProcessor::Shared.gitlab_user_check(@gitlab_admin_client, requester_email)
|
64
64
|
end
|
65
65
|
|
66
|
+
##
|
67
|
+
# Sets the global variable namespace_provided
|
68
|
+
#
|
69
|
+
# @author Jason Colyer
|
70
|
+
# @since 1.0.47
|
71
|
+
def self.namespace_provided
|
72
|
+
@namespace_provided ||= ENV.fetch('RESET_SEATS_QSR_NAMESPACE')
|
73
|
+
end
|
74
|
+
|
66
75
|
##
|
67
76
|
# Sets the global variable zd_user
|
68
77
|
#
|
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_extension.rb
CHANGED
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_over_plan.rb
CHANGED
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::GitLab::Namespaces.exists?(
|
24
|
+
unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_provided)
|
25
25
|
Readiness::SupportSuperFormProcessor::Shared.invalid_namespace(requester_email, namespace_provided)
|
26
26
|
end
|
27
27
|
@namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
|
@@ -91,7 +91,7 @@ module Readiness
|
|
91
91
|
# @author Jason Colyer
|
92
92
|
# @since 1.0.42
|
93
93
|
def self.determine_manager
|
94
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
94
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
95
95
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
96
96
|
return nil if found_user.nil?
|
97
97
|
|
@@ -195,7 +195,7 @@ module Readiness
|
|
195
195
|
# @author Jason Colyer
|
196
196
|
# @since 1.0.42
|
197
197
|
def self.determine_manager
|
198
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
198
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
199
199
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
200
200
|
return nil if found_user.nil?
|
201
201
|
|
@@ -162,7 +162,7 @@ module Readiness
|
|
162
162
|
# @author Jason Colyer
|
163
163
|
# @since 1.0.42
|
164
164
|
def self.determine_manager
|
165
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
165
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
166
166
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
167
167
|
return nil if found_user.nil?
|
168
168
|
|
@@ -146,7 +146,7 @@ module Readiness
|
|
146
146
|
# @author Jason Colyer
|
147
147
|
# @since 1.0.42
|
148
148
|
def self.determine_manager
|
149
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
149
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
150
150
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
151
151
|
return nil if found_user.nil?
|
152
152
|
|
@@ -195,7 +195,7 @@ module Readiness
|
|
195
195
|
# @author Jason Colyer
|
196
196
|
# @since 1.0.42
|
197
197
|
def self.determine_manager
|
198
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
198
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
199
199
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
200
200
|
return nil if found_user.nil?
|
201
201
|
|
@@ -204,7 +204,7 @@ module Readiness
|
|
204
204
|
# @author Jason Colyer
|
205
205
|
# @since 1.0.42
|
206
206
|
def self.determine_manager
|
207
|
-
user_search = Readiness::GitLab::Users.search_by_email(
|
207
|
+
user_search = Readiness::GitLab::Users.search_by_email(@gitlab_admin_client, manager_handle)
|
208
208
|
found_user = user_search.detect { |u| u.email.downcase == email.downcase }
|
209
209
|
return nil if found_user.nil?
|
210
210
|
|