gitlab_support_readiness 1.0.28 → 1.0.29

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: c5d01a922cd60d9bf388892d58416853d41b222bdde7d239ad09d30af317cdf1
4
- data.tar.gz: 66757babab7cd3b77b87ca30241411a39b08da2992970810854a3eac4682fc1d
3
+ metadata.gz: 2ca2350536014a634279c6a491c0658ffe7b24904cac0037a6ec5c3a06316854
4
+ data.tar.gz: f629f6087c8b8d7479e942c5c2ad70f15c2a9464dcb3e8949191e8384d5bf8be
5
5
  SHA512:
6
- metadata.gz: e0417f8933df32fbbca9bd4f0a010e2640db67df871c68991eea905689eb2d58136a19d40b4bece974756fc296e391201d611fb974224acfb6243dc63190a0ad
7
- data.tar.gz: 26d03850f65288ab7d90a79ad3535045dda6ebd05c8e88dc3cb184ec2eb15ba1c38903b73a455316205ced22622357ed1db7c769d1309681154b159a6530c367
6
+ metadata.gz: 46212ae44f7841397bf47051df2d493cda9a13868cd9355f75430756f3c9a415834f3fd02321d8a5f7f7fe3f13477f0c6ab76cac79eff2c8e451709ee1ae8ee8
7
+ data.tar.gz: 1c72dd362a329149b6fec68c379a6aea2271ab7185ff5aafcf9f7a5f54cbd0be2b620af83ff3bf1dded0ed4bf58be17665ab63f31786b315fb68fd5a2f95c944
@@ -149,12 +149,12 @@ module Readiness
149
149
  puts '- Organization created'
150
150
  if create_global_contact?(create)
151
151
  print '- Setting up contact for org...'
152
- contact = differences[:contacts].detect { |c| ['salesforce_id'] == org.organization_fields['salesforce_id'] }
152
+ contact = differences[:contacts].detect { |c| c['salesforce_id'] == org.organization_fields['salesforce_id'] }
153
153
  if contact.nil?
154
154
  Readiness::Slack::Messages.create!(slack_client, global_slack_message(create))
155
155
  puts 'error'
156
156
  else
157
- search = Readiness::Zendesk::Search..users(client, "email:#{contact['email']}")
157
+ search = Readiness::Zendesk::Search.users(zendesk_client, "email:#{contact['email']}")
158
158
  if search.count == 1
159
159
  if search.first.organization_id.nil?
160
160
  user = search.first
@@ -178,7 +178,7 @@ module Readiness
178
178
  end
179
179
  end
180
180
  end
181
- @organizations.push(global_zd_sync_object(org))
181
+ @organizations.push(global_zd_sync_object(create))
182
182
  end
183
183
  differences[:updates].each do |org|
184
184
  print "Updating #{org.name}..."
@@ -1069,7 +1069,7 @@ module Readiness
1069
1069
  <<~STRING
1070
1070
  :double-exclaimation: Attention Support Readiness! :double-exclaimation:
1071
1071
 
1072
- An organization (<https://gitlab.zendesk.com/agent/organizations/{#org.id}|#{org.id}>) was created for SFDC account #{org.organization_fields['salesforce_id']} (#{sfdc_links(org.organization_fields['salesforce_id'])}) but it had no corresponsing contacts.
1072
+ An organization (<https://gitlab.zendesk.com/agent/organizations/#{org.id}|#{org.id}>) was created for SFDC account #{org.organization_fields['salesforce_id']} (#{sfdc_links(org.organization_fields['salesforce_id'])}) but it had no corresponsing contacts.
1073
1073
 
1074
1074
  Please investigate this manually. If you are able to locate a contact to use for the created organization, please add/associate them manually.
1075
1075
  STRING
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.28
4
+ version: 1.0.29
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-10-23 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport