gitlab_support_readiness 1.0.143 → 1.1.0
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/salesforce/client.rb +1 -0
- data/lib/support_readiness/support_super_form_processor/disable_us_government.rb +6 -2
- data/lib/support_readiness/support_super_form_processor/enable_us_government.rb +6 -2
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_billing_entity_change.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_investigate.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_reset_seat_qsr.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_edit.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_extension.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_over_plan.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_hackerone_license.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_oem_license.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_order_management.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_other.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_provison_failure.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_did_not_receive.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_multiyear.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_nfr.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_resend.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_scl.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_temp.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_edit.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_extension.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_new.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_ir_wider_community_license.rb +33 -17
- data/lib/support_readiness/support_super_form_processor/global_set_org_ase.rb +1 -1
- data/lib/support_readiness/support_super_form_processor/gratis_request.rb +28 -14
- data/lib/support_readiness/support_super_form_processor/sa_request_for_support.rb +33 -16
- data/lib/support_readiness/support_super_form_processor/team_member_license.rb +6 -2
- data/lib/support_readiness/support_super_form_processor/usgov_ir_order_management.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_other.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_did_not_receive.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_multiyear.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_nfr.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_resend.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_scl.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_subs_temp.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_trials_edit.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_trials_extension.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_ir_sm_trials_new.rb +9 -4
- data/lib/support_readiness/support_super_form_processor/usgov_set_org_ase.rb +1 -1
- data/lib/support_readiness/ticket_processor/account_blocked.rb +18 -8
- data/lib/support_readiness/ticket_processor/email_suppressions.rb +7 -4
- data/lib/support_readiness/ticket_processor/locked_account.rb +3 -1
- data/lib/support_readiness/ticket_processor/namesquatting.rb +7 -5
- data/lib/support_readiness/ticket_processor/organization_notes.rb +10 -2
- data/lib/support_readiness/ticket_processor/weighting.rb +17 -8
- 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: 63a75c453f23a96ed934e9e0ac26a01db51089bebb7c9f4c95def317ef47adad
|
4
|
+
data.tar.gz: 5dac0162f46234391fbb75512d58e83c20d5b12dcea71bd15a1660cd60fb3040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71d333a5c8972db1353e9842fa0e6f2b861c8d4be861fda0227b470a400b956d6ce09cb35922096a0447410c9acdca2a0ec269166be966ce593537c7de75140c
|
7
|
+
data.tar.gz: 1cd5fb76fa4d29615230f567e6650f1fa1e95a19f6b0eeb9a29d303f07f19c75bbb3db14f5e609e809e9832a85f1265ac5952c099a70a5758236216dbc440fe1
|
@@ -15,7 +15,7 @@ module Readiness
|
|
15
15
|
#
|
16
16
|
# @author Jason Colyer
|
17
17
|
# @since 1.0.97
|
18
|
-
def self.process!(gitlab_client, gitlab_admin_client, zendesk_client, sfdc_client)
|
18
|
+
def self.process!(gitlab_client, gitlab_admin_client, zendesk_client, sfdc_client, sandbox = false)
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
@@ -27,7 +27,11 @@ module Readiness
|
|
27
27
|
Readiness::SupportSuperFormProcessor::Shared.invalid_enable_usgov(requester, errors)
|
28
28
|
end
|
29
29
|
issue = Readiness::GitLab::Issues.new
|
30
|
-
|
30
|
+
if sandbox
|
31
|
+
issue.title = '[SANDBOX REQUEST] Remove US Government Support exception'
|
32
|
+
else
|
33
|
+
issue.title = 'Remove US Government Support exception'
|
34
|
+
end
|
31
35
|
issue.description = message
|
32
36
|
create = Readiness::GitLab::Issues.create!(@gitlab_client, project, issue)
|
33
37
|
puts "Issue created: #{create.web_url}"
|
@@ -15,7 +15,7 @@ module Readiness
|
|
15
15
|
#
|
16
16
|
# @author Jason Colyer
|
17
17
|
# @since 1.0.42
|
18
|
-
def self.process!(gitlab_client, gitlab_admin_client, zendesk_client, sfdc_client)
|
18
|
+
def self.process!(gitlab_client, gitlab_admin_client, zendesk_client, sfdc_client, sandbox = false)
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
@@ -27,7 +27,11 @@ module Readiness
|
|
27
27
|
Readiness::SupportSuperFormProcessor::Shared.invalid_enable_usgov(requester, errors)
|
28
28
|
end
|
29
29
|
issue = Readiness::GitLab::Issues.new
|
30
|
-
|
30
|
+
if sandbox
|
31
|
+
issue.title = '[SANDBOX REQUEST] Add US Government Support exception'
|
32
|
+
else
|
33
|
+
issue.title = 'Add US Government Support exception'
|
34
|
+
end
|
31
35
|
issue.description = message
|
32
36
|
create = Readiness::GitLab::Issues.create!(@gitlab_client, project, issue)
|
33
37
|
puts "Issue created: #{create.web_url}"
|
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - GitLab.com - Billing Entity change'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_billing_entity_change]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_billing_entity_change' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb
CHANGED
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - GitLab.com - Extend an (almost) expired subscription'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_subscription lnr_saas_sub_extension]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_extend_saas_sub' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - GitLab.com - Investigate incorrect subscription info'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_subscription lnr_saas_sub_issue]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_issues_saas_sub' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb
CHANGED
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - GitLab.com - Link subscription to namespace'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_subscription lnr_saas_sub_link]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_link_sub' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|
data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb
CHANGED
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless zd_user.tags.include? 'partner_support_agent'
|
@@ -35,31 +52,30 @@ module Readiness
|
|
35
52
|
ticket.email_ccs = [
|
36
53
|
{ user_id: zd_user.id }
|
37
54
|
]
|
38
|
-
ticket.requester_id =
|
39
|
-
ticket.submitter_id =
|
55
|
+
ticket.requester_id = end_user.id
|
56
|
+
ticket.submitter_id = end_user.id
|
40
57
|
ticket.comment = { html_body: body }
|
41
58
|
ticket.subject = 'Internal Request - GitLab.com - NFR license request'
|
42
59
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_nfr]
|
43
60
|
ticket.priority = request_priority
|
44
61
|
ticket.status = 'new'
|
45
|
-
ticket.ticket_form_id =
|
62
|
+
ticket.ticket_form_id = @lnr_form.id
|
46
63
|
ticket.custom_fields = [
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id:
|
54
|
-
{ id:
|
55
|
-
{ id:
|
56
|
-
{ id:
|
57
|
-
{ id:
|
58
|
-
{ id:
|
59
|
-
{ id: 45195248, value: 'created_by_agent' }
|
64
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
65
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
66
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
67
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
68
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
69
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
70
|
+
{ id: @severity_field.id, value: 'sev3' },
|
71
|
+
{ id: @arr_field.id, value: '0' },
|
72
|
+
{ id: @priority_field.id, value: 'medium' },
|
73
|
+
{ id: @ir_category_field.id, value: 'ir_saas_nfr' },
|
74
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
75
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
60
76
|
]
|
61
77
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
62
|
-
puts "Ticket created:
|
78
|
+
puts "Ticket created: #{create.id}"
|
63
79
|
end
|
64
80
|
|
65
81
|
##
|
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - GitLab.com - Reset max seats for QSR'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_subscription lnr_saas_sub_qsr_reset]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_reset_qsr' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|
@@ -19,6 +19,23 @@ module Readiness
|
|
19
19
|
@gitlab_client = gitlab_client
|
20
20
|
@gitlab_admin_client = gitlab_admin_client
|
21
21
|
@zendesk_client = zendesk_client
|
22
|
+
@ticket_forms = Readiness::Zendesk::TicketForms.list(@zendesk_client)
|
23
|
+
@ticket_fields = Readiness::Zendesk::TicketFields.list(@zendesk_client)
|
24
|
+
@lnr_form = Readiness::Zendesk::TicketForms.find_by_name(@zendesk_client, 'L&R', @ticket_forms)
|
25
|
+
@area_of_focus_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Area of Focus', @ticket_fields)
|
26
|
+
@ticket_stage_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket Stage', @ticket_fields)
|
27
|
+
@prfs_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Preferred Region for Support', @ticket_fields)
|
28
|
+
@plan_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'GitLab Plan', @ticket_fields)
|
29
|
+
@sales_name_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact name', @ticket_fields)
|
30
|
+
@sales_email_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Sales contact email', @ticket_fields)
|
31
|
+
@severity_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Severity (maps to priority, do not change)', @ticket_fields)
|
32
|
+
@arr_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Ticket ARR', @ticket_fields)
|
33
|
+
@priority_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Customer Priority', @ticket_fields)
|
34
|
+
@ir_category_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Category', @ticket_fields)
|
35
|
+
@ir_submitter_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'IR Submitter', @ticket_fields)
|
36
|
+
@channel_field = Readiness::Zendesk::TicketFields.find_by_name(@zendesk_client, 'Channel (Received at email)', @ticket_fields)
|
37
|
+
search = Readiness::Zendesk::Users.find_many(@zendesk_client, [379855863520, 12816218763676])
|
38
|
+
end_user = search.detect { |s| s.email == 'gitlab_support@example.com' }
|
22
39
|
requester
|
23
40
|
zd_user
|
24
41
|
unless Readiness::SupportSuperFormProcessor::Shared.namespace_exists?(@gitlab_admin_client, namespace_provided)
|
@@ -29,31 +46,30 @@ module Readiness
|
|
29
46
|
ticket.email_ccs = [
|
30
47
|
{ user_id: zd_user.id }
|
31
48
|
]
|
32
|
-
ticket.requester_id =
|
33
|
-
ticket.submitter_id =
|
49
|
+
ticket.requester_id = end_user.id
|
50
|
+
ticket.submitter_id = end_user.id
|
34
51
|
ticket.comment = { html_body: body }
|
35
52
|
ticket.subject = 'Internal Request - gitlab.com - Change existing gitlab.com trial plan'
|
36
53
|
ticket.tags = %w[lnr_internal_request lnr_valid_request lnr_saas_trial lnr_saas_trial_edit]
|
37
54
|
ticket.priority = request_priority
|
38
55
|
ticket.status = 'new'
|
39
|
-
ticket.ticket_form_id =
|
56
|
+
ticket.ticket_form_id = @lnr_form.id
|
40
57
|
ticket.custom_fields = [
|
41
|
-
{ id:
|
42
|
-
{ id:
|
43
|
-
{ id:
|
44
|
-
{ id:
|
45
|
-
{ id:
|
46
|
-
{ id:
|
47
|
-
{ id:
|
48
|
-
{ id:
|
49
|
-
{ id:
|
50
|
-
{ id:
|
51
|
-
{ id:
|
52
|
-
{ id:
|
53
|
-
{ id: 45195248, value: 'created_by_agent' }
|
58
|
+
{ id: @area_of_focus_field.id, value: 'aof_lnr' },
|
59
|
+
{ id: @ticket_stage_field.id, value: 'stage-frt' },
|
60
|
+
{ id: @prfs_field.id, value: 'all_regions' },
|
61
|
+
{ id: @plan_field.id, value: 'free_plan' },
|
62
|
+
{ id: @sales_name_field.id, value: zd_user.name },
|
63
|
+
{ id: @sales_email_field.id, value: zd_user.email },
|
64
|
+
{ id: @severity_field.id, value: 'sev3' },
|
65
|
+
{ id: @arr_field.id, value: '0' },
|
66
|
+
{ id: @priority_field.id, value: 'medium' },
|
67
|
+
{ id: @ir_category_field.id, value: 'ir_link_sub' },
|
68
|
+
{ id: @ir_submitter_field.id, value: zd_user.email },
|
69
|
+
{ id: @channel_field.id, value: 'created_by_agent' }
|
54
70
|
]
|
55
71
|
create = Readiness::Zendesk::Tickets.create!(@zendesk_client, ticket)
|
56
|
-
puts "Ticket created:
|
72
|
+
puts "Ticket created: #{create.id}"
|
57
73
|
end
|
58
74
|
|
59
75
|
##
|