uc3-dmp-id 0.1.65 → 0.1.67

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: 1f023fcb91e266127f48ad78b82617722f7070650f0a98557b9c3e421cc78fa8
4
- data.tar.gz: da5b16df1e563d3a98e6bfb7c0b466abab330fe700f39999a150ed210498059f
3
+ metadata.gz: 5c2deeeeb8ad969be7b2f9e16463dd1877735078692146d69a481d9cb8a8e2ba
4
+ data.tar.gz: e8dd8cd23aa8613a78114a7c211cdbd79a5fb07bdd056cb1617b20218bbf36d8
5
5
  SHA512:
6
- metadata.gz: b711a007a42257f4f871e3774e2d3aaba17e85f10eff7c4b4ef3b5a62ec655766acb429e0aa2665de113e1946f1c8d121d8baa856d079537d874afe261d8c392
7
- data.tar.gz: fd88161a773adb588b85165e47bfc5e8435e32104e78f9013e9f453674d06b6a37593d890c6d59b939fd580607756aacaf288915a7af7398a72d66ad38992aef
6
+ metadata.gz: c0ec1f87093fb330703a54e81f7e5374cce198652b16f2185f93438729bdbbf3ea084efc513f9a91abb7724aef2d773984adc9c9cbde50f64b29fa2f122e273e
7
+ data.tar.gz: 2976f80563a048fb5270fd77880171e7cb21d455142022b60f0d9390a4b5226fb515cb553a484885518e0d2407f4a059c9b1f9cbf65c4c31fb3c7a0c1054b276
@@ -49,11 +49,11 @@ module Uc3DmpId
49
49
  # dmps = pks.reduce(:&).flatten.uniq
50
50
  # return [] if dmps.nil? || dmps.empty?
51
51
 
52
- dmps = [owner_pks, org_pks, funder_pks].flatten.uniq
52
+ pks = [owner_pks, org_pks, funder_pks].flatten.uniq
53
53
 
54
54
  # Fetch full DMP records for the results
55
55
  client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_TABLE'])
56
- _fetch_dmps(client:, pks: dmps.map { |dmp| dmp['pk'] }, logger:)
56
+ pks.map { |p_key| by_pk(p_key:, client:, logger:, cleanse: true) }
57
57
  end
58
58
 
59
59
  # Find a DMP based on the contents of the incoming JSON
@@ -216,11 +216,6 @@ module Uc3DmpId
216
216
  _process_search_response(response: client.scan(args:))
217
217
  end
218
218
 
219
- # Fetches all of the DMPs by their PKs
220
- def _fetch_dmps(client:, pks:, logger: null)
221
-
222
- end
223
-
224
219
  # Transform the search results so that we do not include any of the DMPHub specific metadata
225
220
  def _process_search_response(response:)
226
221
  return [] unless response.is_a?(Array) && response.any?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.65'
4
+ VERSION = '0.1.67'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.65
4
+ version: 0.1.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley