apadmi_grout 2.2.1 → 2.2.2

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: 58507ab047f8ae45fff33f92ac13ae75d57680c0d29abdaaedf39ea0e27e82c2
4
- data.tar.gz: d598788e30b14c306d107c7522c2e1646f95f54e92cb8f4aa74806326a85b10d
3
+ metadata.gz: 22c82a973e8fcdff8c70360fa27c58ff9f79e3bc6ef9ff4175db7d646da499af
4
+ data.tar.gz: aca19ee1e0f6bc2f710cb056efea7d0c8507ec01ab7ebfaa407bcc9eb79f91dd
5
5
  SHA512:
6
- metadata.gz: acc0fa240dde5f43293978694005ff9509dd39fdfeb89ea2db207f0944ab54d8eab598da6f133d9595e12c870b4a1ee7d6307c3060f376544231bff2493572c5
7
- data.tar.gz: 230e4d0c686736605ac0a2548fc500c398d4e7c41b39d1aff55b93ed567cad887503cfa2684066a06a59f8f77e0f0bc05a5298d5647074235e1ef7ee06968ec7
6
+ metadata.gz: c6fa52813fe17ff8998ceab124376a4896bf0b01c11270da86f75f9d84ce61686cbe07c509b381e6eaa6878cecd4f7d6d56152e1c8238bded0259f2eab935c80
7
+ data.tar.gz: 2f96593677812988550c7c9c89cc0c753271987cf038e93bb5f176cdf8bd80c37ad062b9629101e085e0d4d85eacd675c7b4909fbdd138951a036ea58cfb8500
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Core Changelog
2
2
 
3
+ ## [2.2.2] - 2022-08-24
4
+ * Suppress ADO errors when requesting tickets that don't exist - match JIRA behaviour
5
+
3
6
  ## [2.2.1] - 2022-08-21
4
7
  * Reduce ruby version to match what bitrise has installed
5
8
 
@@ -24,13 +24,13 @@ module Apadmi
24
24
 
25
25
  keys = keys.map { |k| sanitise_key(k) } # Allows supporting raw keys, and keys prefixed with a hash which is common ADO practice
26
26
 
27
- res = @network_service.do_get("/wit/workitems?ids=#{keys.join(",")}&api-version=7.1-preview.2")
27
+ res = @network_service.do_get("/wit/workitems?ids=#{keys.join(",")}&errorPolicy=omit&api-version=7.1-preview.2")
28
28
  parsed = JSON.parse(res.body)
29
29
  items = parsed["value"]
30
30
 
31
- return if items.nil? || items.empty?
31
+ return [] if items.nil? || items.compact.empty?
32
32
 
33
- items.map { |i| Apadmi::Grout::Issue.from_ado_hash(i) }
33
+ items.compact.map { |i| Apadmi::Grout::Issue.from_ado_hash(i) }
34
34
  end
35
35
 
36
36
  # @param component [String] Included to be consistent with JIRA, this will boil down to a tag in ADO
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apadmi
4
4
  module Grout
5
- VERSION = "2.2.1"
5
+ VERSION = "2.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apadmi_grout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apadmi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-21 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday