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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8ee7796cf097ad54eb92a0c580576c869b0b3d9442b532310741d1bf927a213
4
- data.tar.gz: 4b398d34f0bb0eac14294f32550397edc442f1cdc0565183328884b235826937
3
+ metadata.gz: 16e0d5fad73a2b02661468888f39eb9931dcfa3a41d6f4b1c3c4b9caac5270b7
4
+ data.tar.gz: a76046c80b46aaab3705af222eeca787d7f821766057c9d18982a9b64fb1b105
5
5
  SHA512:
6
- metadata.gz: 2d372493be217828155d5f0d84f9d3f7c3cfb0e866831851ca734af2d8d195af8bfac481754e27f3cc16462cccca946f190a76e8a893bfed1a14c2dc6df77f9d
7
- data.tar.gz: ecf187ab58f5c59034a27f2d1f40e73a68f0a707919a72ae76c62ff7ad3e71d2b242b61f8712f148ccd27015453a6cc6eee72651b55602b3558797ea48b0fb21
6
+ metadata.gz: 43bc65f4d35e2efea4e77e1cbea24ca4d15f9968a73a01cb3aac39c043ba42512422ec1481f97f9f7a57dc40145ef55b0a4db5371a45871730ff44897e6dc321
7
+ data.tar.gz: bf07e780828b16f0cafea980538510c15a8b8c725afb19d4459d4428ab9d424fdd843493d65f4986a335e1c9b37a9c6381ce91fca593c24a78ff7885a017001d
@@ -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']],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.38'
4
+ VERSION = '0.0.40'
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.0.38
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley