gitlab_support_readiness 1.3.4 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a444edeee63f40c6f3c1cf117329892dbc79bf8314402d8e733325389d50cbb2
4
- data.tar.gz: b14192232c3e1b6913be49db749997b53a39a36df2f681e77b16ce94316fca86
3
+ metadata.gz: 8c1529a2e27c3f6711bb9505d55f506e9321f42548eb861a4fa62c2890f95e07
4
+ data.tar.gz: 1e45c8d902e33c6d9ddf7e5a3cf850b5e1c341ad08a3c6f8afbf6b3af3befb35
5
5
  SHA512:
6
- metadata.gz: da392ba62213a3dd0f7fd4886a3c3f4639adb0587ed897d55b817d1bc6883de9e055eada3494e269648dfebb37bcba412b15e4dcad381bd60a7b13fbac1223fd
7
- data.tar.gz: 39f52aed0686af1b55bb73084ecea76cbfd4c7a9508e16340ff2c6d8187315297b19b1cfde57fe3121e6a3be4e18cc903d5d030d617ac7143a2b4d52c9dead5e
6
+ metadata.gz: 0b62aad883b5d6987a37403cbdf354742f1a4ea790969e0ee3670d645fdd7a2ce504fcf80ca2086064c4c2cb5f2d6c3efd1cb22c560dc78e424279e03b1e7383
7
+ data.tar.gz: e30d41c1eaa54be49d376633390fc7ce6e1dafd88ac8aad32c9000f79a6c7ef978f989e05e43fdca4d40a72712fa7e02245df0fc3440db74cf15743453498c00
@@ -179,6 +179,7 @@ module Readiness
179
179
 
180
180
  def self.usgov_organization_info_comment
181
181
  <<~STRING
182
+ #{@organization.organization_fields['org_in_escalated_state'] ? escalated_string : ''}
182
183
  #{usgov_org_notes_string}
183
184
 
184
185
  #{usgov_org_details_string}
@@ -255,14 +256,14 @@ module Readiness
255
256
  def self.cmp_string
256
257
  return nil if @organization.organization_fields['cmp_id'].nil?
257
258
 
258
- "#### This organization is using a contact management project!"
259
+ "### This organization is using a contact management project!"
259
260
  end
260
261
 
261
262
  def self.org_notes_string
262
263
  return nil if @organization.notes.to_s == ''
263
264
 
264
265
  <<~STRING
265
- #### Support Readiness Notes about this Organizations
266
+ ### Support Readiness Notes about this Organizations
266
267
 
267
268
  #{@organization.notes}
268
269
  STRING
@@ -272,7 +273,7 @@ module Readiness
272
273
  return nil if @organization.details.to_s == ''
273
274
 
274
275
  <<~STRING
275
- #### Support Readiness Details about this Organizations
276
+ ### Support Readiness Details about this Organizations
276
277
 
277
278
  #{@organization.details}
278
279
  STRING
@@ -301,9 +302,9 @@ module Readiness
301
302
  def self.shared_org_string
302
303
  return nil unless @organization.shared_tickets
303
304
 
304
- return "#### This organization has shared org permissions (read only)" unless @organization.shared_comments
305
+ return "### This organization has shared org permissions (read only)" unless @organization.shared_comments
305
306
 
306
- "#### This organization has shared org permissions (read+write)"
307
+ "### This organization has shared org permissions (read+write)"
307
308
  end
308
309
 
309
310
  def self.organization_entitlement_comment
@@ -323,17 +324,6 @@ module Readiness
323
324
  end
324
325
 
325
326
  def self.expired_message
326
- if within_grace_period?
327
- if @organization.organization_fields['health_score'].to_s.capitalize == 'Green'
328
- return "## NOTE: Within grace period (#{grace_period}) and health score is Green, provide support to the customer as usual."
329
- elsif @organization.organization_fields['health_score'].to_s.capitalize == 'Yellow'
330
- return "## NOTE: Within grace period (#{grace_period}) but health score is Yellow, reach out to their CSM/AM in [#account-management](https://gitlab.slack.com/archives/C44SXGG8M) and ask about this customer. In the meantime provide support to the customer as usual."
331
- elsif @organization.organization_fields['health_score'].to_s.capitalize == 'Red'
332
- return "## NOTE: Within grace period (#{grace_period}) but health score is Red, reach out to their CSM/AM in [#account-management](https://gitlab.slack.com/archives/C44SXGG8M) and ask about this customer. Do not provide support until they tell you to proceed."
333
- else
334
- return "## NOTE: Within grace period (#{grace_period}) but health score is unknown, contact CSM/AM in [#account-management](https://gitlab.slack.com/archives/C44SXGG8M) and ask about this customer. Do not provide support until they tell you to proceed."
335
- end
336
- end
337
327
  '## NOTE: This account is showing as expired. Please confirm manually before proceeding!'
338
328
  end
339
329
 
@@ -364,11 +354,9 @@ module Readiness
364
354
 
365
355
  def self.addons_message
366
356
  addons = []
367
- addons.push('AI') if @organization.organization_fields['sub_consumption_ai']
368
357
  addons.push('GitLab Duo Premium') if @organization.organization_fields['sub_consumption_duo_premium']
369
358
  addons.push('GitLab Duo Enterprise') if @organization.organization_fields['sub_consumption_duo_enterprise']
370
359
  addons.push('GitLab Duo with Amazon Q') if @organization.organization_fields['sub_consumption_duo_amazon_q']
371
- addons.push('AI addon') if @organization.organization_fields['sub_consumption_ai']
372
360
  addons.push('Success Advanced') if @organization.organization_fields['sub_ss_success_growth']
373
361
  addons.push('Success Signature') if @organization.organization_fields['sub_ss_success_enterprise']
374
362
  addons.push('Consumption (CI/CD Minutes)') if @organization.organization_fields['sub_consumption_cicd_minutes']
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.3.4
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-07 00:00:00.000000000 Z
11
+ date: 2025-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport