gitlab_support_readiness 1.0.108 → 1.0.109

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: 4a2cb19720a44f7245b049d8ee2674c7c659f7cf080b661191ebc877396cdb25
4
- data.tar.gz: 13acfef23cba114734bfb6bcf030c081bcbab04593fdbde064f4324841548a36
3
+ metadata.gz: 39eb80e26ea6a9d845d2960550460270c0814cd42acbb94fb5c2f55acba05de0
4
+ data.tar.gz: a39b2da820bb0dff595e37730524c6e8c45094394da5f49d8c039375744995cb
5
5
  SHA512:
6
- metadata.gz: 49830cf4950318a3516003bc1f6fd5b1035345c96e10983949fac76e279c6880dab0462d1d66291094d37b1d57e3d4de58af034b2eff2dfb5e06318722a9d257
7
- data.tar.gz: e280315a3e4a62a8a291ca943ec6d6474f6754805a454b5f61d9513134f6e34e0b45ff5e0e3e7dd2536d579d9ecae6b794b8c78b87a2d275f6787b76488e2c79
6
+ metadata.gz: 673e369c3b98af22767d25f7c7f44c59c0fc62772e8c93001927db71a664efc66d8bdf91f81e2109b151ef88f221ed2eb2720d3055c6ed22efc84736bcae8e8b
7
+ data.tar.gz: ff562b6d1caf1c3886c28d5b228b7921f1923efd58c4f0f4d40669fbadb8a50b68c1a630f445710820ed157d6dad6ed9ae27169209d1cbfb08aff5d6e872b856
@@ -118,7 +118,10 @@ module Readiness
118
118
  # # => "https://gitlab.com/gitlab-com/support/support-team-meta/-/issues/5"
119
119
  def self.find(client, group, iid)
120
120
  response = client.connection.get "groups/#{group.id}/epics/#{iid}"
121
- handle_request_error(0, 'GitLab', response.status, { action: 'get', id: epic_id }) unless response.status == 200
121
+ # These endpoints throw a 403 instead of 404 when it does not exist
122
+ return { "message" => "Epic not found" } if response.status == 403
123
+
124
+ handle_request_error(0, 'GitLab', response.status, { action: 'get', id: iid }) unless response.status == 200
122
125
  return Epics.new(Oj.load(response.body)) if response.status == 200
123
126
 
124
127
  Oj.load(response.body)
@@ -145,6 +148,8 @@ module Readiness
145
148
  # # => "https://gitlab.com/gitlab-com/support/support-team-meta/-/issues/5"
146
149
  def self.find!(client, group, iid)
147
150
  response = client.connection.get "groups/#{group.id}/epics/#{iid}"
151
+ # These endpoints throw a 403 instead of 404 when it does not exist
152
+ handle_request_error(1, 'GitLab', 404, { action: 'Find epic', id: iid }) if response.status == 403
148
153
  handle_request_error(1, 'GitLab', response.status, { action: 'Find epic', id: iid }) unless response.status == 200
149
154
  Epics.new(Oj.load(response.body))
150
155
  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.108
4
+ version: 1.0.109
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-01-27 00:00:00.000000000 Z
11
+ date: 2025-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport