uc3-dmp-id 0.0.38 → 0.0.40
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 +3 -1
- 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: 16e0d5fad73a2b02661468888f39eb9931dcfa3a41d6f4b1c3c4b9caac5270b7
|
4
|
+
data.tar.gz: a76046c80b46aaab3705af222eeca787d7f821766057c9d18982a9b64fb1b105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43bc65f4d35e2efea4e77e1cbea24ca4d15f9968a73a01cb3aac39c043ba42512422ec1481f97f9f7a57dc40145ef55b0a4db5371a45871730ff44897e6dc321
|
7
|
+
data.tar.gz: bf07e780828b16f0cafea980538510c15a8b8c725afb19d4459d4428ab9d424fdd843493d65f4986a335e1c9b37a9c6381ce91fca593c24a78ff7885a017001d
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -32,8 +32,9 @@ module Uc3DmpId
|
|
32
32
|
p_key = Helper.dmp_id_to_pk(json: json.fetch('dmp_id', {})) if p_key.nil?
|
33
33
|
client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
|
34
34
|
|
35
|
+
# TODO: Re-enable this once we figure out Dynamo indexes
|
35
36
|
# find_by_dmphub_provenance_id -> if no PK and no dmp_id result
|
36
|
-
return by_provenance_identifier(json: json, client: client, debug: debug) if p_key.nil?
|
37
|
+
# return by_provenance_identifier(json: json, client: client, debug: debug) if p_key.nil?
|
37
38
|
|
38
39
|
# find_by_PK
|
39
40
|
by_pk(p_key: p_key, s_key: json['SK'], client: client, debug: debug)
|
@@ -83,6 +84,7 @@ module Uc3DmpId
|
|
83
84
|
raise FinderError, MSG_MISSING_PROV_ID if json.nil? || json.fetch('dmp_id', {})['identifier'].nil?
|
84
85
|
|
85
86
|
args = {
|
87
|
+
index_name: 'dmphub_provenance_identifier_gsi',
|
86
88
|
key_conditions: {
|
87
89
|
dmphub_provenance_identifier: {
|
88
90
|
attribute_value_list: [json['dmp_id']['identifier']],
|
data/lib/uc3-dmp-id/version.rb
CHANGED