gitlab_support_readiness 1.0.78 → 1.0.79

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b0971f03ea25543616fca6f0f00b1bf5903bb490c93b4a7083c9c9e6f15371a
4
- data.tar.gz: 9961af529f6e4899a86468dffbe892a06ec8dccc3c6f4425c9db83701ef74842
3
+ metadata.gz: 6ab152b190b7406096ae4b03761756a7b2f43e8d0645517d9c7f84cbc1613924
4
+ data.tar.gz: 32bafb426a9d9f4e35de48b51648701888688df628954052f4a5c620cd552e93
5
5
  SHA512:
6
- metadata.gz: e5a1a9eaccc39045c5b65657384a83c94ad2ca2905ee0a3026ec9b1f576a6aa74fbbf748174b9bc9935da803dc8cd58be7fbed430e98535a2e3e07d809b952af
7
- data.tar.gz: aaeabe4e4e4a4a7c988765f4677d32f51a99933c750e90b4aebdb717c416aa17bbf882b1567ed7fa90a82f7c061c754cef2905ff632c3a1c07917c4b99f79073
6
+ metadata.gz: aac4f379c49a9facb457c893bccc16f6e7482b3045782a5da938102bf6dbe67a063b5ce0cec13ecffb989bbe6d661d91f12e8632eadca295811e26e046959017
7
+ data.tar.gz: dcbc8d4ec205911e789de683b4b84e12ae66deb757b0306d3ddad9c74e037c7fcb152ca4b04dd6c5cac5bc33aff912ee182d4badab63b874a90796868f67a5d7
@@ -53,13 +53,15 @@ module Readiness
53
53
  repo.custom_field_options.map! { |o| Zendesk::UserFieldOptions.new(o) } unless repo.custom_field_options.first.is_a? Object
54
54
  repo.custom_field_options.each do |repo_option|
55
55
  repo_option.position = repo.custom_field_options.index(repo_option) if repo_option.position.nil?
56
- zd_option = zd_options.detect { |zd_o| zd_o.name == repo_option.name }
56
+ repo_option.id = nil
57
+ zd_option = zd_options.detect { |zd_o| zd_o.value == repo_option.value }
58
+ zd_option.id = nil unless zd_option.nil?
57
59
  if zd_option.nil? || to_clean_json(zd_option) != to_clean_json(repo_option)
58
60
  @diffs[:option_updates].push({ "#{repo.title}" => repo_option })
59
61
  end
60
62
  end
61
63
  zd_options.each do |zd_option|
62
- repo_option = repo.custom_field_options.detect { |rp_o| rp_o.name == zd_option.name }
64
+ repo_option = repo.custom_field_options.detect { |rp_o| rp_o.value == zd_option.value }
63
65
  if repo_option.nil?
64
66
  @diffs[:option_deletes].push({ "#{repo.title}" => zd_option })
65
67
  end
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.78
4
+ version: 1.0.79
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-12 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport