gitlab_support_readiness 1.0.80 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/support_readiness/repos/zendesk_salesforce_sync.rb +4 -0
- data/lib/support_readiness/salesforce/accounts.rb +6 -0
- data/lib/support_readiness/salesforce/subscription_definitions.rb +30 -0
- 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 +1 -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/shared.rb +13 -0
- data/lib/support_readiness/ticket_processor/organization_notes.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f4570f7add99e7c252ebcdb5bcf6a793902de409c8e36fb13f36bdc73358d5
|
4
|
+
data.tar.gz: 3f5e3bc1f72936d735089392dd065f8acdebbf2a5cca2086323de39c50e7f5ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc082cb2418b5dc406e0186c871c9a01cc637706dbd65e2068468205e32b15e7196d398b8f39e6ded4b907273a614eda81f302681919cb483543c6cdd4acf8aa
|
7
|
+
data.tar.gz: d97f7bf324f532f839e9d1451488924640e7424231794e164669579004cfa3440678aab5092867293836b53c1c129f41bb3daad68c45c2fe7447d38bb056f704
|
@@ -766,6 +766,8 @@ module Readiness
|
|
766
766
|
'sub_oss' => org.organization_fields['sub_oss'],
|
767
767
|
'sub_community_other' => org.organization_fields['sub_community_other'],
|
768
768
|
'sub_ss_ase' => org.organization_fields['sub_ss_ase'],
|
769
|
+
'sub_ss_success_growth' => org.organization_fields['sub_ss_success_growth'],
|
770
|
+
'sub_ss_success_enterprise' => org.organization_fields['sub_ss_success_enterprise'],
|
769
771
|
'sub_other' => org.organization_fields['sub_other'],
|
770
772
|
'partner_customer' => org.organization_fields['partner_customer'],
|
771
773
|
'not_in_sfdc' => org.organization_fields['not_in_sfdc'],
|
@@ -1010,6 +1012,8 @@ module Readiness
|
|
1010
1012
|
'sub_sm_starter' => account['sub_sm_starter'],
|
1011
1013
|
'sub_sm_ultimate' => account['sub_sm_ultimate'],
|
1012
1014
|
'sub_ss_ase' => account['sub_ss_ase'],
|
1015
|
+
'sub_ss_success_growth' => account['sub_ss_success_growth'],
|
1016
|
+
'sub_ss_success_enterprise' => account['sub_ss_success_enterprise'],
|
1013
1017
|
'sub_usgov_12x5' => account['sub_usgov_12x5'],
|
1014
1018
|
'sub_usgov_24x7' => account['sub_usgov_24x7'],
|
1015
1019
|
'support_hold' => account['support_hold'],
|
@@ -170,6 +170,8 @@ module Readiness
|
|
170
170
|
"sub_oss" => subscriptions.include?('sub_oss'),
|
171
171
|
"sub_community_other" => subscriptions.include?('sub_community_other'),
|
172
172
|
"sub_ss_ase" => subscriptions.include?('sub_ss_ase'),
|
173
|
+
'sub_ss_success_growth' => subscriptions.include?('sub_ss_success_growth'),
|
174
|
+
'sub_ss_success_enterprise' => subscriptions.include?('sub_ss_success_enterprise'),
|
173
175
|
"sub_other" => subscriptions.include?('sub_other'),
|
174
176
|
"partner_customer" => account_is_partner_customer?(account, type),
|
175
177
|
"not_in_sfdc" => false,
|
@@ -262,6 +264,8 @@ module Readiness
|
|
262
264
|
sub_types.push('sub_oss') if SubscriptionDefinitions.oss.include? sub.Name
|
263
265
|
sub_types.push('sub_community_other') if SubscriptionDefinitions.community_other.include? sub.Name
|
264
266
|
sub_types.push('sub_ss_ase') if SubscriptionDefinitions.ss_ase.include? sub.Name
|
267
|
+
sub_types.push('sub_ss_success_growth') if SubscriptionDefinitions.ss_success_advanced.include? sub.Name
|
268
|
+
sub_types.push('sub_ss_success_enterprise') if SubscriptionDefinitions.ss_success_signature.include? sub.Name
|
265
269
|
sub_types.push('sub_usgov_24x7') if SubscriptionDefinitions.fedramp.include? sub.Name
|
266
270
|
sub_types.push('sub_gitlab_dedicated') if SubscriptionDefinitions.fedramp.include? sub.Name
|
267
271
|
sub_types.push('sub_other') if sub_types.count.zero?
|
@@ -396,6 +400,8 @@ module Readiness
|
|
396
400
|
return 'custom' if subscriptions.include? 'sub_usgov_12x5'
|
397
401
|
return 'custom' if subscriptions.include? 'sub_usgov_24x7'
|
398
402
|
return 'custom' if subscriptions.include? 'sub_ss_ase'
|
403
|
+
return 'custom' if subscriptions.include? 'sub_ss_success_growth'
|
404
|
+
return 'custom' if subscriptions.include? 'sub_ss_success_enterprise'
|
399
405
|
return 'community' if subscriptions.include? 'sub_edu'
|
400
406
|
return 'community' if subscriptions.include? 'sub_oss'
|
401
407
|
return 'community' if subscriptions.include? 'sub_community_other'
|
@@ -628,6 +628,36 @@ module Readiness
|
|
628
628
|
'Success Essentials - 1 Year'
|
629
629
|
]
|
630
630
|
end
|
631
|
+
|
632
|
+
##
|
633
|
+
# Defines Support Services => Success Advanced subscriptions
|
634
|
+
#
|
635
|
+
# @author Jason Colyer
|
636
|
+
# @since 1.0.82
|
637
|
+
# @return [Array]
|
638
|
+
def self.ss_success_advanced
|
639
|
+
[
|
640
|
+
'Success Advanced - 1 Year',
|
641
|
+
'Success Advanced - 2 Year',
|
642
|
+
'Success Advanced - 3 Year',
|
643
|
+
'Success Advanced - Monthly'
|
644
|
+
]
|
645
|
+
end
|
646
|
+
|
647
|
+
##
|
648
|
+
# Defines Support Services => Success Signature subscriptions
|
649
|
+
#
|
650
|
+
# @author Jason Colyer
|
651
|
+
# @since 1.0.82
|
652
|
+
# @return [Array]
|
653
|
+
def self.ss_success_signature
|
654
|
+
[
|
655
|
+
'Success Signature - 1 Year',
|
656
|
+
'Success Signature - 2 Year',
|
657
|
+
'Success Signature - 3 Year',
|
658
|
+
'Success Signature - Monthly'
|
659
|
+
]
|
660
|
+
end
|
631
661
|
end
|
632
662
|
end
|
633
663
|
end
|
@@ -21,7 +21,7 @@ module Readiness
|
|
21
21
|
@zendesk_client = zendesk_client
|
22
22
|
requester
|
23
23
|
zd_user
|
24
|
-
unless Readiness::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
30
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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::
|
24
|
+
unless Readiness::SupportSuperFormProcessor::Shared.namespace_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)
|
@@ -10,6 +10,19 @@ module Readiness
|
|
10
10
|
# @author Jason Colyer
|
11
11
|
# @since 1.0.42
|
12
12
|
class Shared < Readiness::Client
|
13
|
+
##
|
14
|
+
# Performs a gitlab.com namespace check
|
15
|
+
#
|
16
|
+
# @author Jason Colyer
|
17
|
+
# @since 1.0.81
|
18
|
+
# @param client [Object] An instance of {Readiness::GitLab::Client}
|
19
|
+
# @param email [String] The email to search for
|
20
|
+
def self.namespace_exists?(client, namespace)
|
21
|
+
return Readiness::GitLab::Namespaces.exists?(client, namespace) if namespace.to_i.zero?
|
22
|
+
|
23
|
+
Readiness::GitLab::Namespaces.find(client, namespace).is_a? Readiness::GitLab::Namespaces
|
24
|
+
end
|
25
|
+
|
13
26
|
##
|
14
27
|
# Performs a gitlab.com user check
|
15
28
|
#
|
@@ -360,6 +360,8 @@ module Readiness
|
|
360
360
|
addons.push('GitLab Duo Premium') if @organization.organization_fields['sub_consumption_duo_premium']
|
361
361
|
addons.push('GitLab Duo Enterprise') if @organization.organization_fields['sub_consumption_duo_enterprise']
|
362
362
|
addons.push('AI addon') if @organization.organization_fields['sub_consumption_ai']
|
363
|
+
addons.push('Success Advanced') if @organization.organization_fields['sub_ss_success_growth']
|
364
|
+
addons.push('Success Signature') if @organization.organization_fields['sub_ss_success_enterprise']
|
363
365
|
addons.push('Consumption (CI/CD Minutes)') if @organization.organization_fields['sub_consumption_cicd_minutes']
|
364
366
|
addons.push('Consumption (Storage)') if @organization.organization_fields['sub_consumption_storage']
|
365
367
|
addons.push('Enterprise Agile Planning') if @organization.organization_fields['sub_consumption_eap']
|
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.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Colyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|