gitlab_support_readiness 1.0.46 → 1.0.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_billing_entity_change.rb +3 -1
  3. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_extension.rb +3 -1
  4. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_investigate.rb +3 -1
  5. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_link.rb +3 -1
  6. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_nfr.rb +3 -1
  7. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_subscriptions_reset_seat_qsr.rb +12 -1
  8. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_edit.rb +3 -1
  9. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_extension.rb +3 -1
  10. data/lib/support_readiness/support_super_form_processor/global_ir_dotcom_trials_over_plan.rb +3 -1
  11. data/lib/support_readiness/support_super_form_processor/global_ir_hackerone_license.rb +3 -1
  12. data/lib/support_readiness/support_super_form_processor/global_ir_oem_license.rb +3 -1
  13. data/lib/support_readiness/support_super_form_processor/global_ir_order_management.rb +3 -1
  14. data/lib/support_readiness/support_super_form_processor/global_ir_other.rb +3 -1
  15. data/lib/support_readiness/support_super_form_processor/global_ir_provison_failure.rb +3 -1
  16. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_did_not_receive.rb +3 -1
  17. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_multiyear.rb +3 -1
  18. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_nfr.rb +3 -1
  19. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_resend.rb +3 -1
  20. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_scl.rb +3 -1
  21. data/lib/support_readiness/support_super_form_processor/global_ir_sm_subscriptions_temp.rb +3 -1
  22. data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_edit.rb +3 -1
  23. data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_extension.rb +3 -1
  24. data/lib/support_readiness/support_super_form_processor/global_ir_sm_trials_new.rb +3 -1
  25. data/lib/support_readiness/support_super_form_processor/global_ir_wider_community_license.rb +3 -1
  26. data/lib/support_readiness/zendesk/tickets.rb +2 -1
  27. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2ae632b6c9be3efbc096e9d8acc498c11473bc0e6b308f3de90480c3edbe654
4
- data.tar.gz: c145351dbe9341eb0ec835665b7b2e2dab28f44559ac085f481bd1f31407713a
3
+ metadata.gz: 01a9ce45c00afe5f92aeafde1dc8c71842c43d002767d51745e8529716765621
4
+ data.tar.gz: d5537f7f155774d75ef27896a7d529c21347f055a18e1aed658464e8d7ae4f88
5
5
  SHA512:
6
- metadata.gz: cbfeb86c7109a68aed69f861241867a282f0194a62977a72ba8ec77d31ed2601dec8dc751bc8ed2f984f85ee67d942697c02956069702870361110510fa576c6
7
- data.tar.gz: 14a6e142f1b81d8eb009dc2df99e738af8e7a4c0b8f9b42b3f54981e7b07fa9d4e2ecd528ff802ba836d0d7de4b720f38b6f4f26736ed147880088dca69967e8
6
+ metadata.gz: 97ef27b317754de1305257c0aec160f54f950caed5d894e33e74daa06ba7825114b9270f8d0e89353e06dd2b735a26190b2fd3adf48c6372adcf414ae4ebb5cb
7
+ data.tar.gz: d1c7d967a5c3e44e8b09d964a8beeedab0bd762c314b19a97e4f50b599ecdadde2575d3fac99a762360011b1b79da0a201f45337e4987a71aceac69970d1c9b6
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -32,7 +32,9 @@ module Readiness
32
32
  end
33
33
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
34
34
  ticket = Readiness::Zendesk::Tickets.new
35
- ticket.email_cc_ids = [zd_user.id]
35
+ ticket.email_ccs = [
36
+ { user_id: zd_user.id }
37
+ ]
36
38
  ticket.requester_id = 379855863520
37
39
  ticket.submitter_id = 379855863520
38
40
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -63,6 +65,15 @@ module Readiness
63
65
  @requester ||= Readiness::SupportSuperFormProcessor::Shared.gitlab_user_check(@gitlab_admin_client, requester_email)
64
66
  end
65
67
 
68
+ ##
69
+ # Sets the global variable namespace_provided
70
+ #
71
+ # @author Jason Colyer
72
+ # @since 1.0.47
73
+ def self.namespace_provided
74
+ @namespace_provided ||= ENV.fetch('RESET_SEATS_QSR_NAMESPACE')
75
+ end
76
+
66
77
  ##
67
78
  # Sets the global variable zd_user
68
79
  #
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -26,7 +26,9 @@ module Readiness
26
26
  end
27
27
  @namespace = Readiness::GitLab::Namespaces.find!(@gitlab_admin_client, namespace_provided)
28
28
  ticket = Readiness::Zendesk::Tickets.new
29
- ticket.email_cc_ids = [zd_user.id]
29
+ ticket.email_ccs = [
30
+ { user_id: zd_user.id }
31
+ ]
30
32
  ticket.requester_id = 379855863520
31
33
  ticket.submitter_id = 379855863520
32
34
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -25,7 +25,9 @@ module Readiness
25
25
  Readiness::SupportSuperFormProcessor::Shared.not_oem_member(requester_email)
26
26
  end
27
27
  ticket = Readiness::Zendesk::Tickets.new
28
- ticket.email_cc_ids = [zd_user.id]
28
+ ticket.email_ccs = [
29
+ { user_id: zd_user.id }
30
+ ]
29
31
  ticket.requester_id = 379855863520
30
32
  ticket.submitter_id = 379855863520
31
33
  ticket.comment = { html_body: body }
@@ -25,7 +25,9 @@ module Readiness
25
25
  Readiness::SupportSuperFormProcessor::Shared.not_order_management_member(requester_email)
26
26
  end
27
27
  ticket = Readiness::Zendesk::Tickets.new
28
- ticket.email_cc_ids = [zd_user.id]
28
+ ticket.email_ccs = [
29
+ { user_id: zd_user.id }
30
+ ]
29
31
  ticket.requester_id = 379855863520
30
32
  ticket.submitter_id = 379855863520
31
33
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -28,7 +28,9 @@ module Readiness
28
28
  Readiness::SupportSuperFormProcessor::Shared.invalid_nfr_request(requester_email)
29
29
  end
30
30
  ticket = Readiness::Zendesk::Tickets.new
31
- ticket.email_cc_ids = [zd_user.id]
31
+ ticket.email_ccs = [
32
+ { user_id: zd_user.id }
33
+ ]
32
34
  ticket.requester_id = 379855863520
33
35
  ticket.submitter_id = 379855863520
34
36
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -22,7 +22,9 @@ module Readiness
22
22
  requester
23
23
  zd_user
24
24
  ticket = Readiness::Zendesk::Tickets.new
25
- ticket.email_cc_ids = [zd_user.id]
25
+ ticket.email_ccs = [
26
+ { user_id: zd_user.id }
27
+ ]
26
28
  ticket.requester_id = 379855863520
27
29
  ticket.submitter_id = 379855863520
28
30
  ticket.comment = { html_body: body }
@@ -25,7 +25,9 @@ module Readiness
25
25
  Readiness::SupportSuperFormProcessor::Shared.cannot_self_approve((requester_email))
26
26
  end
27
27
  ticket = Readiness::Zendesk::Tickets.new
28
- ticket.email_cc_ids = [zd_user.id]
28
+ ticket.email_ccs = [
29
+ { user_id: zd_user.id }
30
+ ]
29
31
  ticket.requester_id = 379855863520
30
32
  ticket.submitter_id = 379855863520
31
33
  ticket.comment = { html_body: body }
@@ -10,7 +10,7 @@ module Readiness
10
10
  # @author Jason Colyer
11
11
  # @since 1.0.0
12
12
  class Tickets < Readiness::Client
13
- attr_accessor :assignee_id, :additional_tags, :brand_id, :collaborator_ids, :comment, :created_at, :custom_fields, :custom_status_id, :description, :due_at, :email_cc_ids, :fields, :follower_ids, :followup_ids, :group_id, :has_incidents, :id, :is_public, :organization_id, :priority, :problem_id, :remove_tags, :requester_id, :satisfaction_rating, :status, :subject, :submitter_id, :tags, :ticket_form_id, :type, :updated_at, :via, :via_followup_source_id
13
+ attr_accessor :assignee_id, :additional_tags, :brand_id, :collaborator_ids, :comment, :created_at, :custom_fields, :custom_status_id, :description, :due_at, :email_cc_ids, :email_ccs, :fields, :follower_ids, :followup_ids, :group_id, :has_incidents, :id, :is_public, :organization_id, :priority, :problem_id, :remove_tags, :requester_id, :satisfaction_rating, :status, :subject, :submitter_id, :tags, :ticket_form_id, :type, :updated_at, :via, :via_followup_source_id
14
14
 
15
15
  ##
16
16
  # Creates a new {Readiness::Zendesk::Tickets} instance
@@ -33,6 +33,7 @@ module Readiness
33
33
  @description = object['description']
34
34
  @due_at = object['due_at']
35
35
  @email_cc_ids = object['email_cc_ids']
36
+ @email_ccs = object['email_ccs']
36
37
  @fields = object['fields']
37
38
  @follower_ids = object['follower_ids']
38
39
  @followup_ids = object['followup_ids']
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.46
4
+ version: 1.0.48
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-11-25 00:00:00.000000000 Z
11
+ date: 2024-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport