uc3-dmp-id 0.1.53 → 0.1.54

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: 7ed8f25c716416ba94aa70e864f64a84451346291667acaf491a5efd755e7abd
4
- data.tar.gz: d64e0d33da594f81ac90624740e4d80a5309c112f9d2c8bcbeae5f4b60386edf
3
+ metadata.gz: a25055e5e62c689e02f190fe828bbe553ef380bcf6bcd2b2e2bb6299f80ea439
4
+ data.tar.gz: c51528de686f3786175ef6bfe2dcde9f1c86897d0fc6d5748667167021d55b54
5
5
  SHA512:
6
- metadata.gz: 75de41d469fed8bfc95d2b81dc2b784bca641c3ec986f03d772d060e72a99a7a05d8633b19aff24dcf00099ca8ab769218cab3b9036ad4663f7769db7f76c8fc
7
- data.tar.gz: c83a34001e05eaae3dd7aa21e11a8566846524b4e24d9bd499bdbd2ad3db43271304613f56515ae2ed28a04418b57a430af8aed29b552c6d3496d84c3e1c1acb
6
+ metadata.gz: c3a6afb5c512125d29ff1fc6a2da94de5aa98277f08e9fb46d7e120cd64d24238f8eb915f141a4df115feb89951f7e5753daf7c49358241fc7d718277e4d3aed
7
+ data.tar.gz: 7421c51628509d0e0c904625916fd56b43c6fecca16a131169568371f6b39acc274f730ca7d8942d4634daf30b89a7ddfa9f6acb63b634b3ad3fe2a3b8e1472b
@@ -139,7 +139,7 @@ module Uc3DmpId
139
139
 
140
140
  if email.nil?
141
141
  args = {
142
- filter_expression: 'contains(:people_ids, people)',
142
+ filter_expression: 'contains(:people_ids, people) AND :sk = sk',
143
143
  expression_attribute_values: {
144
144
  ':sk': 'METADATA',
145
145
  ':people_ids': [
@@ -150,7 +150,7 @@ module Uc3DmpId
150
150
  }
151
151
  else
152
152
  args = {
153
- filter_expression: 'contains(:people, people)',
153
+ filter_expression: 'contains(:people, people) AND :sk = sk',
154
154
  expression_attribute_values: { ':sk': 'METADATA', ':people': [email] }
155
155
  }
156
156
  end
@@ -167,7 +167,7 @@ module Uc3DmpId
167
167
  ror = org.trim() unless (org.to_s =~ regex).nil?
168
168
 
169
169
  args = {
170
- filter_expression: 'contains(:affiliation_ids, affiliation_ids)',
170
+ filter_expression: 'contains(:affiliation_ids, affiliation_ids) AND :sk = sk',
171
171
  expression_attribute_values: {
172
172
  ':sk': 'METADATA',
173
173
  ':affiliation_ids': [
@@ -189,7 +189,7 @@ module Uc3DmpId
189
189
  ror = funder.trim() unless (funder.to_s =~ regex).nil?
190
190
 
191
191
  args = {
192
- filter_expression: 'contains(:funder_ids, funder_ids)',
192
+ filter_expression: 'contains(:funder_ids, funder_ids) AND :sk = sk',
193
193
  expression_attribute_values: {
194
194
  ':sk': 'METADATA',
195
195
  ':funder_ids': [
@@ -208,7 +208,7 @@ module Uc3DmpId
208
208
  # Fetch the DMP IDs that are marked as featured
209
209
  def _by_featured(client: nil, logger: nil)
210
210
  args = {
211
- filter_expression: ':featured = featured',
211
+ filter_expression: ':featured = featured AND :sk = sk',
212
212
  expression_attribute_values: { ':sk': 'METADATA', ':featured': 1 }
213
213
  }
214
214
  logger&.debug(message: 'Fetch relevant DMPs _by_featured - scan args', details: args)
@@ -221,7 +221,7 @@ module Uc3DmpId
221
221
  # Return all of the publicly visible DMPs
222
222
  def _publicly_visible(client: nil, logger: nil)
223
223
  args = {
224
- filter_expression: ':visibility = visibility',
224
+ filter_expression: ':visibility = visibility AND :sk = sk',
225
225
  expression_attribute_values: { ':sk': 'METADATA', ':visibility': 'public' }
226
226
  }
227
227
  logger&.debug(message: 'Fetch relevant DMPs _publicly_visible - scan args', details: args)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.53'
4
+ VERSION = '0.1.54'
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.53
4
+ version: 0.1.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley