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 +4 -4
- data/lib/uc3-dmp-id/finder.rb +2 -7
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2deeeeb8ad969be7b2f9e16463dd1877735078692146d69a481d9cb8a8e2ba
|
4
|
+
data.tar.gz: e8dd8cd23aa8613a78114a7c211cdbd79a5fb07bdd056cb1617b20218bbf36d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ec1f87093fb330703a54e81f7e5374cce198652b16f2185f93438729bdbbf3ea084efc513f9a91abb7724aef2d773984adc9c9cbde50f64b29fa2f122e273e
|
7
|
+
data.tar.gz: 2976f80563a048fb5270fd77880171e7cb21d455142022b60f0d9390a4b5226fb515cb553a484885518e0d2407f4a059c9b1f9cbf65c4c31fb3c7a0c1054b276
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -49,11 +49,11 @@ module Uc3DmpId
|
|
49
49
|
# dmps = pks.reduce(:&).flatten.uniq
|
50
50
|
# return [] if dmps.nil? || dmps.empty?
|
51
51
|
|
52
|
-
|
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
|
-
|
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?
|
data/lib/uc3-dmp-id/version.rb
CHANGED