uc3-dmp-id 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +6 -6
- 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: a25055e5e62c689e02f190fe828bbe553ef380bcf6bcd2b2e2bb6299f80ea439
|
|
4
|
+
data.tar.gz: c51528de686f3786175ef6bfe2dcde9f1c86897d0fc6d5748667167021d55b54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3a6afb5c512125d29ff1fc6a2da94de5aa98277f08e9fb46d7e120cd64d24238f8eb915f141a4df115feb89951f7e5753daf7c49358241fc7d718277e4d3aed
|
|
7
|
+
data.tar.gz: 7421c51628509d0e0c904625916fd56b43c6fecca16a131169568371f6b39acc274f730ca7d8942d4634daf30b89a7ddfa9f6acb63b634b3ad3fe2a3b8e1472b
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
|
@@ -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)
|
data/lib/uc3-dmp-id/version.rb
CHANGED