Skip to content

Commit 4d9b3e9

Browse files
committed
records: date_created is a list
* Amends schema, serialisers, fixtures to make `date_created` a list. Useful for values such as `2010-2012`. (closes #2505) Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
1 parent b0e11cd commit 4d9b3e9

File tree

73 files changed

+15502
-4614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+15502
-4614
lines changed

cernopendata/jsonschemas/records/record-v1.0.0.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@
174174
"type": "array"
175175
},
176176
"date_created": {
177-
"description": "The year the resource was created or the data-taking year for datasets",
178-
"type": "string"
177+
"items": {
178+
"description": "The data-taking year during which the collision data or for which the simulated data, software and other assets were produced",
179+
"type": "string"
180+
},
181+
"type": "array"
179182
},
180183
"date_published": {
181184
"description": "The year of publication on the portal",

cernopendata/modules/fixtures/data/records/alice-reconstructed-data.json

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"energy": "7TeV",
1515
"type": "pp"
1616
},
17-
"date_created": "2010",
17+
"date_created": [
18+
"2010"
19+
],
1820
"date_published": "2016",
1921
"distribution": {
2022
"formats": [
@@ -82,7 +84,9 @@
8284
"energy": "2.76TeV",
8385
"type": "PbPb"
8486
},
85-
"date_created": "2010",
87+
"date_created": [
88+
"2010"
89+
],
8690
"date_published": "2016",
8791
"distribution": {
8892
"formats": [
@@ -150,7 +154,9 @@
150154
"energy": "2.76TeV",
151155
"type": "PbPb"
152156
},
153-
"date_created": "2010",
157+
"date_created": [
158+
"2010"
159+
],
154160
"date_published": "2016",
155161
"distribution": {
156162
"formats": [
@@ -218,7 +224,9 @@
218224
"energy": "2.76TeV",
219225
"type": "PbPb"
220226
},
221-
"date_created": "2010",
227+
"date_created": [
228+
"2010"
229+
],
222230
"date_published": "2016",
223231
"distribution": {
224232
"formats": [
@@ -286,7 +294,9 @@
286294
"energy": "2.76TeV",
287295
"type": "PbPb"
288296
},
289-
"date_created": "2010",
297+
"date_created": [
298+
"2010"
299+
],
290300
"date_published": "2016",
291301
"distribution": {
292302
"formats": [
@@ -354,7 +364,9 @@
354364
"energy": "2.76TeV",
355365
"type": "PbPb"
356366
},
357-
"date_created": "2010",
367+
"date_created": [
368+
"2010"
369+
],
358370
"date_published": "2016",
359371
"distribution": {
360372
"formats": [
@@ -422,7 +434,9 @@
422434
"energy": "2.76TeV",
423435
"type": "PbPb"
424436
},
425-
"date_created": "2010",
437+
"date_created": [
438+
"2010"
439+
],
426440
"date_published": "2016",
427441
"distribution": {
428442
"formats": [
@@ -490,7 +504,9 @@
490504
"energy": "2.76TeV",
491505
"type": "pp"
492506
},
493-
"date_created": "2010",
507+
"date_created": [
508+
"2010"
509+
],
494510
"date_published": "2016",
495511
"distribution": {
496512
"formats": [
@@ -558,7 +574,9 @@
558574
"energy": "7TeV",
559575
"type": "pp"
560576
},
561-
"date_created": "2010",
577+
"date_created": [
578+
"2010"
579+
],
562580
"date_published": "2016",
563581
"distribution": {
564582
"formats": [
@@ -626,7 +644,9 @@
626644
"energy": "7TeV",
627645
"type": "pp"
628646
},
629-
"date_created": "2010",
647+
"date_created": [
648+
"2010"
649+
],
630650
"date_published": "2016",
631651
"distribution": {
632652
"formats": [
@@ -694,7 +714,9 @@
694714
"energy": "7TeV",
695715
"type": "pp"
696716
},
697-
"date_created": "2010",
717+
"date_created": [
718+
"2010"
719+
],
698720
"date_published": "2016",
699721
"distribution": {
700722
"formats": [
@@ -762,7 +784,9 @@
762784
"energy": "7TeV",
763785
"type": "pp"
764786
},
765-
"date_created": "2010",
787+
"date_created": [
788+
"2010"
789+
],
766790
"date_published": "2016",
767791
"distribution": {
768792
"formats": [
@@ -830,7 +854,9 @@
830854
"energy": "7TeV",
831855
"type": "pp"
832856
},
833-
"date_created": "2010",
857+
"date_created": [
858+
"2010"
859+
],
834860
"date_published": "2016",
835861
"distribution": {
836862
"formats": [
@@ -898,7 +924,9 @@
898924
"energy": "7TeV",
899925
"type": "pp"
900926
},
901-
"date_created": "2010",
927+
"date_created": [
928+
"2010"
929+
],
902930
"date_published": "2016",
903931
"distribution": {
904932
"formats": [

cernopendata/modules/fixtures/data/records/atlas-all-samples.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"energy": "8TeV",
1515
"type": "pp"
1616
},
17-
"date_created": "2012",
17+
"date_created": [
18+
"2012"
19+
],
1820
"date_published": "2016",
1921
"distribution": {
2022
"number_files": 1,

0 commit comments

Comments
 (0)