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.
Files changed (17) hide show
  1. checksums.yaml +4 -4
  2. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_billing_entity_change.rb +1 -1
  3. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb +1 -1
  4. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_investigate.rb +1 -1
  5. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb +1 -1
  6. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb +1 -1
  7. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_reset_seat_qsr.rb +10 -1
  8. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_edit.rb +1 -1
  9. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_extension.rb +1 -1
  10. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_over_plan.rb +1 -1
  11. data/lib/support_readiness/support_super_form_processor/gratis_support_extension.rb +1 -1
  12. data/lib/support_readiness/support_super_form_processor/gratis_support_former_customer.rb +1 -1
  13. data/lib/support_readiness/support_super_form_processor/gratis_support_migration.rb +1 -1
  14. data/lib/support_readiness/support_super_form_processor/gratis_support_other.rb +1 -1
  15. data/lib/support_readiness/support_super_form_processor/gratis_support_prospect.rb +1 -1
  16. data/lib/support_readiness/support_super_form_processor/gratis_support_upgrade.rb +1 -1
  17. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd41ce25fa47378b587b9ab02e515cd74110ee1564cb959bf9e6bb876318d6fb
4
- data.tar.gz: 18d71e8bc1805feb4b9ccd2da04fe69d75f2a64897b128740f14f589f7854853
3
+ metadata.gz: edb11b28298e518d4d8b001901c2319d128c5b1d1889f11ee9d585d9f1d13a5a
4
+ data.tar.gz: d8d643cc7ea96e65202249fc5b03c7fd9a183f4fd6632792999624a94b294c0e
5
5
  SHA512:
6
- metadata.gz: dcbdce88e2bbfe93906a0bc87238d49f171e41051f42fd47090bbd1e563d82c475c0b1612009ddbdf21ebc538a3f9a9a74c080e73789fbee26ebb32a33fe40ff
7
- data.tar.gz: 89c640a91237666ab952a4119949c1413184884799ef0f94a9e689ed0bd5b469ab12084b8e37460a18b75b919a1e8cf367c1a7e208dce9a18330e1ca3b25ecba
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?(client, namespace_provided)
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?(client, namespace_provided)
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?(client, namespace_provided)
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?(client, namespace_provided)
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)
@@ -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?(client, namespace_provided)
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?(client, namespace_provided)
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?(client, namespace_provided)
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?(client, namespace_provided)
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?(client, namespace_provided)
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(client, manager_handle)
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(client, manager_handle)
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(client, manager_handle)
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(client, manager_handle)
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(client, manager_handle)
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(client, manager_handle)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.45
4
+ version: 1.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer