uc3-dmp-id 0.0.39 → 0.0.41

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: 620f1b04b1e3a46e4770e446392494bace0685a3434b11c92c4135915b4d1f3e
4
- data.tar.gz: 571407a0bd4d89652613fefa43c9a4797a6cfa30f395ff0b0f21eacfa615843a
3
+ metadata.gz: a083adf1ce95bf86fe7775c5c76fa12758f90747502daa8a9f2140cc9b50743b
4
+ data.tar.gz: 3fdf9a0f471daa92bcd663892cb4b40f306be417fbab94a0a9bad6a65a600134
5
5
  SHA512:
6
- metadata.gz: 41ffd93cf6347a1ba693fa26ab6163d237b224f313d911c5f6e001215bd1cae9cb939c66b4f0f3e28755faf442a974c19670ed1e54cab583e8529bf81271b789
7
- data.tar.gz: fd812869932e7d98c30223b65ea3c154de666907411dd0213f5694a9e700980693eed928e4f733b425c062e61647582685cf101446c88f6f65efe755490e2743
6
+ metadata.gz: 4c7b1e2f15ee9408b07d42902025bfe99f9c8dbf533ad013289147fefe21f6c42ccdff322417ec98ee1473ee424339905d71429a3fb1f2dded7b9cf55d997864
7
+ data.tar.gz: 59175eb9fd83d0dea579e030db380ce7fb45a632edcc339739c0c57dd564dde03f93e5274974e3d3a28fd4f6a76172b1fccb6d10dd63d5d937e32ae32904f8e6
@@ -26,9 +26,11 @@ module Uc3DmpId
26
26
  raise CreatorError, MSG_NO_PROVENANCE_OWNER if provenance.nil? || owner_org.nil?
27
27
  raise CreatorError, MSG_NO_OWNER_ORG unless owner_org.is_a?(String) && !owner_org.strip.empty?
28
28
 
29
+ # TODO: Swap this out with the Finder search once the Dynamo indexes are working
29
30
  # Try to find it first and Fail if found
30
- result = Finder.by_json(json: json, debug: debug)
31
- raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS if result.is_a?(Hash)
31
+ # result = Finder.by_json(json: json, debug: debug)
32
+ # raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS if result.is_a?(Hash)
33
+ raise CreatorError, Uc3DmpId::MSG_DMP_EXISTS unless json['PK'].nil?
32
34
 
33
35
  p_key = _preregister_dmp_id(json: json, debug: debug)
34
36
  raise CreatorError, MSG_UNABLE_TO_MINT if p_key.nil?
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.39'
4
+ VERSION = '0.0.41'
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.39
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley